Click here to Skip to main content
16,003,745 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Getting error in visual studio 2008 sp1 while creating .mdf file in app_data folder in sqlexpress and error is
"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."
I have tried by deleting sqlexpress folder from the following path
"Windows XP: C:\Documents and Settings\YOUR_USERNAME\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS"

But it doesn't work for me please need help
Posted
Comments
Thanks7872 15-May-13 6:51am    
Have you restarted your system after deleting the folder?
Member 9793793 15-May-13 7:19am    
yes i have restarted but nothing happen it shows the same error

1 solution

Go to Query Window in SQL Server Management Studio and type this:

exec sp_configure 'user instances enabled', 1. <br />
Go<br />
Reconfigure


Run this query and then restart the SQL Server.
 
Share this answer
 
Comments
Member 9793793 15-May-13 8:10am    
can u tell me exact location or how to Go to Query Window in SQL Server Management Studio.
Thanks7872 15-May-13 8:15am    
Start Sql server mngmt studio,on top left corner you will find NEW QUERY window.Write the above code and click ! symbol to execute it.
Thanks7872 15-May-13 8:17am    
Also try using User Instance = false in your connection string.
Member 9793793 15-May-13 8:43am    
it doesn't work getting same error
Thanks7872 15-May-13 23:57pm    
Refer to this link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900