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
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