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 vs MS SQL
Lane
Posts: 121
 
Oracle vs MS SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 9:40 AM
fiogf49gjkf0d
Does SLX have a function for determining if a connection is Oracle vs SQL?
Is ther a SQL stmt that'll work against both I can use (for example "Select @@VERSION")?
I can always write a function to parse the connection string, but this seams pretty weak.

Thanks
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Oracle vs MS SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 10:09 AM
fiogf49gjkf0d
What's wrong with checking the connection string? That's how I would do it. If you execute the slx_getNativeConnInfo proc you'll get back a connection string to the underlying database (SQL or Oracle - minus the sysdba password). The provider would be easily identifyable in the string.
[Reply][Quote]
Lane
Posts: 121
 
Re: Oracle vs MS SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 10:34 AM
fiogf49gjkf0d
OK, I'll go with that then.
Previously there was a global identifying the type and I'd assume SLX knows internally, but I couldn't find anything in the docs, but that they'd share it with us.
Thanks
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Oracle vs MS SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 10:38 AM
fiogf49gjkf0d
Oh yeah, now that you mention that, I think this does work to get the database type (although have not confirmed)

dbtype = Application.BasicFunctions.SystemInfoFor("DatabaseType")


Give that a try.

-Ryan
[Reply][Quote]
Lane
Posts: 121
 
Re: Oracle vs MS SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Aug 06 7:56 AM
fiogf49gjkf0d
Yup, That worked.
[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 12:43:33 PM