启用sa用户和远程连接
菜单Start->Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager
选中SQL Server 2005 Network Configuration
在右边的TCP/IP上点右键,enabled
菜单Start->Microsoft SQL Server 2005->SQL Server Management Studio Express
登录对话框直接点connect进去
在左边根结点(yourpcSQLEXPRESS)上点右建
选properties
左边选security,右边选中SQL Server and Windows Authentication Mode
工具栏第一个按钮new query
在查询窗口中执行
exec sp_password NULL,'yourpassword','sa'
alter login sa enable
关闭SQL Server Management Studio Express
菜单Start->Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager
选中SQL Server 2005 Services
在右边的SQL Server(SQLEXPRESS)上点右键,Restart
用sa登录
菜单Start->Microsoft SQL Server 2005->SQL Server Management Studio Express
登录对话框Authentication选择SQL Server Authentication
点connect
如果不出意外,应该可以成功登录。
菜单Start->Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager
选中SQL Server 2005 Network Configuration
在右边的TCP/IP上点右键,enabled
菜单Start->Microsoft SQL Server 2005->SQL Server Management Studio Express
登录对话框直接点connect进去
在左边根结点(yourpcSQLEXPRESS)上点右建
选properties
左边选security,右边选中SQL Server and Windows Authentication Mode
工具栏第一个按钮new query
在查询窗口中执行
exec sp_password NULL,'yourpassword','sa'
alter login sa enable
关闭SQL Server Management Studio Express
菜单Start->Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager
选中SQL Server 2005 Services
在右边的SQL Server(SQLEXPRESS)上点右键,Restart
用sa登录
菜单Start->Microsoft SQL Server 2005->SQL Server Management Studio Express
登录对话框Authentication选择SQL Server Authentication
点connect
如果不出意外,应该可以成功登录。