Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 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 - ADO General
Forum to discuss ADO specific questions for use with SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ADO General | New ThreadView:  Search:  
 Author  Thread: How to use a SQL 2005 Native Connection from Within SLX 7.22?
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
How to use a SQL 2005 Native Connection from Within SLX 7.22?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Mar 08 9:19 AM
This works:
dim SQLCN

Sub AXFormChange(Sender)
DIm strCONN
Set sqlCN = CreateObject("ADODB.Connection")
''' objConn.ConnectionString = "FileName=\\EVAW41886\VM\SLX.udl;"
strCONN = "Provider=SQLNCLI.1assword=masterkeyersist Security Info=True;User ID=SYSDBA;Initial Catalog=DEV722;Data Source=192.168.49.36"
sqlCN.Open strCONN

But is there anyway to find out the SQL Server name and SQL Server database name from WITHIN an SLX Script?

With Production, Staging, Dev, Remote OfficeSSSS, Remote Users this could get hairy.

OK so place .udl files everywhere.....ouch.

Any other suggestions?
Maybe a SQL Table in SLX Maybe an SLX Connection Name could be standardized and I could then figure out if the SLX Server connection contained Prod, Stag, Dev, SLXRemote, slxRemoteOffice kinds of stuff??

Thanks!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: How to use a SQL 2005 Native Connection from Within SLX 7.22?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Mar 08 9:48 AM
Take a look here: http://www.slxdeveloper.com/forum.aspx?forumid=3000&postid=6411#6411

-Ryan
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: How to use a SQL 2005 Native Connection from Within SLX 7.22?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Mar 08 10:46 AM
DOH! Didn't even realize you could call it from with a VB Script.....

Took 30 seconds to get this running.

THANK YOU!
[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/22/2024 12:13:26 PM