If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Joining tables in OPENQUERY

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-09, 08:25
dcwhisenhunt dcwhisenhunt is offline
Registered User
 
Join Date: Jul 2009
Posts: 1
Joining tables in OPENQUERY

I am new to this forum, so hello to everyone!!! Okay here it goes: I have two linked servers, one is oracle 9 and the other is mssql 2008. From mssql I am doing the following:

"SELECT * FROM OPENQUERY(PROD, 'SELECT * FROM A INNER JOIN B ON A.FID=B.ID;');"

I am getting the following error: OLE DB provider "MSDAORA" for linked server "PROD" returned message "ORA-00933: SQL command not properly ended


Any ideas? I am completely stuck.
Reply With Quote
  #2 (permalink)  
Old 07-01-09, 11:31
PMASchmed PMASchmed is offline
Registered User
 
Join Date: Jun 2004
Location: Long Island
Posts: 696
You could always snap each or one to a temp table locally, then join locally.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On