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

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

Constraint Violating Yak Guru

494 Posts

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

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.


Very Important crosS Applying yaK Herder

52325 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

Go to Top of Page

Constraint Violating Yak Guru

494 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  
 New 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.16 seconds. Powered By: Snitz Forums 2000