Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, July 10, 2025 
 
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!
 Administration Forums - General Administration
Forum to discuss general administration topics for SalesLogix (including LAN & remote topics). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General Administration | New ThreadView:  Search:  
 Author  Thread: Run SQL from Agent
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Run SQL from AgentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Oct 07 3:13 PM
How do I run an SQL statement as an Agent? Do I need to create an SQL script in the Architech then when configuring the Agent choose SQL as the action and browse to the script for the argument? If so, is the SQL script just the sql statement in the script? I have not gone down this road before.. thanks
[Reply][Quote]
Eric Hobbs
Posts: 28
 
Re: Run SQL from AgentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 07 3:44 AM
Hi Steve,

There are a number of ways to achive this, I think. One way I have used before is to write a legacy VB script and use the DOSql("some statement", "0", "") cmd. That works for real simple stuff.

If your trying to achieve a more complex task, I'd really recomend ditiching the agent alltogether and using a DTS or SSIS task, since the scheduling is more reliable in my experience than the Agent runner. The only problem with this approach is that any changes will not sync to remotes. I've tried using the SLX OLEDB provider as the connection in DTS before but it returns errors on anything but Select statements.

I've never tried just createing a SQL script in architect and scheduling that. Would be interested to know if it works or not.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Run SQL from AgentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 07 7:31 AM
Quote:
Originally posted by Steve Knowles

How do I run an SQL statement as an Agent? Do I need to create an SQL script in the Architech then when configuring the Agent choose SQL as the action and browse to the script for the argument? If so, is the SQL script just the sql statement in the script? I have not gone down this road before.. thanks


Yep.. This is an area of SalesLogix that is VERY powerful and VERY underutilized.

Just create the SQL (EX: UPDATE CONTACT SET STATUS = 'New' Where STATUS = 'NEW Contact')
and in the Agent setup browse to it.. schedule it.. enable it.. and it will do it's thing...
NO scripting, etc.... But remember it will execute on remotes as well!

We use it to auto-fix the situation where User_Activity records are missing.
--
rjl
[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 © 2025 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): 7/10/2025 12:55:15 AM