Viewing 15 posts - 43,456 through 43,470 (of 59,063 total)
Using QUOTENAME will pretty much put the kabosh on SQL Injection. But, I agree... if it's not used in a public facing environment, there's not much need for the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 7:57 pm
Lynn Pettis (6/10/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 7:51 pm
lmu92 (6/10/2009)
It's not that hard to generate sample data - but it's time consuming.
It's a lot less time consuming than putting it into an excel spreadsheet, attaching the file, and...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 7:11 pm
GSquared (6/10/2009)
BUT, in a company with thousands of employees, can top management, or even upper middle management, actually get to personally know every employee?
Absolutely agreed. I didn't say they...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 6:36 pm
GSquared (6/10/2009)
So, in other words, no human anywhere should use any tool for anything, because it will cause the loss of responsibility and "the human touch".
I don't believe anyone even...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 6:15 pm
Mad Hacker (6/10/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 11:54 am
drogers (6/10/2009)
Uh, why would you "not agree with the idea that RAND() doesn't work like NEWID() in T-SQL." Do you find the discrepancy "unexpected?" 😀
Heh... Only the first time...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 11:09 am
RBarryYoung (6/9/2009)
Jeff Moden (6/9/2009)
O(wtf2) 😉Heh. Hey, I'm not the one who asked the question, I'm just trying to answer them.
Oh no... sorry, Barry. Wasn't directed at anyone in...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2009 at 5:52 am
Mike C (6/9/2009)
Jeff Moden (6/9/2009)
Mike C (6/9/2009)
Another minor quibble - each instance of RAND() is invoked once per query.
SELECT RAND(), RAND()
Generates two different random numbers because RAND() is actually called...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 10:45 pm
Steve Jones - Editor (6/9/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 10:40 pm
balars_2000 (6/9/2009)
I would display 0's to indicate there was no data during that particular week.--Ta
Then you need a complete list of dates to join against for any given year...
[font="Courier New"]DECLARE @FirstDate DATETIME
SELECT @FirstDate = '20090104'
SELECT v.Number AS Week,
DATEADD(wk, v.Number ,@FirstDate) AS StartDate,
DATEADD(wk, v.Number+1 ,@FirstDate) AS NextDate
FROM Master.dbo.spt_Values v
WHERE Type = 'P'
AND Number BETWEEN 0 AND 51[/font]
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 10:34 pm
Heh... no, I had the right post.
No one has correctly defined what the "first ten" will be. Without something to do an ORDER BY in the data, all...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:20 pm
Sorry... wrong post.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:15 pm
Jason Crider (6/9/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:08 pm
Obviously not directed at Steve... this type of thing is a big steaming pile of hooie. Everyone thinks they can figure out humans with numbers and stats. Try...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:00 pm
Viewing 15 posts - 43,456 through 43,470 (of 59,063 total)