Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection for other server

Status
Not open for further replies.

jawan

MIS
Apr 22, 2003
153
US
I have one file on other server, i need to read that file, put the information in table, every thing is fine but how to give path (Conection) for other server's hard drive in query...?
 
Share the path and use

'\\servername\sharedpath\filename'

Better to copy the file to the local server before doing the import (bcp?)
see

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
I have following error

Server: Msg 4861, Level 16, State 1, Line 11
Could not bulk insert because file '\\BDoven\c:\Items.txt' could not be opened. Operating system error code 53(The network path was not found.).

while i have all connections.
 
The share won't be c: - you will have given it a name when you shared it or c$ for the admin share (not advisable). The sql server service will probably need permission on this share.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top