ADO.net连接字符串错误 [英] ADO.net connection string error

查看:83
本文介绍了ADO.net连接字符串错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将相同的paradox_local.mdf重新保存到paradox_new.mdf然后运行时,应用程序正在使用paradox_local.mdf运行文件程序它给了我这个错误我已经完成了它的研究,但没有任何想法
The application is running file with paradox_local.mdf when i remane the same paradox_local.mdf to paradox_new.mdf and then run the program it gives me this error i have done the reseach on it but failed any idea

推荐答案

只是通过重命名.mdf文件不能重命名数据库。主数据库仍保留实际名称。

使用sp_renamedb'旧名称','新名称'

重命名数据库。
You cannot rename a database just by rename the .mdf file. Master Database still holds the actual name.

use sp_renamedb 'old name','new name'

to rename a database.


这篇关于ADO.net连接字符串错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆