Viewing 15 posts - 16 through 30 (of 65 total)
I put it aside for several hours and came back with fresh eyes and found I had some bad logic elsewhere that was causing my erratic results.
Thanks everyone!
Roger
January 5, 2010 at 1:26 pm
It doesn't return an error message when it runs... just doesn't evaluate correctly.
January 5, 2010 at 10:20 am
Lowell, this is perfect! Thank you so much!
Roger
December 26, 2009 at 9:05 am
Works perfectly! Thank you so much.
Rog
December 1, 2009 at 8:09 am
select dateadd(qq, datediff(qq, 0, getdate()), -1)
Nice!
November 24, 2009 at 12:23 pm
If month(getdate()) = '01'
set @PaidThruRun = convert(datetime, ( '12/31/' + convert(varchar,year(Getdate()-1) )))
I'm only doing this for four quarters...
November 24, 2009 at 12:06 pm
I actually got it to work by doing this:
If month(getdate()) = '04'
set @PaidThruRun = convert(datetime, ( '03/31/' + convert(varchar,year(Getdate()) )))
November 24, 2009 at 11:55 am
Perfect! Thank you!
Roger
November 15, 2009 at 6:44 am
Not sure what you mean. That if I don't have it looking at inserted and deleted and just update, that I can work around the issue?
Thank you.
Roger
November 12, 2009 at 8:46 am
Thanks... but there would be concurrent activity going on and it would be difficult to coordinate disabling the trigger whenever a certain process needs to be run (involved two different...
October 9, 2009 at 10:34 am
Thanks everyone for pointing me in the right direction. I did figure it out. I am setting it up to use in the body of an email where...
October 3, 2009 at 2:06 am
Thank you. What would the best command to shrink the database?
Looks like the data needs to cleared out from time to time.. it's tracking user action on the web.
September 2, 2009 at 9:15 am
This worked fine and ran quick... just had 5,000 records to update. Thank you everyone!
Roger
August 25, 2009 at 10:08 am
David Portas (7/28/2009)
July 28, 2009 at 7:53 am
I created the procedure and just try to run it and get the following message:
Server: Msg 17985, Level 16, State 1, Line 0
xp_sendmail: Procedure expects parameter @user, which was not...
July 23, 2009 at 8:10 am
Viewing 15 posts - 16 through 30 (of 65 total)