SQL Server permissions issue

I have a server running SQL Server 2008 R2 that runs a monthly job to import data into an existing database.
The backup to be imported is located on another share.
When the job runs, it fails with the following error:
Executing the query "RESTORE DATABASE [DB_00] FROM  DISK = N'\\SERVER..." failed with the following error: "Cannot open backup device '\\SERVER\DB_00.bak'. Operating system error 1326(Logon failure: unknown user name or bad password.).  RESTORE DATABASE is terminating abnormally."

For troubleshooting purposes, I set the SQL agent to run as domain administrator and it shows in the log:
Executed as user: DOMAIN\Administrator

I copied the path from the error message and pasted it into a window and the directory opens fine.

Does anyone see what I'm missing here?
LVL 1
scarpenter104Asked:
Who is Participating?
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.

Scott PletcherSenior DBACommented:
Does the login running the job have sysadmin authority?

Do you have a proxy account set up for jobs?
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Which user is running the job? That user must have read permissions on the share.
0
scarpenter104Author Commented:
Since it says
Executed as user: DOMAIN\Administrator
I assume that is who is running the job.

ScottPletcher, It also says that it can't open the backup device, so I'm assuming the share permission to be the  issue, not database permissions, or is this just a confusing error message?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Vitor MontalvãoMSSQL Senior EngineerCommented:
The DOMAIN\Administrator has read permission on the share?
0
scarpenter104Author Commented:
Of course. And in my test I opened the path as Administrator. I also added read permission for Everyone to the share.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
I'm sorry for the questions but just wanted to confirm that you checked everything.
The SQL Server service account's also a domain user?
0
scarpenter104Author Commented:
I don't believe so.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Ok. Maybe that's the issue. When accessing a network share it uses the SQL Server service account and not the SQL Agent account.
0

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
scarpenter104Author Commented:
When I can get access to it today I'll test that theory.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
You need to set a new account to the SQL Server service. Maybe you can use the SQL Agent account for testing (DOMAIN\Administrator). Don't forget you need to restart SQL Server after changing the service account.
0
scarpenter104Author Commented:
I changed the SQL services to a domain account and that resolved the issue. Leave it to Microsoft to tell me in their log that the job was being executed by a domain account when in truth it was not.
0
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
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.