ODBC drivers >

JDBC drivers >

Bridges, gateways >

Other >

All products

Connect JDBC to any ODBC driver

Connect JDBC to Microsoft Access

Cross-platform or cross-architecture access to any ODBC driver

ODBC access to any JDBC driver

Connect dbExpress applications to any ODBC driver

Connect XML applications to any ODBC driver

Access mutiple ODBC data sources from one SQL statement

Create custom ODBC drivers

Bespoke data access requirements

In the pipeline

Support

Resources

Quick start

Licensing

Knowledge Base

User Guides

Company

About Us

Careers & Partners

Using pseudo columns with a linked server

If you use four=part SQL when attempting to query a pseudo column, you'll get an error. For example, in this query ROWID is a pseudo column:

SELECT ROWID, ORDER_ID FROM MYLINKEDSERVER..SYSTEM.ORDERS
Msg 207, Level 16, State 1, Line 4 Invalid column name 'ROWID'.

with four-part SQL, you can only query physical columns in a linked server table, not pseudo columns.

To work around this, use the OPENQUERY function instead. For example:

SELECT * FROM OPENQUERY(MYLINKEDSERVER,'SELECT ROWID, ORDER_ID FROM ORDERS')
Share:

AltStyle によって変換されたページ (->オリジナル) /