简体   繁体   中英

Connect to sql server 2008 using Microsoft Server Management Studio

I have difficulties connecting to my MS SQL Server and I can't find tutorial or answer how to do this, even though I think this should be something pretty standard.

My current setup is this - I have freshly new Installed Visual Studio 2010 and followed Beth Massi's article Step-by-Step: Installing SQL Server Management Studio 2008 Express after Visual Studio 2010 : http://blogs.msdn.com/b/bethmassi/archive/2011/02/18/step-by-step-installing-sql-server-management-studio-2008-express-after-visual-studio-2010.aspx

But I'm not able to connect to a SQL Server. In my Configuration Tools\\SQL Server Configuration Manager I see this when I open it :

Configuration Manager主视图

I set to Enable all TCP\\IP and Named Pipes (Just saw that this may be a problem) and in the properties of the SQL Server (SQLEXPRESS) from Services I see this:

SQL配置属性

I also see in the Log On tab this :

SQL conf传递

some sort of password (not entered by me) it seems to be something default, but since I'm not sure where the problem is I try to show everything I think may have something to do with solving my problem.

At the end I tried different options to connect to my SQL Server form the Management Studio I ended up with this:

SQL管理工作室和错误

As you see I get an error (included in order to be able to read it). I read the the machine name may be required so my User Account name is Xman and my machine's name is Xman-PC . Eveh though my printscreen image is not from this try I made an attempt to connect to the Server with XMAN-PC\\SQLEXPRESS but again - no success.\\

Could you point me to a good tutorial on how to connect to a MS SQL Server (I can't believe there's nothing that explains in simple steps what you need to do to connect to a server) or could you tell me how to set-up my configurations so I actually can start to work with databases?

PS

Forgot to mention in Command Prompyt - sqlcmd command also returns error - Could not open SQL connection .

PS

Finally I managed to connect using Windows Authentication and (local)\\sqlexpress for ServerName. Which at least means that everything is working. But now even more I would like to know how to connect using SQL Server Authentication . It must be something default as it was for Windows Authentication ?!

Looks like you've done the hard work - last step will be turning on SQL Server Authentication.

Since you installed with the default values, only Windows Authentication is allowed; you need to set it to SQL Server and Windows Authentication mode. You can do this through Management Studio through the instance Properties -> Security .

See this link for full details: Change Server Authentication Mode .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM