2011-01-10 16 views
0

情況:Transportlayer上的錯誤(在管道另一端沒有進程)

我有很多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.)

+0

當我嘗試用恢復的數據庫中的數據填充數據集時發生錯誤。 – rakete 2011-01-10 08:50:15

回答

2

包括下面的代碼只是恢復數據庫後:

SqlConnection scon = new SqlConnection(ConnectionString); 
SqlConnection.ClearPool(scon); 
相關問題