一些关于SQL2005+ASP.NET2.0的问题
来源:互联网 发布:网络用语下海什么意思 编辑:程序博客网 时间:2024/05/16 09:20
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
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>- 一些关于SQL2005+ASP.NET2.0的问题
- asp.net2.0+sql2005的数据库链接问题
- asp.net2.0关于弹出对话框的问题
- 关于ASP.NET2.0编写扩展存储过程的问题
- 关于ASP.NET2.0编写扩展存储过程的问题
- VS2005+SQL2005 ASP.NET2.0数据库连接总结
- VS2005+SQL2005 ASP.NET2.0数据库连接总结
- VS2005+SQL2005 ASP.NET2.0数据库连接
- VS2005+SQL2005 ASP.NET2.0数据库连接(ZZ)
- VS2005+SQL2005 ASP.NET2.0数据库连接
- asp.net2.0sql2005免费空间
- VS2005+SQL2005 ASP.NET2.0数据库连接
- VS2005+SQL2005 ASP.NET2.0数据库连接
- VS2005+SQL2005 ASP.NET2.0数据库连接总结
- VS2005+SQL2005 ASP.NET2.0数据库连接
- VS2005+SQL2005 ASP.NET2.0数据库连接总结
- asp.net2.0 最新的一些更正
- asp.net2.0的一些特性
- 通过改善架构来提高ASP.Net应用程序的性能
- asp.net生成图片验证码
- SharpWebMail介绍和安装
- Access通用数据访问类(asp.net2.0c#)
- ASP.NETMasterPage中图片路径的解决办法
- 一些关于SQL2005+ASP.NET2.0的问题
- ASP.NET2.0WebRource,开发微调按钮控件
- 通过Remotingservice上传文件
- 在atlas里面的UpdatePanel控件中调用javascript,以及updatePanel的一些原理
- 让ASP.NET简便使用SCRIPT
- 将Web站点下的绝对路径转换为虚拟路径
- 团队价值观:避免蟑螂效应
- .NET下生产图片验证码
- 页面中包括DataGrid时,利用webclient获取页面源代码的解决方