Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: TRIGGERS and STOREDPROCEDURES
ulaga
Posts: 28
 
TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Jun 08 8:58 AM
hi,

Can we achieve complex tasks which are not possible in saleslogix AA
using 'TRIGGERS' and 'STOREDPROCEDURES' at the database level.

Ulaga
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Jun 08 10:40 AM
Yes, no reason why not.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Jun 08 10:41 AM
Caveat being there are no remote users, or if there are make sure you use the Saleslogix Provider to make the changes..
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Jun 08 11:22 AM
I must disagree and stress that there are major caveats to using triggers and sprocs. So the comment "no reason not" is incorrect.

SalesLogix security, synchronization, calculated fields, and UTC conversion all are embedded in the SalesLogix OLEDB provider. There are legitimiate and practical reasons for using triggers and sprocs but they are the exception, not the rule. Your best bet is to design your solution without them when possible (which again is the majority of the time). If find you must use them, I highly recommend contracting a business partner that understands the SalesLogix system deeply enough to advise you on your design.

Timmus
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jun 08 4:08 AM
I completely agree. :D
[Reply][Quote]
Jerry
Posts: 3
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jun 08 4:11 PM
I feel Nick is right when it comes to developer-added out-of-the-box entities that do not come inbuilt with SalesLogix. How can writing triggers for such entities affect the integrity of SalesLogix/AA?
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jun 08 9:19 PM
If you have remotes, any sprocs or triggers will not have their inserts, updates or deletes sent out to remotes or back to the server unless you somehow run them through the SalesLogix OLEDB provider. All date/time fields in the database (as defined by their definition in SalesLogix, *not* SQL Server) are stored as GMT and the provider does all that translation work for you. If you insert a date in a sproc, you need to make sure you account for that.

Basically, all the reasons Timmus outlined with a little more detail. Trust me - if Timmus & Ryan say it's probably not a good idea, it's probably not.

Jeff
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jun 08 2:56 AM
All of the points were considerations - NOT reasons not to use them. I already pointed out dont bother using them if you have remotes, but everything else can be worked around...

But to be fair it is much easier to do all of that in your application not in SPs and triggers!!
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jun 08 9:51 AM
Oh, I agree. It can be done. I have a customer with over 50 sprocs in the database. They never had remotes and never will. We made them swear in blood they understood that if they ever wanted them then they would have to start over.

At this point, they're stuck on 5.2 with no reasonable upgrade path - at least without a LOT of work. A technology shift like happened with the provider made upgrading even tougher. The customer could have upgraded to newer versions without remotes - except for the provider. They'd have to modify every sproc to account for GMT as well as the calculated fields. That in and of itself is reason to not upgrade; it'd be too huge of an effort.

But as Timmus said, the caveat is to know SLX deep enough to know what you're about to do. For those of us who have worked with it for a while, it's old news. For someone with limited SLX experience, it could be an accident with big consequences.

Jeff
[Reply][Quote]
ulaga
Posts: 28
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 1:59 AM
Hi Friends,

Sorry for late reply.since past 2 days i am not feeling well ,i am not able to reply for your comments.

So most person's comment is 'not to use Triggers & SP's ' in database level.

But Jeff is telling that he has customer with over 50 sprocs in database.

Hi jeff,
Can i have the sample of integrating SP's and AA.

Ulaga
[Reply][Quote]
ulaga
Posts: 28
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 6:18 AM
hi nick

I have a basic doubt here. What U mean be remote users in SalesLogix?


Ulaga
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 6:21 AM
Hi Ulaga,

If you dont know what remote users are then you certainly shouldnt be using SPs or Triggers

Remote users are Saleslogix users who log into the system using the remote version of the LAN client.

Nick
[Reply][Quote]
ulaga
Posts: 28
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 6:33 AM
Thanks Nick for the answer

When the user raises trigger in the database,what may be the problem in user using the SalesLogix Website?

whether raising trigger in database affects AA.

Ulaga
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 6:50 AM
Jeff and Timmus have stated a few of the pitfalls of using them above. I would seriously try getting what you need to work in the client as opposed to using triggers.

There arent really issues that occur in AA using triggers, they affect the client, and data integrity.
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 9:46 AM
Quote:
Originally posted by ulaga


Hi jeff,
Can i have the sample of integrating SP's and AA.


I don't have any examples using SPs with AA - they were all used in 5.2 and web manager. That said, there really is no reason for 99.9% of all implementations to use a sproc in SalesLogix. I hit that .1%, and as I said before, that customer will probably never be able to upgrade - they'd have to start over.

Jeff
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: TRIGGERS and STOREDPROCEDURESYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 5:52 PM
Please describe the situation you have encountered in SLX where you believe that SPs and triggers are required, over and above what is possible from within SalesLogix using 'standard' means.

The chances are that someone here has the knowledge to solve your problem without compromising your system's upgradeability and capacity to support remotes.

Phil
[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): 2/23/2025 1:53:24 PM