在win7下安装SQL sever2005(完整版)

来源:互联网 发布:艾媒 人工智能产业图谱 编辑:程序博客网 时间:2024/06/05 23:08
第一步 :SQL Server Configuration Manager -> SQL Server 2005 Services 将 SQL Server Browser 设置为 running,
如果没有Enable的话,右键 Properties -> Service -> StartMode = Auotomatic
注意,同时必须打开 SQL Server Browser 服务

第二步: SQL Server 2005 Network Configuration -> Protocols for SQLXPRESS 下同时使用TCP/IP和named pipes

第三步:SQL Native Client Configuration 下同时使用TCP/IP和named pipes

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

3、新建Sql server方式的用户名和密码:
manage管理器 -> security -> 右键点击logins->new login...-> 选中sql server authentication ->设置login name 和password(confirm password)以及 默认的数据库
最好取消复选“enforce password expiration”,否则每次登陆都要修改密码。

注意 : 一定要在User Mapping 页面中选择该用户对应的数据库(即使前面已经选择了默认数据库),否则还是会登录不上
如果需要修改数据库,必须分配 db_Owner 角色

4、重新启动服务器
虽然网上好多文章都说只需要重新启动SQL服务就可以,但是经过验证,必须重新启动机器才行
In order to get things to work. You might need to completely reboot the server machine after making the changes. There have been reports (thanks P.C. ) that starting and stopping the SQL Server and Browser software is not enough.
5、使用SQL Server Configuration Manager 测试
注意 : Server Name 一定要 Serever\SQLEXPRESS

同时还要在 Options -> Network protocol 中 选择 TCP/IP 才能顺利登录
0 0