Viewing 8 posts - 1 through 8 (of 8 total)
This top one works - THANK YOU!
DECLARE @yesterday DATETIME
SET @yesterday = DATEADD(hh,15,DATEADD(dd,DATEDIFF(dd,0,GETDATE()-1),0))
SELECT @yesterday
this one gives me an error: That says DATE is invalid.. not sure if I was suppose to...
March 10, 2010 at 11:54 am
BTW, Thank you for responding!
March 10, 2010 at 11:43 am
I should have said that I was pretty new to developing, so I kind of understand your terminology, but could you give me an example.
March 10, 2010 at 11:43 am
Is there a better way to write the select statement to be able to validate the update?
February 25, 2010 at 6:55 pm
to Wayne:
Basically, your change worked as long as I put in a few column names, but when i just ran your query, I got this message:
Msg 421, Level 16, State...
February 25, 2010 at 6:50 pm
To Wayne:
Is my update statement written correctly?
February 25, 2010 at 6:41 pm
I am not sure about what you said.... The table I am updating has many more rows than the tables I am not updating..
February 25, 2010 at 6:37 pm
I found another way to do this.
1. Create a sql server agent job
2. Put an email message to yourself or your dba group in step...
July 24, 2009 at 3:13 pm
Viewing 8 posts - 1 through 8 (of 8 total)