Why my job is failing when i schedule in SQL Server , Management , Jobs?

Hi ,
    My name is Sridhar i got one problem to schedule job in SQL Server .  Pls find details below.

  We have Database Server called "A" and I registered that Database in my local machine (Enterprise Manager) by using Windows Authentication.  I created a table called "mytable" and it shows owner as "Sridhar".  Now I created DTS package in that connection task i have mention Windows Authentication and given Server name and selected Database ( you know that password is not necessory for windows authentication users).  Now I scheduled that as a Job and I went to job and ran that job.  But it is throwing Failed message.  When I see "View Job History" then I see below line

*** The job failed.  The Job was invoked by User MNAPOOL\Sridhar.  The last step to run was step 1 (dtsBusinessDays) ***

  In this case i went to login to see what kind of permissions i have.  I clicked on my login properties and in that if i went to "Database Access", I see these permission are tick marked for a particular database "public","db_owner","db_datareader","db_datawriter".

  I desperately need help in this..need help..help..help

Thanks in advance
Sridhar.B



 
bethamsettyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

adwisemanCommented:
When you run a job in SQL Server Agent, the job does not run under your id, it runs under the id that SQL server Agent is running under.  You can see who that is by going to the properties of the SLQ Server Agent in Enterprise manager.

So your DTS Pachage is trying to connect using NT Authentication, but SQL Server Agent is running under the local Administrator account for example and this account does not have rights to log into SQL Server.  Try creating a SQL server User, and change the DTS package to use this account.  Also change the table owner to be that of this user, or make it owned by dbo.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Anthony PerkinsCommented:
In a word: Permissions.  The SQL Server Agent service startup account does not have the required permissions.
Anthony PerkinsCommented:
Actually you may need to change the account used be the SQL Server Agent to be a domain account.
bethamsettyAuthor Commented:
Thanks bunch to 'adwiseman'..it works for me................cooooooooooooooooool
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.