Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, May 16, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: Outer Join of Oracle table errors out in SalesLogix OLEDB Provider
Satheesh Allam
Posts: 5
 
Outer Join of Oracle table errors out in SalesLogix OLEDB ProviderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Apr 07 6:43 PM
Hi,

I am using the following SQL in VB Script and trying to run using SalesLogix OLEDB Provider

select p.opportunityid, p.fcs_proposalid, q.fcs_quoteid, q.quote_number, q.amount,
max(nvl(r.rollout_date,sysdate-1)) rollout_date
from fcs_proposal p, fcs_quote q, fcs_quote_item qi, fcs_rollout r
where q.fcs_proposalid = p.fcs_proposalid
and qi.fcs_quoteid(+) = q.fcs_quoteid
and r.fcs_quote_itemid(+) = qi.fcs_quote_itemid
and p.confidence_percentage > 0
and q.status in ('Completed','Partially Booked')
group by p.opportunityid, p.fcs_proposalid, q.fcs_quoteid, q.quote_number, q.amount
order by p.fcs_proposalid, q.fcs_quoteid, q.quote_number

My connect string is
strSLXConn = "Provider=SLXOLEDB.1;Data Source=sv-slxdev;Initial Catalog=CRMTEST;User Id=Adminassword=adminersist Security Info=True;Extended Properties=Port=1706;Log=On"

When I run the script, I get the following error

Error: Failed to parse SQL
Code: 8004277A
Source: SalesLogix OLE DB Provider.

Once I remove (+) signs in the query the script runs fine. But we need to have that (+) sign as part of join, otherwise no or some rows will be ignored.

Can any one tell me how to handle this situation?

Thanks,
Satheesh
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Outer Join of Oracle table errors out in SalesLogix OLEDB ProviderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Apr 07 9:56 PM
fiogf49gjkf0d
Change the query to use explicit join syntax.

ie:

select t1.field1, t2.field2 
from table1 t1
left join table2 t2
on t1.keyfield = t2.keyfield
where t1.field3 = 'Other conditions if necessary, etc'


Know what I mean? The (+) is not interpreted by the SLX provider.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 5/16/2024 7:37:01 AM