Click here to Skip to main content
15,887,346 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
&i m facing one problem when i add service based database. when i click on add i getting this error "The user instance login flag is not supported on this version of SQL Server. The connection will be closed".
I m using SQL 2008 R2 Enterprise Edition and Visual Studio 2019


What I have tried:

I m using SQL 2008 R2 Enterprise Edition and Visual Studio 2019


i uninstall sql server and install again.
Posted
Updated 14-Apr-20 3:41am

Look at your connection string: it's probably trying to connect using "IntegratedSecurity= true" or "User Instance=true"

This may help: Simple SQL Connection String Creation[^]
 
Share this answer
 
User instances are only supported in SQL Server Express edition:
Editions and supported features - SQL Server 2017 | Microsoft Docs[^]
SQL Server Express User Instances - ADO.NET | Microsoft Docs[^]

If your connection string contains either User Instance=true or AttachDBFilename=..., then you're trying to use a user instance. You'll need to manually attach the database to your SQL Server instance instead, and update your connection string accordingly.
 
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