Link to home
Start Free TrialLog in
Avatar of vbnetcoder
vbnetcoder

asked on

Setting up SQL server on my laptop

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.
Avatar of rshq
rshq
Flag of Iran, Islamic Republic of image

Hi
  Please check your instance maybe (local\sqlexpress)
Avatar of vbnetcoder
vbnetcoder

ASKER

Is that the same as server name?  Sorry, i don't know much about this
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.
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.
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.
will come back to
How do i enable TCP/IP protocol?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
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?
ty