Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: cart Cleanup schedule

$
0
0
Hi Franco,

Yes, I can't remember the specifics off the top of my head, but I think the scheduler does runs in a different context to everything else in DNN.

I think my first approach would be to strip the dbo (whatever your dbo is!) from the SPROC in order try and fix it..

ALTER PROCEDURE [NEvoweb_NB_Store_Cart_DeleteOldCarts]
@PortalID int,
@CartMins int,
@OrderMins int
AS
begin
delete from [NB_Store_Cart] 
where DateCreated < dateadd(minute,(@CartMins * -1),getdate())
and PortalID = @PortalID

delete from [NB_Store_Orders] 
where 
((OrderDate < dateadd(minute,(@OrderMins * -1),getdate()) and ElapsedDate is null)
or (ElapsedDate < getdate() ))
and OrderNumber = ''
and PortalID = @PortalID
end

Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>