Connect to SQL Express with SSMS

你说的曾经没有我的故事 提交于 2021-02-10 14:20:38

问题


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!


回答1:


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



回答2:


Make sure that appropriate SQL Server service is running




回答3:


"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



来源:https://stackoverflow.com/questions/3996463/connect-to-sql-express-with-ssms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!