I have SQL Server 2005 installed and VS 2008 on windows XP Pro SP2.
I am building a VB.Net windows application and trying to add a .mdf database to it as a local db inside the project.
But i always receive this message:
"Local database file
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
OK "
i searched on google for this error, and tried the first 3 links which are mainly talking about this solution:
"delete the C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS directory.
Then restart ur machine."
But i don't have this directory
Here are some screen shots from my machine:
Image1
Image2
Image3
Image4
Does anyone faced this problem before and how to solve it?
Exactly Solved my problem:
http://jeremywadsworth.com/Default.aspx?blogentryid=64
"Milan said...
just want to comment on: The solution to ur problem goes lik this.
Open SQL Server Configuration Manager. Navigation to Start > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Configuration Manager Double-click SQL Server (SQLEXPRESS) and change it to use LocalSystem Delete the folder Windows Vista: C:\Users[user]\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS Windows XP: c:\Documents and Settings[user]\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESSmore info at: http://forums.microsoft.com/msdn/showpost.aspx?postid=98346&siteid=1 .
That’s it. Does that fix your problem? it should fix ur problem ... FANTASTIC! Thanks very much, I've spent 4 days trying to solve this, this is the first site where I've found a solution to this problem. Thanks again!"