Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new connection with query analyzer.

Status
Not open for further replies.

chaoma

Technical User
Apr 17, 2005
101
US
Hi,

Let say if I need to change a database from Master to Northwind, I would type "Use Northwind" in query analyzer.

Is there a similar command to change to another SQL server?

Thank you for your assistance.

Chaoma
 
Not that I am aware of.

You can click, File -> Connect to connect to another server. You can have multiple query analyzer windows open, or even open query analyzer multiple times.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Or you can create a linked sever and access a table like this:

select * from servername.owner.tablename
 
Thanks. Yes, I could access the table using a linked server, but it was just too long to pass data over the network. Anyone else?
 
Anyway you transfer the data, it will be going over the network, there is no way around that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top