【问题标题】:Error on Transportlayer (No process on the other end of pipe)传输层错误(管道另一端没有进程)
【发布时间】:2011-06-06 09:48:49
【问题描述】:

情况:

我有很多 Microsoft SQL 备份文件。应用程序应该恢复每个备份文件

RESTORE DATABASE {0} FROM DISK = '{1}' WITH REPLACE

然后我用恢复的数据库中的一些数据填充另一个数据库并删除恢复的数据库

DROP DATABASE {0}

如果我只恢复一个备份文件,没有问题。此备份中的数据位于新数据库中,并且已删除还原的数据库。但如果我使用超过 1 个备份文件,我会收到此错误:

德语: Fehler auf Übertragungsebene beim Senden der Anforderung an den Server. (provider: Shared Memory-Provider, error: 0 - Kein Prozess ist am anderen Ende der Pipe.)

英语(类似):Error on transportlayer while sending the request to the server. (provider. Shared Memory-Prover, error: 0 - No process on the other end of pipe.)

【问题讨论】:

  • 当我尝试用恢复的数据库中的数据填充数据集时发生错误。

标签: vb.net sql-server-2005 process shared-memory sqlexception


【解决方案1】:

在恢复数据库后添加以下代码:

SqlConnection scon = new SqlConnection(ConnectionString);
SqlConnection.ClearPool(scon);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-09-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-31
    • 1970-01-01
    • 2011-12-25
    • 2021-08-22
    相关资源
    最近更新 更多