win7 sql server 2005安装问题

来源:互联网 发布:8月m2数据 编辑:程序博客网 时间:2024/05/28 17:05

1.Login failed for user ‘sa'. The user is not associated with a trusted SQL Server connection.

问题原因:如果在安装过程中选择“Windows 身份验证模式”,则 sa 登录将被禁用。需要将sa登陆开启

解决办法:windows身份验证登陆,输入命令

ALTER LOGIN sa WITH PASSWORD = '666666'   ---修改sa密码,可跳过

  GO

ALTER LOGIN lucyinthesky ENABLE ;                     ----启用sa用户

GO       

2.cannot open user default database. login failed

问题原因:为登陆用户添加了默认数据库

解决办法:用户名-》右键属性-》默认数据库选择master

3.tcp/ip连接错误

解决办法: SQL Server Configuration Manager->SQL Server 2005 Network Configuration->Protocols for SQLEXPRESS

  TCP/IP 设为enable,右键属性,更改ip和端口。ip1启用,端口改为1433,ip为本机ip。ipall的端口一定要改为1433

原创粉丝点击