Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Oracle does not work in SLX scripts
franklin
Posts: 2
 
Oracle does not work in SLX scriptsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 06 2:54 PM

sertraline alcohol blackout

sertraline and alcohol
fiogf49gjkf0d
Our 5.2 customized scripts are filled with Oracle-specific statements being executed on the database. Since upgrading to 6.2, none of this code works. Is there a way to execute Oracle SQL syntax through SalesLogix scripts? See the example below. The use of DUAL (an Oracle-specific table) throws an error. I have also gotten errors when using Oracle outer joins and functions. Did Oracle syntax functionality disappear in 6.2 or is there a way to get it to work?

Option Explicit

Sub main

Dim sql
Dim cn
Dim rs

sql = "select count(*) cnt from account" 'works
'sql = "select count(*) cnt from dual" 'does not work
Set cn = Application.GetNewConnection
Set rs = CreateObject("ADODB.Recordset")

rs.CursorLocation = adUseClient
rs.LockType = adLockBatchOptimistic
rs.Source = sql
Set rs.ActiveConnection = cn
rs.Open

Do While Not rs.EOF
MsgBox rs.Fields("cnt").Value
rs.MoveNext
Loop

rs.Close
cn.Close

Set rs = Nothing
Set cn = Nothing

End Sub
[Reply][Quote]
franklin
Posts: 2
 
Re: Oracle does not work in SLX scriptsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 06 3:49 PM

flomax

flomax ttvmerwestad.nl
fiogf49gjkf0d
Nevermind...I figured it out...this did the trick:

cn.Open "Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=Username; Password=asdasd;"
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Oracle does not work in SLX scriptsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jun 06 5:23 PM

fluconazol uden recept

link fluconazol uden recept go
fiogf49gjkf0d
FYI - The SalesLogix OLEDB Provider is intentionally designed to be "DB agnostic". Basically it's oriented around ANSI SQL 93 with limits (EX: No ALTER, etc).

It's also designed to get rather "cranky" about certain key or reserved words. The list is rather long. I thought I'd posted it here once before.
[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): 11/26/2024 5:56:15 AM