使用 SSMS 连接到 SQL Express [英] Connect to SQL Express with SSMS

查看:37
本文介绍了使用 SSMS 连接到 SQL Express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的机器 Win7 安装了 SQL Server 2005 和 SQL Server 2008.此外,Sql Server Management Studio 与 SQL Server 2008 一起安装.

My machine Win7 has SQL Server 2005 and SQL Server 2008 installed. Also, Sql Server Management Studio is installed with SQL Server 2008.

现在,我想连接到当前在我的机器上运行的 SQLEXPRESS 实例.
我怎么知道我是否需要 Management Studio 2005 或 2008 才能连接到 SQLEXPRESS?

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?

补充一点,我已经尝试过与 SSMS 2008 的连接,但它说

Just to add that I have already tried connection with SSMS 2008, but it says

无法连接到 .\SQLEXPRESS,登录失败.

Can't connect to .\SQLEXPRESS, Login failed.

我刚刚注意到的一件事是,在 Windows 身份验证下,
用户名显示了我登录到 Windows 时使用的用户名.
但是这台机器以前是别人的,电脑名没有改成我的.
这可能是登录失败的原因吗?

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?

谢谢!

推荐答案

SSMS2008 可以连接到 SQLExpress 2005 或 2008 实例,所以使用那个版本.

SSMS2008 can connect to SQLExpress 2005 or 2008 instances, so use that version.

登录失败可能意味着几件事:

  • 数据库未运行(服务已停止)
  • 您输入的机器或实例名称错误
  • 您的凭据(登录/密码)有误或您使用了错误的身份验证方法

这篇关于使用 SSMS 连接到 SQL Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆