一些关于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
投稿

猜你喜欢

  • 精简高效的CSS命名准则和方法

    2010-09-17 18:38:00
  • Oracle使用PL/SQL操作COM对象

    2010-07-21 12:56:00
  • WAP页面设计与实现小贴士

    2011-01-10 20:38:00
  • CSS的学习应该注意学习方法

    2007-11-27 00:20:00
  • 能否用显示/隐藏层来控制FLASH播放与停止

    2008-10-27 14:08:00
  • 网页设计趋势之:”勾引”用户的按钮

    2009-02-17 12:09:00
  • Access数据库用另一种方式管理密码

    2008-10-13 12:25:00
  • 学习完全掌握纯CSS布局网页

    2008-05-28 17:14:00
  • asp+xml自动将远程页面中的图片下载到本地

    2007-08-23 13:34:00
  • asp如何制作一个倒计时的程序?

    2010-06-29 21:25:00
  • 解决IIS出现Active Server Pages错误“ASP 0201”

    2009-05-25 18:04:00
  • 自己写的一个PJBlog中可以双击输入验证码的修改

    2009-05-17 10:51:00
  • 三大原因:按照新HTML标准设计网页好处

    2008-11-12 11:23:00
  • MySQL中如何定义外键

    2010-03-09 16:18:00
  • JS:firefox 兼容性问题

    2009-08-01 16:20:00
  • Xml_javascript分页

    2008-09-04 14:43:00
  • 50种方法巧妙优化SQL Server数据库

    2008-12-24 15:49:00
  • asp两组字符串数据比较合并相同数据

    2011-04-14 11:08:00
  • ASP中从数据库读取二进制文件数据代码

    2010-04-24 15:44:00
  • 另类解读SQL Server中的DateTime数据类型

    2009-01-06 11:22:00
  • asp之家 网络编程 m.aspxhome.com