WyldeCarde
MIS
Hi all, hopefully a quick and easier answer to this one:
I am trying to use OPENDATASOURCE to copy data from one SQL server to another. (I'm aware SSIS is better for this but the scripts are easier for my colleagues to understand and update)
I'm falling over at the first hurdle
I've written the following:
Where LiveBR is a local system DSN that tests fine from the ODBC wizard.
I get this error:
Which makes perfect sense, since the server only accepts TCP/IP connections, I can't figure out how you force either the DSN or the query to use TCP/IP.
I would very much appreciate any assistance
**********************************************************
If I had my own icecream van the chimes would play "Don't fear the reaper"
**********************************************************
I am trying to use OPENDATASOURCE to copy data from one SQL server to another. (I'm aware SSIS is better for this but the scripts are easier for my colleagues to understand and update)
I'm falling over at the first hurdle
I've written the following:
Code:
SELECT *
FROM OPENDATASOURCE('SQLOLEDB','DRIVER={SQL Server};Data Source=LiveBR;User ID=UN;Password=Pass').v4BusinessRules.DBO.FileFormats
Where LiveBR is a local system DSN that tests fine from the ODBC wizard.
I get this error:
Code:
Msg 53, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [53].
Which makes perfect sense, since the server only accepts TCP/IP connections, I can't figure out how you force either the DSN or the query to use TCP/IP.
I would very much appreciate any assistance
**********************************************************
If I had my own icecream van the chimes would play "Don't fear the reaper"
**********************************************************