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
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;"
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=
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
User Instancing (which allows the automatic creation of databases from code) is not supported on the full version of SQL Server, only on the Express version.
The solution is to manually create the database in SQL Server and set the connection string to point to it. You will also need to run
aspnet_regsql.exemanually against the database if you will be using any of the new built-in database features of ASP.NET v2.0.
Ref.