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

Reading number is top 10 articles
ASP.NET技巧:设置上传文件的最大大小_[Asp.Net教程]
javascript代码格式化和语法着色_JavaScript技术_编程技术
ASP.NET从零起步设计网站全过程(5)_[Asp.Net教程]
Asp.Net,Ajax,学习笔记15,如何使用ASP.NET,Profile_[Asp.Net教程]
C#中Panel控件应用实例
net在cs程序中加入JS(背景不会变白)_[Asp.Net教程]
SQL,Server,2005,Express,Edition安装步骤详解_mssql学习_编程技术
ASP.NET技巧:获取数据行数据信息_.net资料_编程技术
mssql安装提示已经安装信息,修改注册表_mssql学习_编程技术
ASP.NET,Atlas,ListView显示列表数据_[Asp.Net教程]
Reading number is top 10 pictures
王艳写真温柔如水1
Ashlynn Brooke photograph of a group2
Sora aoi possession photo2
美女浴室写真2
The real super beauty6
Wild animals melee moment of life and death2
Embarrassing things comic collection2
The wise woman of chest2
Hunan province aizhai super-large suspension bridge open to traffic and 4 world first1
Soong ching ling's former residence2
Download software ranking
c#程序设计案例教程
The Bermuda triangle3
Unix video tutorial14
实战黑客不求人
Proficient in JavaScript
Ashlynn Video4
Boxer vs Yellow3
Sora aoi - one of more PK
Ashlynn Video3
Tram sex maniac 2 (H) rar bag7
归海一刀 published in(发表于) 2014/2/3 6:34:51 Edit(编辑)
SQL SERVER 2005 EXPRESS不能远程连接的问题_[SQL Server教程]

SQL SERVER 2005 EXPRESS不能远程连接的问题_[SQL Server教程]

SQL SERVER 2005 EXPRESS不能远程连接的问题_[SQL Server教程]

错误提示:"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) "


装完 sqlserver2005(Express版),为了便于管理,你还需要去下一个管理器(SQLServer2005_SSMSEE.msi),微软的官方网站有。


1、开启sql2005远程连接功能:
配置工具->SQL Server 外围应用配置器->服务和连接的外围应用配置器->打开MSSQLSERVER节点下的Database Engine 节点,先择"远程连接",接下建议选择"同时使用TCP/IP和named pipes",确定后,重启数据库服务.


2、登陆改为混合模式:
打开manage管理器->以windows方式连接并进入数据库->右键点击你的数据服务器->属性->security>选中Sql server and windows Authentication


3、新建Sql server方式的用户名和密码:
maage管理器->security->右键点击logins->new login...->选中sql server authentication->设置login name 和password(confirm password)
最好去掉“enforce password expiration”前的小钩,否则每次登陆都要修改密码。
/*
manage管理器->windows Authentication>new query>sp_password null,'sa123456','sa'
这样就设置了一个用户名为sa ,密码为:sa123456的用户,下次在登陆时,可以用Sql server方式,
用户名为sa ,密码为:sa123456的用户进数据库了.
*/


4、做完上面三步后,这样写连接字符串就可以顺利进入数据库了(server=.\\sqlexpress;uid=用户名;pwd=密码;database=master");


搞了半天原来我一直写的server=(local),晕倒。


来源:网络







添加到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.