网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP.NET技巧
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.原创的自定义分页UserControl 分.
.无限级分类的非递归实现(存储过程.
.ASP.NET中不定级动态菜单的实现.
.ASP.NET基于角色的窗体安全认证机.
.在ASP.NET 2.0中使用RDLC格式的报.
.ASP.NET应用程序资源访问安全模型.
.ASP.NET服务器控件PleaseWaitBut.
.Web Service非Soap头(Session)身.
.ASP.NET操作IIS中的虚拟目录.
.ASP.NET2.0实现网站的自动升级 .
.ASP.NET设计网络硬盘之删除文件夹.
.aspnet_wp.exe could not be sta.
.ASP.NET2.0调用MySql的存储过程.
.解决ASPX网页另类load两次.
.ASP.NET中散列加密密码.
."ASP.NET AJAX RC1(疑似缺陷)"及.
.关于Asp.net页面Page_Load被执行.
.ASP.NET的 Session 详解.
.在ASP.NET Atlas中创建自定义的B.
.XP安装IIS及Framework后无法访问.

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

发表日期:2006-5-14


一般我们能过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

上一篇:ASP.NET2.0 WebRource,开发微调按钮控件 人气:6720
下一篇:ASP.NET RSS Toolkit(RSS工具) 人气:7186
浏览全部sql server 2005的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐