使用 SSMS 连接到 SQL Express
我的机器Win7安装了SQL Server 2005和SQL Server 2008。 另外,Sql Server Management Studio 是随 SQL Server 2008 一起安装的。
现在,我想连接到当前在我的计算机上运行的 SQLEXPRESS 实例。
我如何知道是否需要 Management Studio 2005 还是 2008 才能连接到 SQLEXPRESS?
只是补充一点,我已经尝试过与 SSMS 2008 连接,但它说
无法连接到.\SQLEXPRESS,登录失败。
我刚刚注意到的一件事是,在 Windows 身份验证下,
用户名显示了我登录 Windows 时使用的用户名。
但这台机器以前是别人的,计算机名也没有改成我的。
这可能是登录失败的原因吗?
谢谢你!
My machine Win7 has SQL Server 2005 and SQL Server 2008 installed.
Also, Sql Server Management Studio is installed with SQL Server 2008.
Now, I want to connect to SQLEXPRESS instance running currently on my machine.
How do I know if i will need Management Studio 2005 or 2008 to connect to SQLEXPRESS?
Just to add that I have already tried connection with SSMS 2008, but it says
Can't connect to .\SQLEXPRESS, Login failed.
One thing I just noticed is that under Windows Authentication,
User name is showing my user name with which I logged in to Windows.
But this machine used to belong to someone else and computer name has not changed to mine.
Could this be reason for login failure?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SSMS2008 可以连接到 SQLExpress 2005 或 2008 实例,因此请使用该版本。
登录失败
可能意味着多种情况:SSMS2008 can connect to SQLExpress 2005 or 2008 instances, so use that version.
Login failed
can mean several things:确保适当的 SQL Server 服务正在运行
Make sure that appropriate SQL Server service is running
“登录失败”表示您已连接但被拒绝。
您使用的登录名是在 SQL Server 中设置的吗?
默认情况下,本地管理员是 SQL Server 中的系统管理员,因此如果您之前连接过,情况会发生变化
"Login failed" means you have connected but were rejected.
Is the login you use set up in SQL Server?
By default, local admins on the box are are sysadmin in SQL Server so something has changed if you connected previously