Viewing 15 posts - 35,941 through 35,955 (of 59,099 total)
This will do it...
DECLARE @Ticks BIGINT
SELECT @Ticks = 634262130000000000
SELECT Converted = CAST(@Ticks/864000000000.0 - 693595.0 AS DATETIME)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 25, 2010 at 12:18 am
Craig Farrell (11/23/2010)
If you'd like more tested code, please see the first link in...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 11:53 pm
It's a little out of character for me but I know you'll recognize the rhetoric. I just couldn't resist... it was too perfect. Enjoy... 😛
http://www.sqlservercentral.com/Forums/Topic1025567-392-1.aspx#bm1026289
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 8:10 pm
{edit} wrong post.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 8:08 pm
LutzM (11/24/2010)
May the turkey be tender and juicy and the people you're celebrating with be the ones you love and care about.
My very...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 8:01 pm
petervdkerk (11/24/2010)
DECLARE @Count int
DECLARE @companyname nvarchar(50)
DECLARE @id int
DECLARE dublicate_cursor CURSOR FAST_FORWARD FOR
SELECT companyname, Count(*) - 1
FROM prospects
GROUP BY...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 7:46 pm
CELKO (11/24/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 7:14 pm
Remember the old ways before CROSS APPLY and ROW_NUMBER?
In days of old,
When Knights were bold,
And Windowing was not invented,
He wrapped his code
In a familiar mode
And RBAR was prevented. 😀
To wit...
CREATE...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 7:01 pm
WayneS (11/24/2010)
Craig Farrell (11/24/2010)
CirquedeSQLeil (11/24/2010)
jcrawf02 (11/24/2010)
Should we point out that his view solution doesn't *just* give you the duplicates? 😉Yes - fire away!!!!!!!!!
I just ended up having to thump Joe...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 5:12 pm
Ram2002 (11/24/2010)
Thanx Criag. I appreciate all you ppl in this post time.This was the first post so went wrong. Next time will be in appropriate forum.
Except for it being...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 4:17 pm
CELKO (11/24/2010)
Your code is terrible and using a cursor is really bad SQL programming. What you...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 3:11 pm
Iulian -207023 (11/24/2010)
Now the size is 0.28MB - which is great.
I dropped one unclustered index and left only the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 2:45 pm
Heh... not to worry, Lutz. You've seen the mess I can make of things if I PBC (Post Before Coffee). 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2010 at 2:38 pm
Ray K (11/23/2010)
Please do NOT waste people's time by cross-posting!!!All: do not respond to this post; please use http://www.sqlservercentral.com/Forums/Topic1025402-391-1.aspx.
Whoa! No need to yell, Ray. And considering the OP...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 23, 2010 at 10:39 pm
WayneS (11/22/2010)
jguerra2 (11/22/2010)
Thanks for the code. I will try...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 23, 2010 at 10:36 pm
Viewing 15 posts - 35,941 through 35,955 (of 59,099 total)