Microsoft.SqlServer.Management.Smo.FailedOperationException: Backup failed for Server '\\.\pipe\3F103E6E-3FD4-47\tsql\query'

前端 未结 2 1622
陌清茗
陌清茗 2021-01-25 03:52

I\'m gonna get a backup with below method :

void BackupDatabase(string sConnect, string dbName, string backUpPath)
{
    using (SqlConnection cnn = new SqlConnec         


        
2条回答
  •  旧时难觅i
    2021-01-25 04:11

    The error message is pretty much conclusive:

    Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

    Is SMO installed correctly?

    Are you running on a 64 bit system?

    Have you installed the 2008 version of the SMO Components?

    You can down the 64 bit version of SMO from here: Microsoft SQL Server 2008 Feature Pack, October 2008

提交回复
热议问题