Solved

Cannot find Server Name for MS SQL Server 2008 R2

Posted on 2014-01-14
6
656 Views
Last Modified: 2014-01-14
I just finished installing  MS SQL Server 2008 R2. However I get an error when trying to log in to the Database Engine.  I need the server name.  This is a local installation.

How do I find the server name?

Thanks,
0
Comment
Question by:Dovberman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 25

Assisted Solution

by:Lee Savidge
Lee Savidge earned 150 total points
ID: 39778978
Several ways (assuming the SQL install was on your machine/server and you are on that at the moment)

Use (localhost)

or put a dot . in the server name

Or open a command prompt and type echo %COMPUTERNAME%

Put the output into the server name box.
0
 

Author Comment

by:Dovberman
ID: 39779063
I am running Windows 8.0.

How do I open the command prompt?

Thanks,
0
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 39779068
"Upgrade to Windows 7"

Sorry, couldn't resist that one :)

http://pcsupport.about.com/od/windows-8/a/command-prompt-windows-8.htm
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:Dovberman
ID: 39779118
It's called the PowerShell now.

Still cannot log on.

Server name is needed.
0
 
LVL 22

Accepted Solution

by:
Steve Wales earned 150 total points
ID: 39779158
Check your list of running services (Window+R, services.msc)

SQL Server service is called "SQL Server".  In Parentheses behind that you should see either (MSSQLSERVER) or (hostname\servername) - depending upon what options you specified during the installation.

I will assume that the service is started (but double check please).

If it's MSSQLSERVER, then any of the options specified by Lee Savidge should work.  If it's hostname\servername put that in as the server name.

Rather than saying "Still cannot log on" can you tell us exactly what you've tried and exactly the error messages you're getting ?
0
 

Author Closing Comment

by:Dovberman
ID: 39780013
It is working now.  I re-installed SQL Server.

Thanks for the suggestions
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question