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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ODBC connections in stored procedures

Status
Not open for further replies.

spence74

Programmer
Jul 16, 2004
34
0
0
US
Does anyone have any ideas how to use an ODBC connection in a stored procedure? (MS SQL Server 2000). My goal is to transfer data from a database on one server to a database on a completely different server without having to use DTS packages.

Thanks,
Josh
 
Have you tried OPEN*() stuff (query/datasource/rowset - see Books Online)?

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Why not just create a linked server and then use Select Into to transfer the data?

Jim
 
I tried to create a link, but it only opens to what I am assuming is the default catalog. Is there a way to specify which catalog to go to when using a linked server?
 
Check the syntax for the sp_addlinkedserver stored procedure on the Master database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top