Viewing 15 posts - 30,586 through 30,600 (of 59,101 total)
derekr 43208 (3/27/2012)
By declaring the variables as below - Will that guarantee that every number generated is Unique?
SELECT @NumberOfRows = 10000000,
@StartValue...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2012 at 6:41 am
We can do this and keep it simple.
WITH
cteFixDates AS
(
SELECT FixedDate = REPLACE(REPLACE(DATESTRING,'/0','/'),'.0','.')
FROM #TempTable
)
SELECT CONVERT(CHAR(10),CAST(FixedDate AS DateTime),103)
FROM cteFixDates
WHERE ISDATE(FixedDate) = 1
;
--Jeff Moden
Change is inevitable... Change for the better is not.
March 27, 2012 at 6:36 am
pwalter83 (3/23/2012)
Hi,I have a requirement to add columns (varchar) where data is separated with a colon (:). For e.g.
115:32 and 34:28
160:00 (hrs and minutes).
Thanks,
Paul
Paul,
For future posts, please see the...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 10:36 pm
You're welcome but you still might want to post the code for the view.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 9:43 pm
WayneS (3/26/2012)
Nice coincedence today... I went to the site to find how you did this, and here's the article explaining it all.
Thanks for taking the time for this...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 4:54 pm
GPO (3/26/2012)
That's a good point to bring up. A random distribution will create a uniform distribution across a range of data
I heartily agree. It's been a long time since I...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 4:51 pm
Matt Miller (#4) (3/26/2012)
Jeff Moden (3/26/2012)
Matt Miller (#4) (3/26/2012)
sknox (3/26/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 4:48 pm
Michael Valentine Jones (3/26/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 4:46 pm
Lynn Pettis (3/26/2012)
Evil Kraig F (3/26/2012)
GilaMonster (3/23/2012)
SQLRNNR (3/23/2012)
GilaMonster (3/23/2012)
Lynn Pettis (3/23/2012)
Wants a primary key on fname and lname.
You say that like it should be obvious it's a bad idea. I...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 2:11 pm
Matt Miller (#4) (3/26/2012)
sknox (3/26/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 1:57 pm
Eric M Russell (3/23/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 8:10 am
Sean Lange (3/26/2012)
Excellent article Jeff. Yet another home run!!! Your explanations are always so clear that even us lessers can understand. Keep them coming!!!
Heh... "lessers". I've seen your posts...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 7:48 am
mohammed moinudheen (3/26/2012)
Jeff Moden (3/25/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 7:13 am
codebyo (3/26/2012)
Sometimes we know that we should do things one way or another because it's...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 6:46 am
dwain.c (3/26/2012)
I can't wait for the purists to berate you for using "pseudo" random...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2012 at 6:36 am
Viewing 15 posts - 30,586 through 30,600 (of 59,101 total)