Solved

Setting up SQL server on my laptop

Posted on 2013-11-02
11
182 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
[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
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 83

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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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 83

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
 

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 83

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 83

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

732 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