一些关于SQL2005+ASP.NET2.0的问题

作者:小春 来源:zc's blogs 时间:2007-09-23 13:01:00 

一般我们能过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的连接即可。
以后继续补充。

标签:SQL2005,.net
0
投稿

猜你喜欢

  • Python+OpenCV实战之利用 K-Means 聚类进行色彩量化

    2021-01-02 09:20:27
  • 深入浅析Python中的yield关键字

    2022-04-18 05:02:32
  • Python实现Web服务器FastAPI的步骤详解

    2022-12-20 21:34:51
  • Python 京东云无线宝消息推送功能

    2021-08-19 09:45:57
  • 使用Python操作excel文件的实例代码

    2023-07-14 10:45:50
  • python判断列表的连续数字范围并分块的方法

    2021-01-18 12:04:19
  • python+unittest+requests实现接口自动化的方法

    2022-04-10 08:47:38
  • 安装pyecharts1.8.0版本后导入pyecharts模块绘图时报错: “所有图表类型将在 v1.9.0 版本开始强制使用 ChartItem 进行数据项配置 ”的解决方法

    2023-09-06 22:11:25
  • CSS图片代码效果汇总

    2008-09-04 12:14:00
  • Dreamweaver制作网页幻灯片效果

    2010-07-06 13:48:00
  • Spring Boot中使用Spring-data-jpa实现数据库增删查改

    2024-01-28 09:41:28
  • PLSQL导入dmp文件的详细完整步骤

    2023-06-26 11:45:32
  • python 读写、创建 文件的方法(必看)

    2023-08-07 11:37:40
  • Python3读取和写入excel表格数据的示例代码

    2022-01-21 10:33:55
  • Python2/3中urllib库的一些常见用法

    2023-11-05 00:24:04
  • Go语言学习之goroutine详解

    2024-03-25 02:45:56
  • python绘制玫瑰的实现代码

    2021-04-25 09:42:52
  • python3中set(集合)的语法总结分享

    2022-06-06 21:44:56
  • 如何利用Image Data Type在主页中显示图形?

    2010-01-01 15:13:00
  • 编写高质量代码的30条黄金守则(首选隐式类型转换)

    2022-07-19 13:03:41
  • asp之家 网络编程 m.aspxhome.com