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

首頁 > 編程 > .NET > 正文

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

2024-07-10 13:10:47
字體:
來源:轉載
供稿:網友

一般我們能過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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 沧源| 洛川县| 温泉县| 大田县| 郁南县| 东兴市| 饶阳县| 太谷县| 冕宁县| 准格尔旗| 固镇县| 肇源县| 海淀区| 德化县| 横峰县| 乐安县| 岗巴县| 玉门市| 湾仔区| 民勤县| 龙胜| 吴旗县| 慈利县| 铁力市| 泸水县| 洪泽县| 康乐县| 体育| 万盛区| 凭祥市| 灌阳县| 婺源县| 玉门市| 望城县| 广河县| 广德县| 湖南省| 五指山市| 黄浦区| 泾川县| 木兰县|