Loading ...

How to connect to local instance of SQL Server 2008 Management Studio Express ?

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  data access   » How to connect to local instance of SQL Server 2008 Management Studio Express ?

How to connect to local instance of SQL Server 2008 Management Studio Express ?

Posts under the topic: How to connect to local instance of SQL Server 2008 Management Studio Express ?

Posted: 8/30/2010

Lurker 312  points  Lurker
  • Joined on: 8/27/2010
  • Posts: 54

I just installed SQL Server 2008 Management studio Express on my Vista machine.

i tried connecting to local machine using :

.\sqlexpress, (local)\sqlexpress, or .\SQLExpress, MyPCNAME\SQLExpress

nothing is working, getting this error:

-----------------------------
Cannot connect to PC-NAME\SQLEXPRESS. 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. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
----------------------------

On my vista machine i haven't installed anything else other than SSMSE2008 and power shell 1.0 that's it, is there anything else that needs to be installed ?


Posted: 8/30/2010

Lurker 312  points  Lurker
  • Joined on: 8/27/2010
  • Posts: 54

he problem is i don't see anything in SQL Server configuration, i took a screenshot of all the options, here it is:

http://img683.imageshack.us/img683/9085/sq3q.jpg


Posted: 8/30/2010

Professional 8495  points  Professional
  • Joined on: 5/3/2010
  • Posts: 389
  Answered

asp__developer said:

user="Mike Williams"]

he problem is i don't see anything in SQL Server configuration, i took a screenshot of all the options, here it is:

http://img683.imageshack.us/img683/9085/sq3q.jpg

Can you try (re)installing the SQL Server Engine? Probably you miss something out there.


Posted: 8/30/2010

Lurker 312  points  Lurker
  • Joined on: 8/27/2010
  • Posts: 54

Hey hajan, i just installed SQL Server 2008 Express and PROBLEM SOLVED !!!

Thanks a lot...


Posted: 8/30/2010

Professional 8495  points  Professional
  • Joined on: 5/3/2010
  • Posts: 389

asp__developer said:

user="Mike Williams"]

Hey hajan, i just installed SQL Server 2008 Express and PROBLEM SOLVED !!!

Thanks a lot...

Yep. I supposed the problem was that! :)

This is my last post reply for today. I have to go and take some rest. I'm very sick with flu. :((

P.S. Don't forget to close the thread ;)


Posted: 12/17/2010

Lurker 10  points  Lurker
  • Joined on: 12/17/2010
  • Posts: 2

Hi I have the same problem with connecting my asp.net web site to the server(( the only difference that i use sql server 2005 express and i have sql server management.

i added this in the web.config file

<add name="Northwind" connectionString="Data Source=VERA-PC\SQLEXPRESS; &#xA; Initial Catalog=Northwind; &#xA; user=sa;password=;"/>

but it doesn't see it

 

 


Posted: 12/17/2010

Professional 8495  points  Professional
  • Joined on: 5/3/2010
  • Posts: 389

Hi @Vera and Welcome to CodeASP.NET Community.

1. Can you please tell us what error do you get?

2. What are the $#xA word sin your connection string?

 

You can create file on your Desktop, name it test.udl (with UDL extension) and try to create connection with it. If it connects successfully, you can get the connection string by opening the UDL file with notepad.

See my blog post here.

Hope this helps.

Best Regards,
Hajan


Posted: 12/17/2010

Lurker 10  points  Lurker
  • Joined on: 12/17/2010
  • Posts: 2

Hey thanks a lot for replying to my question, but I figured it out Smile. I just needed to add trusted_connection=true to the code in the web.config file

 


Posted: 12/20/2010

Professional 8495  points  Professional
  • Joined on: 5/3/2010
  • Posts: 389

rusalka805 said:

user="Vera Cardoso"]

Hey thanks a lot for replying to my question, but I figured it out Smile. I just needed to add trusted_connection=true to the code in the web.config file

 

Nice! :)


Page 1 of 1 (9 items)