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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query linked data in a SQL database???

Status
Not open for further replies.

Kubilus1

IS-IT--Management
Apr 25, 2001
99
US
This may be an easy one for you gurus . . .

Is it possible to query data in a SQL database from another SQL database on the same server?

If so, how would I go about that. I would appreciate any help. Boss is breathing down my neck to get this project done.

Running SQL7 sp3, NT Server 4 (sp6)

Thanks a lot,
Matt
 
Fully qualify what you want to query:

From database1:

SELECT field FROM database2.dbo.tablename
 
Thanks a lot balves. That really is pretty straight forward.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top