备份Sql数据库时出现这样的错误提示 无法打开备份设备 'D:ackuptext.dat'。设备出现错误或设备脱机。详细信息请参阅 SQL Server 错误日志。
BACKUP DATABASE 操作异常终止。
代码如下:
private void Button1_Click(object sender, System.EventArgs e)
{
SqlConnection myConnection=new SqlConnection("server=.;database=Northwind ;uid=sa;pwd=sa");
string myExecuteQuery = "backup database Northwind to disk='D:\backuptext.dat'";
SqlCommand myCommand = new SqlCommand(myExecuteQuery, myConnection);
myCommand.Connection.Open();
myCommand.ExecuteNonQuery();
myConnection.Close();
}
在查寻分析器中执行"backup database Northwind to disk='D:\backuptext.dat'";可以备份
有哪们大虾帮忙指点一下
BACKUP DATABASE 操作异常终止。
代码如下:
private void Button1_Click(object sender, System.EventArgs e)
{
SqlConnection myConnection=new SqlConnection("server=.;database=Northwind ;uid=sa;pwd=sa");
string myExecuteQuery = "backup database Northwind to disk='D:\backuptext.dat'";
SqlCommand myCommand = new SqlCommand(myExecuteQuery, myConnection);
myCommand.Connection.Open();
myCommand.ExecuteNonQuery();
myConnection.Close();
}
在查寻分析器中执行"backup database Northwind to disk='D:\backuptext.dat'";可以备份
有哪们大虾帮忙指点一下
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货