Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection

昨天电脑运行有点卡,曾经F5失败2此,今天早上突然出现此错误,查了半天,原来是个老问题(从2006年就有人评论)。

 

解决办法有两个,第一个是:

 

 

you might need to delete the C:/Documents and Settings/username/Local Settings/Application Data/Microsoft/Microsoft SQL Server Data/SQLEXPRESS directory.

Then restart ur machine.

 

就是删除上述目录。如果是Win7,则在c:/Users(或用户)/...

但我自己在机器上找了一下(Win7),居然没有此目录。

不过网上的确有很多人用这种方法解决了。

 

第二个是:

 

Control Panel -> Administrative Tools -> Services ->

right click on SQL Server (SQLEXPRESS) service then Properties-> Then Goto Logon tab -> Select the Local System Accountoption ->Apply->OK

Now my problem got solved.

 

就是在控制面板/管理工具/服务里边右键点击 SQLServer(SQLExpress)的属性,在登录 tab,选择 本地系统用户,直接应用,重启服务一下,就好了。

这个对我有效。

 

这个帖子中两个方法恰好都有:http://forums.asp.net/t/1377174.aspx/2/10?Failed+to+generate+a+user+instance+of+SQL+Server

 

 

 

posted on 2011-05-01 09:09  阳光VIP1  阅读(361)  评论(0编辑  收藏  举报