all groups > sql server connect > february 2007 >
You're in the

sql server connect

group:

Management Studio fails to connect to local db for new queries


Management Studio fails to connect to local db for new queries Cato Lommerud
2/27/2007 5:48:35 AM
sql server connect:
I've just installed SQL Server 2005 on my workstation, and attached an
existing database using Management Studio. I can then browse the database in
the Object Explorer and open the tables.

But whenever I try to create a new query it fails to connect, and I can't
run any queries against the database. When I select Query | Connect from the
menu, the connect dialog has preselected Analysis Services as the server type
and I can't change this even though the Object Explorer allows me to connect
to the Database Engine.

How can I get the query windows to connect to the Database Engine?

Additional info:
During the installation I got a warning because I don't have IIS installed
on my machine - I don't see the relevance of this but I thought that I'd
Re: Management Studio fails to connect to local db for new queries William (Bill) Vaughn
2/27/2007 4:57:36 PM
What rights do you (does your login account) have on the database?

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

[quoted text, click to view]

Re: Management Studio fails to connect to local db for new queries Cato Lommerud
2/28/2007 12:27:05 AM
To be honest, I can't figure out the acces rights the windows account used in
the connection has on the database, but I do know that the windows account is
local admin.

Just to make absolutely sure, I made a new connection in the Object Explorer
using SQL Server authentication and loggin on as SA - the problem persists
for this connection

Cato

[quoted text, click to view]
Re: Management Studio fails to connect to local db for new queries William (Bill) Vaughn
2/28/2007 1:50:56 PM
First, if you cut off the original thread, it makes it harder to see the
original problem.
What version of SQL Server is this? Remember that connections are a function
of the "visibility" and rights assigned to the server instance. It might not
be visible in the configuration you're trying.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

[quoted text, click to view]

Re: Management Studio fails to connect to local db for new queries Cato Lommerud
3/1/2007 1:07:03 AM
It is SQL Server 2005 (the install media was marked Developer), and I find it
strange that I can access the database from my .Net application and browse
the tables (and data in them) in Object Explorer (using open table works just
fine).

Cato

[quoted text, click to view]
Re: Management Studio fails to connect to local db for new queries William (Bill) Vaughn
3/1/2007 10:38:33 AM
I have not seen SSMS get hung up on only exposing analysis services, but you
can expect it to build a database query against it. I would uninstall SQL
Server (Developer Edition) tools and reinstall. If it won't let you open a
Database query there is something else wrong. I would also take this to the
SQL Server list to see if they can help.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

[quoted text, click to view]

AddThis Social Bookmark Button