Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am new to visual studio 2010 and sql server 2008... but i am good with db connection in visual studio 2008 and sql server 2005.... now the worst part is after installing vs2010 i start to create database as i followed in vs2008
1)db explorer-->data connections right click and selected add connection
2)in next window i selected data source as Microsoft SQL Server Database File (SqlClient)
3)in database name i gave some name like db after tat i pressed k button... it asked for conformation message as database file does not exist would u like to create i selected yes but it shows error as
failed to generate a user instance of sql server due to failure in starting the process for the user instance. the connection will be closed

could anyone solve my prob its very urgent......
Posted

1 solution

VB
If you get that error message, the solution that worked for me was to clear the SQL Express user instance data store, located at:

%userprofile%\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS
(or full path)

C:\Users\\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS
 
Share this answer
 
Comments
selva_1990 19-Oct-12 7:54am    
i didnt found any "appdata" folder inside my user profile....actually i didnt install sql server 2008 separately, while installing visual studio 2010 it automatically installed.... whether i need to install sql server 2008 separately SUMIT...????
Sumit_Kumar_Sinha 19-Oct-12 7:57am    
yeah...........
selva_1990 19-Oct-12 8:02am    
in sql server 2008 different version are there which i need to install can u send me the link
Sumit_Kumar_Sinha 19-Oct-12 8:10am    
microsoft sql server 2008 express edition

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