国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

一些關于SQL2005+ASP.NET2.0的問題

2019-11-18 17:14:15
字體:
來源:轉載
供稿:網友

一般我們能過VS2005的SQL explorer來添加一個本地的MDF文件。也許你可能會出現下面這個問題:
Exception Details: System.Data.SqlClient.SqlException: The user instance login flag is not supported on this version of SQL Server. The connection will be closed.

通過搜索。發現這里有我們所需要的信息:Error Message: The user instance login flag is not supported on this version of SQL Server. The connection will be closed

仔細分析Scott的回答:

"The issue is that User Instancing, which allows the automatic creation of databases from code, isn't support on the full version of SQL 2005.  That is a function of SQL ExPRess only.  The solution is to manually create the database in SQL Server 2005 and set a 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."

因此,如果我們不是使用的從MS下載下來的SQL Server 2005 Express,那么我們只能過過在SQL2005管理器上把MDF文件添加進去在連接它。

解決方法:在SQL2005管理器上,通過Attach(附加)本地的MDF文件成功之后。在VS2005的sql explorer的連接即可。

以后繼續補充。

cnzc's blogs


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 读书| 齐河县| 酉阳| 卓资县| 新化县| 二连浩特市| 格尔木市| 安徽省| 昂仁县| 江都市| 大邑县| 吉木乃县| 北票市| 乌拉特前旗| 青川县| 余江县| 巴里| 晋城| 鄂托克旗| 南开区| 民乐县| 卢氏县| 和平区| 岑溪市| 铜山县| 小金县| 札达县| 浪卡子县| 贺兰县| 萨嘎县| 读书| 尉犁县| 邹城市| 洛扎县| 宾川县| 连州市| 邮箱| 永德县| 繁峙县| 微山县| 博罗县|