Viewing 15 posts - 6,706 through 6,720 (of 7,619 total)
GilaMonster (2/28/2013)
stehoban (2/27/2013)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 4, 2013 at 9:28 am
Jeff Moden (3/3/2013)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 4, 2013 at 8:19 am
BuntyBoy (3/1/2013)
Just as a best practice, for naming convention always try to use .ndf for second, third, etc data...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 3:31 pm
Jeff Moden (3/1/2013)
ScottPletcher (3/1/2013)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 2:58 pm
Lynn Pettis (3/1/2013)
ScottPletcher (3/1/2013)
Jeff Moden (3/1/2013)
ScottPletcher (3/1/2013)
Code reuse is another tricky subject. It generally gets talked about far more often than it is genuinely done. A few developers...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 2:30 pm
Jeff Moden (3/1/2013)
ScottPletcher (3/1/2013)
Jeff Moden (3/1/2013)
Eugene Elutin (2/28/2013)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 2:23 pm
Jeff Moden (3/1/2013)
ScottPletcher (3/1/2013)
Jeff Moden (3/1/2013)
Eugene Elutin (2/28/2013)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 2:20 pm
Jeff Moden (3/1/2013)
ScottPletcher (3/1/2013)
Code reuse is another tricky subject. It generally gets talked about far more often than it is genuinely done. A few developers are bad enough,...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 2:18 pm
Sean Lange (3/1/2013)
ScottPletcher (3/1/2013)
Or simply:
SELECT CONVERT(char(2), myDate, 1)
I don't think will quite work Scott. The OP said they are using month(MyDate) which will return an int. Casting a single digit...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 2:15 pm
First, make sure you're checking index fragmentation and only rebuilding indexes that actually need it.
Also, if you have tempdb properly tuned, look into using "SORT_IN_TEMPDB = ON" option when rebuilding...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 1:53 pm
Or simply:
SELECT CONVERT(char(2), myDate, 1)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 1:09 pm
Just trying to find something that fits the symptoms...
Is it possible that a db was deleted (offlined???) during your processing?! Perhaps a process that deletes and then restores a...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 11:35 am
Lynn Pettis (3/1/2013)
ben.brugman (3/1/2013)
Jeff Moden (2/26/2013)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 10:42 am
Jeff Moden (3/1/2013)
Eugene Elutin (2/28/2013)
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
March 1, 2013 at 10:40 am
Please see if this gives you a useful result:
SELECT
siwh.ItemNumber, siwh.StoreNumber, w.Weeks
FROM #StoreItemWeeksHave siwh
INNER JOIN #Weeks w ON
w.Weeks BETWEEN siwh.WeekStart AND siwh.WeekFinish
ORDER BY
...
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
February 28, 2013 at 3:53 pm
Viewing 15 posts - 6,706 through 6,720 (of 7,619 total)