Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query
Message
General information
Forum:
Microsoft SQL Server
Category:
Database management
Title:
Re: Query
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01267105
Message ID:
01267113
Views:
11
>Hi All,
> I need to query data from a sql server call STG and the database call GM and table Parts. I need to run this query from a sql server call PRD. Thus, my query needs to be something like the following:
>
>Select * from STG.dbo.GM.Parts (from PRD server). However, I am not able to run this quey. Can someone help me out.
>
>Thanks

You need to add a linked server to STG server in PRD server.
After that you could runt this:
Select * from STG.GM.dbo.Parts
Did you see the difference?
The format is
[Server name].[DataBase name].[schema name].[table name]
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform