All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET中绑定枚举类型_.net资料_编程技术
如何在Asp.net中使用HtmlArea编辑器_[Asp.Net教程]
C#纯数学方法递归实现货币数字转换中文_[Asp.Net教程]
Sqlserver应用内置工具建立审查系统_[SQL,Server教程]
ASP.NET,Atlas,ListView显示列表数据_[Asp.Net教程]
.Net业务平台的数值精度陷阱与解决方法_.net资料_编程技术
通过IHttpHandlerFactory,过滤TextBox、Input和Textarea中的字符_[Asp.Net教程]
PHP实现同步远程Mysql_[PHP教程]
ASP.NET开发经验(1):解决ASP.NET与CSS中定义的中文字体名的冲突_[Asp.Net教程]
如何用vbscript实现计算机的关闭或重启_JavaScript技术_编程技术
Reading number is top 10 pictures
The real super beauty12
湖边的风景
Female model behind the bitterness, often being overcharged5
Players in the eyes of a perfect love2
Summer is most suitable for young people to travel in China3
BingBingFan apple dew point photo gallery5
Sora aoi be huged like a bear
全身蕾丝丝质美臀
Sell the barbecue as says father du breul3
NeedWallpaper5
Download software ranking
软件工程思想
Tram sex maniac 2 (H) rar bag11
SQL2000 For 4IN1
Tram sex maniac 2 (H) rar bag14
Unix video tutorial6
WebService在.NET中的实战应用教学视频 → 第2集
尖东毒玫瑰B
好色的外科大夫
Unix video tutorial19
Tram sex maniac 2 (H) rar bag16
归海一刀 published in(发表于) 2014/2/1 0:24:23 Edit(编辑)
连接到,SQL,Server,2005,时出现的问题_[SQL,Server教程]

连接到,SQL,Server,2005,时出现的问题_[SQL,Server教程]

连接到 SQL Server 2005 时出现的问题_[SQL Server教程]

在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
解决方法:


你可能连接的数据库是SQL Server 2005 Express Edition,从"开始菜单"调出"配置工具"中的"SQL Server 外围应用配置器".然后单击"服务和连接外围应用配置器",选择数据库实例(默认是"SQLEXPRESS",选择database Engine的"远程连接"中的"本地连接和远程连接(用TCP/IP)",这样即可打开SQL Server 2005的远程连接(默认不允许).
其实你可以
配置文件:



程序调用时:
SqlConnection sqlCon = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["testDBConnectionString"].ToString());//testDBConnectionString
或都直接生成connection:
SqlConnection sqlCon = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=D:\\wwwroot\\sszTest1\\App_Data\\testDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True")
只要连接成功,你再生成DataSource应该不成问题.


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.