简体   繁体   中英

How can I run Bulk Upload on a Remote SQL Server Instance

Normally, the code below would work just fine.

USE ReconTest
BULK INSERT ReconTest.dbo.agg_boc_consolidated
FROM '\\UNC_Path\BACKUP TABLES\consolidated.csv' 
WITH (FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n') 
GO

However, since I am trying to load data into a remote instance of SQL Server, I am getting an error. I think this should be possible, by setting up some kind of proxy login credentials, or something like that. I did some research on this, and it seems like that's the only way this will work. unfortunately, I did not find any useful info on how to setup the proxy. If my thinking is correct, and if this is the way to go, can someone please list the steps to go through to get this up and running. I am using SQL Server 2008. Finally, I don't have access to MS Configuration Manager, since it has been disabled by my IT department. Ugh. Thanks.

  • The UNC path must be visible to the remote SQL Server instance

  • The account that SQL Server runs as must be a domain account with network privileges and rights to the remote file.

Finally, I don't have access to MS Configuration Manager, since it has been disabled by my IT department. Ugh. Thanks.

This is set in the services control panel, which you probably also don't have access to.

The only other option is to transfer the import file to a location that the remote server has access to, like a local drive, and then run the import.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM