Glass
asked on
Openquery and where clause
Would like help to query a view for data using openquery on a machine running Win2k server and SQL server 2000. The remote machine is running Oracle 816.
My general download query works:
select * from openquery(LinkServer, 'select * from tbl_name')
Would like to add a where clause-> where col_name like "2003%" but erroring out with doesn't recognize column. Have tried various combinations of naming but to no avail.
Oracle DB
Schema -> Enterprise
table owner for remote db -> unknown
userid for remotedb -> user_id
table name -> tbl_name
column name -> col_name
Thanxs,
Glass
My general download query works:
select * from openquery(LinkServer, 'select * from tbl_name')
Would like to add a where clause-> where col_name like "2003%" but erroring out with doesn't recognize column. Have tried various combinations of naming but to no avail.
Oracle DB
Schema -> Enterprise
table owner for remote db -> unknown
userid for remotedb -> user_id
table name -> tbl_name
column name -> col_name
Thanxs,
Glass
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
htarlow,
You pointed me in the right direction...
Thanxs,
Glass
You pointed me in the right direction...
Thanxs,
Glass
ASKER
Glass