Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Bulk Load Failed
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 09/26/2012 :  23:28:16  Show Profile  Reply with Quote
Hi,

I have a DOS batch file. That runs on Application Server. There are text files on application server. Every night these files data inserted in sql server database that is on another server. I just migrated database server. After that Bulk Insert command which is in batch file on application server started failing. Now data is not inserted into sql database. Login which application uses to connect with sql server has bulk insert permission on server level and db owner on database level. I did not change any thing.

Here is the error:
"Msg 4861, Level 16, State 1, Server xxxx\abc, line 20
Cannot bulk load because the file \\application_server\data\abc.txt could not be opened. Operating system error code 5(Access is denied)."

Any help will be appreciatd.

Thanks

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 09/27/2012 :  10:42:58  Show Profile  Reply with Quote
i think the account that nightly job uses in new server doesnt have access to the filepath. give account access to the path and try again

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 09/27/2012 :  13:40:39  Show Profile  Reply with Quote
User account have access to the path and bulkadmin access on server, db owner on database.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000