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: SQL Problem
NebSeb
Posts: 49
 
SQL ProblemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jan 08 3:16 PM
I can run this SP in SQL and it works, but it doesnt ever call form SLX, what am I doing wrong


Dim NstrQ
Dim NstrC
NstrQ = "EXECUTE SalesLogix.sysdba.UpdateLetterForSLX '"&Application.BasicFunctions.CurrentUserID&"'"
NstrC = "Driver={SQL Server};Server=titan;Database=SalesLogix;Uid=usrwd=pwd;"
Dim Nconn
Set Nconn = CreateObject("ADODB.Connection")
Nconn.ConnectionString = NstrC
Nconn.Open
Nconn.close
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: SQL ProblemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jan 08 3:32 PM
All you're doing is opening and closing a connection. You never execute the line in the NstrQ variable.

Try this simpler approach:

Application.GetNewConnection.Execute "exec UpdateLetterForSLX '" & Application.BasicFunctions.CurrentUserID & "'"


[Reply][Quote]
NebSeb
Posts: 49
 
Re: SQL ProblemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jan 08 3:33 PM
I just noticed that a moment ago and got this to work for me.

Dim NstrQ
Dim NstrC
NstrQ = "SalesLogix.sysdba.UpdateLetterForSLX '"&Application.BasicFunctions.CurrentUserID&"'"
NstrC = "Driver={SQL Server};Server=titan;Database=SalesLogix;Uid=usrwd=pwd;"
Dim Nconn
Set Nconn = CreateObject("ADODB.Connection")
Nconn.ConnectionString = NstrC
Nconn.Open
Nconn.Execute(NstrQ)
Nconn.close
[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 11:47:03 AM