使用 SSMS 连接到 SQL Express

发布于 2024-09-28 14:29:30 字数 444 浏览 0 评论 0原文

我的机器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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

遗忘曾经 2024-10-05 14:29:30

SSMS2008 可以连接到 SQLExpress 2005 或 2008 实例,因此请使用该版本。

登录失败可能意味着多种情况:

  • 数据库未运行(服务已停止)
  • 您的计算机或实例名称错误
  • 您的凭据(登录/通过)错误或您使用了错误的身份验证方法

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

Login failed can mean several things:

  • the database is not running (the service is stopped)
  • you got the machine or instance name wrong
  • your credentials (login/pass) were wrong or you used the wrong authentication method
把梦留给海 2024-10-05 14:29:30

确保适当的 SQL Server 服务正在运行

Make sure that appropriate SQL Server service is running

悍妇囚夫 2024-10-05 14:29:30

“登录失败”表示您已连接但被拒绝。

您使用的登录名是在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文