Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I used to have SQL Express 2005 on my PC, I upgrade to SQL Server 2008 R2. I try to open a database file with SQL Server 2008 R2 that was created with SQL Express 2005 it gives me an error msg "The user instance login flag is not supported on this version of SQL Server. The connection will be closed." How can I fix it?
Posted

Hi,
I am not sure if this will work in yours …

I had been encountered such same problems, what I did were removing the log file of such database, and load/attached using SLQ management Studio and its work…

Example I remove the:
'ASPNETDB_log.ldf’ and keep only the ‘ASPNETDB.MDF’
Before loading or attaching it...

But before doing that, I advised you to backup first such files in case…


Please do not forget to vote if could help so that others may consider as an answer...

Regards,
 
Share this answer
 
v2
Comments
Stenio Joseph 22-Dec-11 21:58pm    
I did try that it didn't work. Thank you anyway.
If you're not using Express with SQL 2008 then you cannot use user instances. You can create the database manually first and set the connection string to point to that database. Remeber to take away the user instance specification from the connection string.
 
Share this answer
 

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