Create a linked server statement

The sp_addlinkedserver EXEC
@ Server = 'WZXT', - the link server alias
@ srvproduct = '',
@ Provider = 'the SQLOLEDB',
@ datasrc = '200.200.200.63' - ip server's database to be accessed is located
GO
EXEC sp_addlinkedsrvlogin
'WZXT', - the link with the server alias as above can be
'false', 
 NULL,
'HIS_User', - users want to access the database              
'123456789' - to access the database, the user's password
GO

Guess you like

Origin blog.csdn.net/qq_42335056/article/details/95310144