使用SSMS 2008客户端工具逆向生成了创建链接服务器的脚本时,在测试环境执行是报如下错误:'(null)' is an invalid product name.
USE [master]
GO
IFEXISTS (SELECT srv.NAME
FROM sys.servers srv
WHERE srv.server_id != 0
AND srv.NAME = N'MES_DB_LINK_TEST')
EXEC master.dbo.Sp_dropserver
@server=N'MES_DB_LINK_TEST',
@droplogins='droplogins'
go
EXEC master.dbo.Sp_addlinkedserver
@server = N'MES_DB_LINK_TEST',
@provider=N'SQLNCLI',
@datasrc=N'192.168.xxx.xxx',
@catalog=N'TEST'
新闻热点
疑难解答