Viewing 15 posts - 39,196 through 39,210 (of 59,098 total)
dma-669038 (3/27/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 8:32 pm
Lynn Pettis (3/27/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 7:03 pm
Jeff Moden (3/27/2010)
SwePeso (3/27/2010)
The good Lord allows you to jump in, huh Jeff? 😀
Ummm... not sure I understand the reference or the question, Peter. What do you mean or...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 6:54 pm
To be sure, I'm not against certs, degrees, and other supposed tally marks of education. When done correctly, they are well deserved.
The problem is that so many do them...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 3:06 pm
SwePeso (3/27/2010)
The good Lord allows you to jump in, huh Jeff? 😀
Ummm... not sure I understand the reference or the question, Peter. What do you mean or have I...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 2:48 pm
Quatrei.X (3/25/2010)
SELECT CAST((RAND()*1000000000) AS INT)
since you said no "-"
but if it includes dashes like lowell's example, thi is my code
DECLARE @i INT
SET @i=1
DECLARE @tbl TABLE (SSN NVARCHAR(11))
WHILE...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 2:24 pm
Eric Zierdt (3/24/2010)
SELECT CAST((RAND()*1000000000) AS INT)Let me know if that works for ya
That only works for one row at a time which means you'll also need to use some form...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 2:12 pm
Sudarsan Srinivasan (3/26/2010)
Apparently this got fixed with a SQL server restart...
All that's left to do is get rid of the loop and you're golden! 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 2:06 pm
Heh... I believe so.
Of course, there might be the "parameter sniffing" thing going on, as well. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 2:01 pm
And now we know why I've gotten in the habit of aliasing all column names. Out of habit, it's even bled over into queries that only have one table.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 1:59 pm
As a bit of a side bar, my favorite name for a Temp table used to resolve a difficult problem is... you guessed it... #MyHead. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 1:49 pm
Bhavin_Bhatt25 (3/27/2010)
I have developed CTE which gives result using PIVOT; Its working perfect. as follows.
Item Year ...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 1:43 pm
Heh... absolutely remarkable. On a bit of a meloncholy note, it's amazing how things have changed in the last 7 or so years on this fine forum. "I...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 1:40 pm
You're supposed to round the final answer.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 1:20 pm
IIRC, you need the Enterprise version of SQL Server to use DEBUG and you need some seriously elevated privs even then. The detailed information you seek is too long...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2010 at 1:15 pm
Viewing 15 posts - 39,196 through 39,210 (of 59,098 total)