客户端程序刷新数据字典出现错误的解决方法


错误提示信息:

Tcp Server 调用的接口插件[ABSysPlug.ExecSQL('','exec Proc_ParseDictionary ''testDemo'',''M_Employee'','''',''1''',-1)]异常,出错信息为[[FireDAC][Phys][ODBC][Microsoft][SQL Server Native Client 11.0][SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. ]

错误分析:

可能是数据库连接里面设置不正确

解决方法:

两层登录,设置正确的连接,然后自动创建远程连接(跨数据库访问)

exec "abframework"."dbo"."Proc_Addlinkedserver";1 'SQLSERVER','testDemo','CFServer','sa','123456',''