我将错误 信息发出来啊 标题: Microsoft SQL Server Management Studio ------------------------------Failure to connect to SQL Server with provided connection information. SQL Server does not exist, access is denied because the SQL user is not a valid user on the SQL Server, or the password is incorrect. HRESULT 0x80004005 (29060)------------------------------ 按钮:确定 ------------------------------
我这是一台机器。。里面有sql server 2005 和 sql server 2005 mobile
看你的代码: repl.PublisherSecurityMode = SecurityType.NTAuthentication;你用的是 windows 身份验证, 你确定你的 sql server 2005 mobile 可以通过 windows 身份验证连接到 sql server 发布服务器吗? 建议改 sql 身份验证进行测试
标题: Microsoft SQL Server Management Studio ------------------------------A call to SQL Server Reconciler failed. Try to resynchronize. HRESULT 0x80004005 (29006)无法将架构脚本“C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\ReplData\unc\STOR21_COLDSMS_FABU\20090222211540\tm_2.sch”传播到订阅服务器。 HRESULT 0x80070005 (0)合并进程无法将快照传递给订阅服务器。如果使用 Web 同步,则合并进程可能还无法创建或写入消息文件。进行故障排除时,请使用详细的历史日志记录来重新启动同步,并指定要写入的输出文件。 HRESULT 0x80045017 (0)------------------------------ 按钮:确定 ------------------------------
xian yong "management studio" jian yi ge "mobile" de ku, zuo yi xia ding yue kan kan.xian bu yao zai cheng xu zhong tong bu ding yue.
标题: Microsoft SQL Server Management Studio
------------------------------Failure to connect to SQL Server with provided connection information. SQL Server does not exist, access is denied because the SQL user is not a valid user on the SQL Server, or the password is incorrect.
HRESULT 0x80004005 (29060)------------------------------
按钮:确定
------------------------------
repl.Publisher = @"STOR21";
repl.PublisherDatabase = @"coldSMS";
repl.PublisherSecurityMode = SecurityType.NTAuthentication;
repl.Publication = @"fabu";
repl.Subscriber = @"dingyue";
repl.SubscriberConnectionString = @"Data Source=""C:\Documents and Settings\Administrator\桌面\sqlce\MyDatabase#1.sdf"";Max Database Size=128;Default Lock Escalation =100;";
try
{
repl.AddSubscription(AddOption.ExistingDatabase);
repl.Synchronize();
}
catch (SqlCeException e)
{
MessageBox.Show(e.ToString());
}
建议改 sql 身份验证进行测试
------------------------------A call to SQL Server Reconciler failed. Try to resynchronize.
HRESULT 0x80004005 (29006)无法将架构脚本“C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\ReplData\unc\STOR21_COLDSMS_FABU\20090222211540\tm_2.sch”传播到订阅服务器。
HRESULT 0x80070005 (0)合并进程无法将快照传递给订阅服务器。如果使用 Web 同步,则合并进程可能还无法创建或写入消息文件。进行故障排除时,请使用详细的历史日志记录来重新启动同步,并指定要写入的输出文件。
HRESULT 0x80045017 (0)------------------------------
按钮:确定
------------------------------