Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 OPENQUERY ...?

Author  Topic 

siumui
Yak Posting Veteran

54 Posts

Posted - 2012-05-08 : 16:33:32
Hello all,

I want to know why would one use OPENQUERY?
In which situation would you use OPENQUERY?

Your help is greatly appreciated. Thank you

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-08 : 16:36:50
OPENQUERY is used when you want to access data which resides in another server to which you've set up a linked server connection. The other server can even be flat file,excel sheet, access db etc

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-08 : 16:37:08
see

http://msdn.microsoft.com/en-us/library/ms188427.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

siumui
Yak Posting Veteran

54 Posts

Posted - 2012-05-08 : 16:40:07
quote:
Originally posted by visakh16

OPENQUERY is used when you want to access data which resides in another server to which you've set up a linked server connection. The other server can even be flat file,excel sheet, access db etc

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/






Thank you very much!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-08 : 16:46:18
wc

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -