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

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Bulk Load Failed

Author  Topic 

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2012-09-26 : 23:28:16
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

52326 Posts

Posted - 2012-09-27 : 10:42:58
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 - 2012-09-27 : 13:40:39
User account have access to the path and bulkadmin access on server, db owner on database.
Go to Top of Page
   

- Advertisement -