Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The user instance login flag is not supported on this version of SQL Server. The connection will be closed

Tags:

asp.net

Hi I am using sql server fulll edition.

any idea how should I solve this issue, I search on net but not found any helpful answer.

Thanks

like image 488
BreakHead Avatar asked Sep 04 '10 09:09

BreakHead


3 Answers

SQL Server 2005(Full Version) does not support the "user instance"(automatic creation of databases from code) directive in the connection string. Its a feature of sql server express edition.

Also if your connection string has user Instance attribute, then try removing the "User Instance=True;"

like image 66
Sachin Shanbhag Avatar answered Nov 01 '22 00:11

Sachin Shanbhag


Automatic creation of databases from code is a feature of the SQL Express Edition. Try modifying your connection string after having manually created the FOO database:

server=SERVERNAME;database=FOO;uid=sa;pwd=
like image 5
Darin Dimitrov Avatar answered Oct 31 '22 23:10

Darin Dimitrov


User instancing is a feature of Sql Express only and is not available in full Sql Server. You need to construct your connection string to point at the DB server without any USer Instancing defined

like image 3
Macros Avatar answered Nov 01 '22 01:11

Macros