Translate

Monday, September 23, 2013

Create linked server (SQL server) (A very simple way to create linked server)

    EXEC sp_addlinkedserver  
    @server='destinationServerName',
    @srvproduct='',
    @provider='SQLNCLI',
    @datasrc='tcp:destinationServerIpAddress,1433'

EXEC sp_addlinkedsrvlogin
    @useself='FALSE',
    @rmtsrvname=''destinationServerName',
    @rmtuser='username',

    @rmtpassword='password'

No comments:

Post a Comment

Comments will appear once they have been approved by the moderator