Click here to Skip to main content
15,923,218 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is there a way i can query a table from datasource wich is in other instance in case of linked servers? is there a way to do it i saw we can do with distributed queries ,can some one help me with some sample example or refrence links thanks
Posted

With a linked server all you need to do is use the fully qualified table name to access it:

Server(or ip address in square brackets).database.owner(most commonly dbo).table

This will access the table as if it was on the same server.
 
Share this answer
 
Your question isn't very clear but if you have defined a linked server then you can use it in the sql statements like:
SELECT ... FROM linkedservername.databasename.objectownername.tablename...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900