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

后端 未结 4 560
旧巷少年郎
旧巷少年郎 2020-12-15 04:17

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

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 04:53

    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.exe manually against the database if you will be using any of the new built-in database features of ASP.NET v2.0.

    Ref.

提交回复
热议问题