Viewing 15 posts - 54,166 through 54,180 (of 59,065 total)
Ok, I'm not Jeff but I'm gonna take a shot at this anyway
First the question
WeekStart = DATEADD(dd,DATEDIFF(dd,-1,Date)/7*7,-1),
The /7*7 gives you a different number because the 7's are integers....
November 12, 2007 at 5:56 pm
Grumpy DBA (11/12/2007)
J Moden - Where in Michigan are you located? I heard about a possible opening...
November 12, 2007 at 5:07 pm
Using the "code" and "/code" tags (you need to include square brackets around those words instead of the double quotes... ). Still sucks for the end user, though, because...
November 12, 2007 at 5:01 pm
Thanks for the feedback on your solution, Juan...
November 12, 2007 at 4:56 pm
It's not a good analogy. An unhealthy restaurant will get you sick or dead.
Heh... it's a great analogy... An unhealthy bit of code will make your database sick or...
November 12, 2007 at 4:52 pm
Are they like restaurants opening without a health inspection?
I couldn't have come up with a better analogy if I tried... there are so many that are absolute rubbish when...
November 12, 2007 at 7:06 am
No, no... I believe a checksum of each row would allow you to check for uniqueness across the 24 columns. Lookup CHECKSUM in BOL...
November 12, 2007 at 6:31 am
Is this a separate request or added requirements to what has been done already?
... and NVL is ORACLE... the equivelant in SQL Server is ISNULL... but why would you not...
November 12, 2007 at 6:26 am
Just a different slant on things...
-- DROP TABLE #T
GO
--===== Create a table to store the results in
CREATE TABLE #T
(
...
November 11, 2007 at 10:40 pm
And, please don't post duplicate posts.... we'll find ya...
http://www.sqlservercentral.com/Forums/Topic420902-145-1.aspx
November 11, 2007 at 10:09 pm
Duplicate post...
http://www.sqlservercentral.com/Forums/Topic420896-146-1.aspx
November 11, 2007 at 10:07 pm
Lordy, I hate setting up test data for payroll examples... whatever...
Here's some code that generates 100,000 entries for 200 employes for a year's worth of payroll following your rules...
November 11, 2007 at 9:30 pm
So, double check one more time...
All indexes (indluding primary keys) on the test box are also available on the production box.
All tables have the same row count on both boxes.
All...
November 11, 2007 at 5:29 pm
You didn't listen to me... lookup "expanding hierarchies" in Books Online and adapt it. It WILL do as you ask.
November 11, 2007 at 5:18 pm
Oh, little nuances like will there ever be more than 2 names in a class? If so, do all the scores have to be the same or just 2?...
November 11, 2007 at 9:16 am
Viewing 15 posts - 54,166 through 54,180 (of 59,065 total)