Solved

Setting up SQL server on my laptop

Posted on 2013-11-02
11
178 Views
Last Modified: 2014-03-08
I installed SQL server 2008 R2 on my laptop but when i try to login i get this error. What do i need to do?

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
0
Comment
Question by:vbnetcoder
11 Comments
 
LVL 4

Expert Comment

by:rshq
ID: 39619154
Hi
  Please check your instance maybe (local\sqlexpress)
0
 

Author Comment

by:vbnetcoder
ID: 39619162
Is that the same as server name?  Sorry, i don't know much about this
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39619338
How are you trying to login?  Did you download SQL Server Management Studio (SSMS) also so you could 'manage' it?  SSMS on my systems always let me login using Windows Authentication so I could set up other methods.
0
 
LVL 1

Expert Comment

by:BDirks
ID: 39619543
If you are using <machinename>\<instancename> in your connection string, then you will need to enable TCP/IP protocol in order to allow "remote" connections to your machine.  Even thought the connection is not "remote", using the machine name as part of the connection string requires the TCP/IP protocol.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39619571
Also if you are trying to connect by name, you need to turn the 'sqlbrowser.exe' service because that's where the 'connect by name' function connects to.  If you use the IP address, you can connect directly without the sqlbrowser service.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:vbnetcoder
ID: 39711853
will come back to
0
 

Author Comment

by:vbnetcoder
ID: 39906743
How do i enable TCP/IP protocol?
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39907082
In Administrative Tools under Services and Applications is the SQL Server Configuration Manager.  The set up for the SQL Native Client is there, look under client protocols.  There is a similar set up for SQL Server itself but only on the machine that is running SQL Server.  Enable TCP/IP on both of them.  More info here: http://msdn.microsoft.com/en-us/library/bb909712%28v=vs.90%29.aspx
0
 

Author Comment

by:vbnetcoder
ID: 39907205
OK -- I enabled it.  I am running everything on my laptop since i am setting this up for testing and learning more about SQL server so there isn't another computer.

I am still getting the error though.  Any else?
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39907549
Did you enable TCP/IP on both the SQL Native Client and the SQL Server?  What connection string are you using?  What program or language for that matter?
0
 

Author Closing Comment

by:vbnetcoder
ID: 39914669
ty
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
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…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now