Failed to generate auser instance of SQL Server due to a failure in starting the process for the user instance.The connection will be closed.
作者: 张大福 时间: 2012-1-16 14:50
作者: 张大福 时间: 2012-1-16 15:09
将连接字符串中的 User Instance=True 改成 User Instance=False。就可以运行含有mdf文件的.net项目了,但是新建mdf文件还是有问题。
Failed to generate auser instance of SQL Server due to a failure in starting the process for the user instance.The connection will be closed.和我刚开始发的问题一样作者: 张大福 时间: 2012-1-17 15:36
我用的是win7旗舰版操作系统和VS2010旗舰版,解决办法:
1、进入C:\Users\Administrator\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS
2、删除SQLEXPRESS目录中所有内容
这样就可以在VS2010中新建mdf文件了