January 26, 2012 at 4:21 am
Hi All,
Can anyone tell me if its possible to do the following when setting a condition in Policy Based Management. It's not letting me do it...
Facet:
Database
Expression:
Field = @LastBackupDate
Operator >=
Value = CONVERT(CHAR(11),GETDATE(),120)
I basically want to see if the last backupdate is greater or equal to the current day without specifying a time.
Cheers,
Chris
January 26, 2012 at 5:33 am
I've managed to come up with 1 solution:
ExecuteSql('DATETIME', 'SELECT CONVERT(CHAR(11),GETDATE(),120)')
this will give the expected result. if anyone can come up with a better way to do this I'm all ears
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy