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 2005 Forums
 Transact-SQL (2005)
 Code to create a linked server

Author  Topic 

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2010-04-15 : 14:58:00
How to code to create a link server using connection string below?
"Data Source=remoteserver\sqlexpress;Initial Catalog=order_remote;User ID=sa;Password=123456"

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-15 : 19:07:28
Check out sp_addlinkedserver in BOL.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -