Viewing 15 posts - 1 through 15 (of 27 total)
Think I figured it out...I'll just use 2 case statements instead....seems to work:
, case when MAX(s.last_run_date) > 0 then
case s.last_run_outcome
...
February 27, 2012 at 10:14 am
You can try this:
SELECT CONVERT(VARCHAR(10), GETDATE(), 103) AS [DD/MM/YYYY]
--31/01/2012
More SQL Time Formatting Examples:
January 31, 2012 at 9:48 am
Thanks! You helped me greatly....and you are correct, I had to take into account the Years of the dates as well.
I think (**hope**) I have thought of all the...
November 29, 2011 at 2:34 pm
The following will show you a listing for all DDL triggers on your dB, including Database and Server-level triggers:
SELECT * FROM sys.triggers WHERE parent_class=0
November 23, 2011 at 12:37 pm
Well, the problem is that some of our instances of 2008 have been experiencing an issue where WMI use just stops working correctly for some reason and the only thing...
July 15, 2011 at 3:28 pm
I don't think there is a way to find out WHO created it, but you can see WHEN it was created:
select
crdate,
i.name,
object_name(o.id)
from
sysindexes i
join sysobjects o ON o.id =...
July 14, 2011 at 2:57 pm
I thought of this as well, but I think because this is a Development box, we have a lot of people setup as sysadmins who need access to drop/create/alter objects...
July 14, 2011 at 2:01 pm
OK, so know I have a DDL trigger that logs all events, a DDL trigger to prevent this specific table from being dropped, and a normal table trigger to prevent...
July 14, 2011 at 1:40 pm
Well, the reason I am worrying about this one specific table being dropped is because it is used to store information from another DDL trigger we have setup on the...
July 14, 2011 at 12:43 pm
Thanks for the quick response. This is exactly what I needed and it works perfectly. 🙂
July 14, 2011 at 10:21 am
Thanks for sharing this script. It works great and is going to be a big help in the future.
May 17, 2011 at 8:15 am
What I am basically trying to do is send a CSV file with records from 3 different tables. I know I can just do it by creating 3...
February 15, 2011 at 10:54 am
Thanks for the help everyone. I ended up going with a UDF that parsed the string into individual rows in a temp table, then I just did a...
January 28, 2011 at 7:46 am
Try creating another variable for the body, then forming a string that includes the variables you need:
Declare @Body VARCHAR(500)
Set @Body = "This is a test:' + @variable + ' More...
December 16, 2010 at 1:36 pm
When it comes down to it, the reason the tempdb fills up is because the query is returning way too much data, and you need to find out why and...
October 18, 2010 at 1:46 pm
Viewing 15 posts - 1 through 15 (of 27 total)