0
我试图同步到使用此代码,我从命令提示符朗姆酒differenet服务器上表(本地和远程两种):为什么我在使用tablediff.exe时无法连接到远程数据库?
"C:\Program Files\Microsoft SQL Server\120\COM\tablediff.exe" -sourceserver localpc\SQL2014 -sourcedatabase localdb -sourceschema sche -sourcetable table1 -destinationserver remotepc\SQLEXPRESS -destinationdatabase remotedb -destinationschema sche -destinationtable table1 -et Difference -f d:\table1_differences.sql
,但我收到的错误:无法访问数据库remotedb
本地数据库是SQL Server 2014 express edition 远程数据库是SQL Server 2014 express edition 防火墙已关闭。 我将admin用户指定为远程服务器上sql服务的登录帐户。
注意我可以通过C#应用程序或从本地SQL服务器正常连接远程数据库。 谢谢,