Viewing 15 posts - 7,531 through 7,545 (of 26,490 total)
Lowell (5/23/2013)

I have a certain fondness for doing solutions in TSQL, or at least be centered around TSQL, regardless of whether it's the right tool for the job or...
May 23, 2013 at 2:31 pm
I would make one more change, in the WHERE clause:
SELECT
Category,
COUNT(Category) AS CatCount,
DATENAME(month, OpenDate) AS mopendate
FROM
...
May 23, 2013 at 12:50 pm
I would like to point out that this function could be a performance killer if used with large data sets. There are two ways to fix this.
One, instead of...
May 23, 2013 at 12:35 pm
Steve Jones - SSC Editor (5/23/2013)
I think I may be more happy than the kids to sleep in...
May 23, 2013 at 12:20 pm
SQLSACT (5/23/2013)
Principal, Mirror and Witness constantly Ping each other - The Partner Timeout is how long after NOT receiving a reply must it perform an automatic failover. I...
May 23, 2013 at 7:45 am
It is also looking like open_date is stored in seconds since 1/1/1970, is this correct? That would also change my solution.
May 23, 2013 at 7:38 am
GOODS (5/23/2013)
I'm designing a report in SSRS,I need to pull that from DB from previous Friday till the end of the current Friday.
this is what I have on WHERE...
May 23, 2013 at 7:36 am
Sergiy (5/22/2013)
Lynn Pettis (5/22/2013)
May 22, 2013 at 10:51 pm
Sergiy (5/22/2013)
rot-717018 (5/22/2013)
Here's the correction if it helps someone ...
select @dt = convert(char(10), getdate(), 111)
By all means try to avoid datetime-char-datetime conversions.
Pretty efficient performance killer.
Develop a habit to use this...
May 22, 2013 at 10:44 pm
patrickmcginnis59 10839 (5/22/2013)
Lynn Pettis (5/22/2013)
patrickmcginnis59 10839 (5/22/2013)
Lynn Pettis (5/22/2013)
patrickmcginnis59 10839 (5/22/2013)
Brandie Tarvin (5/22/2013)
patrickmcginnis59 10839 (5/21/2013)
L' Eomot Inversé (5/21/2013)
May 22, 2013 at 4:42 pm
Evil Kraig F (5/22/2013)
Lynn Pettis (5/22/2013)
May 22, 2013 at 3:11 pm
jignesh.swami82 (5/22/2013)
I means there is name upto 33 databases test1 to test33
Okay, if you list 33 database names how do you expect the procedure to backup 41 databases as you...
May 22, 2013 at 3:06 pm
patrickmcginnis59 10839 (5/22/2013)
Lynn Pettis (5/22/2013)
patrickmcginnis59 10839 (5/22/2013)
Brandie Tarvin (5/22/2013)
patrickmcginnis59 10839 (5/21/2013)
L' Eomot Inversé (5/21/2013)
May 22, 2013 at 2:56 pm
This:
/*This command will get all Producation databases with any recovery model*/
DECLARE getdbname CURSOR FOR
SELECT nameFROM sys.databases
Where name in ('test1','test2','test3','test4','test5','test6',test7')
will get you 7 databases: test1','test2','test3','test4','test5','test6',test7'.
If this is a "Sanitized" script it...
May 22, 2013 at 2:14 pm
Stefan Krzywicki (5/22/2013)
Lynn Pettis (5/22/2013)
...take what others say out context...just the part you wish to make a comment on.I can't believe you'd give advice like this.
Funny, and when did you...
May 22, 2013 at 2:00 pm
Viewing 15 posts - 7,531 through 7,545 (of 26,490 total)