Describe how OPENQUERY function is used to excess external data

Describe how OPENQUERY function is used to excess external data.

OPENQUERY is used to execute the specified query on the linked sever.

OPENQUERY can be referenced in from the FROM clause just like a table name.

Syntax:
OPENQUERY ( linked_server ,'query' )

OPENQUERY does not accept variables for its arguments.

Example:
SELECT * FROM OPENQUERY (OracleSvr, 'SELECT name, id FROM joe.titles')
How OPENROWSET and OPENDATASOURCE function is used to access external data
OPENROWSET: Includes all connection information that is required to access remote data from an OLE DB data source.......
What is “Index Tuning Wizard”?
Index Tuning Wizard is a software application that identifies tables which have inefficient indexes.......
Partitioning an important part of database optimization
Partitioning distributes database tables over different database which may reside on a different server.........
Post your comment