"Could not bulk insert because file '\\server\<path>\file.txt' could not be opened. Operating system error code 5(Access is denied.)."

I have been using BULK INSERT to get the data from text file with  Sql server 2k and SP3.
Recently we have replaced  our server, so we installed fresh sql server 2k with SP4.
All of sudden our it stopped working. It is giving the error following error message

"Could not bulk insert because file '\\server\<path>\file.txt' could not be opened. Operating system error code 5(Access is denied.)."

I made srue about
1. SQL Server service account is under domain accounts
2. Shared folder has been given rights
3. Login is added to Bulk insert administrator

Please post your thoughts.....thanks.
GulfITAsked:
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.

B HCommented:
where the file.txt lives at, check the share permissions (you said you did) but also check the FILE permissions - they're different...

also check the folder permissions where the file lives at.

you can check the event logs on both machines to see what user account is being used (and failing) and make sure that's the one that has the rights you need

are you able to do  start > run > \\server\path\file.txt  and open it?  if so, it is shared properly, but you need to verify what user account the script runs as, and the permissions where the file lives

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
GulfITAuthor Commented:
Thanks
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 Applications

From novice to tech pro — start learning today.