Viewing 15 posts - 30,196 through 30,210 (of 59,101 total)
ColdCoffee (5/2/2012)
Jeff Moden (5/2/2012)
ColdCoffee (5/2/2012)
SELECT STUFF(CONVERT(VARCHAR(30),'2012-12-12 18:07:33.933',7),4,5,'-')
Result -- 201-12 18:07:33.933
But this produces proper result:
declare @date datetime = '2012-12-12 18:07:33.933'
SELECT STUFF(CONVERT(VARCHAR(30),@date,7),4,5,'-')
I guess, the CONVERT,...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 3, 2012 at 6:39 am
Why are we messing around with real names? Single update with random length GUIDs will mask the data with guaranteed no way back.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 10:00 pm
Why are we messing around with real names? Single update with random length GUIDs will mask the data with guaranteed no way back.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 9:59 pm
soulchyld21 (5/2/2012)
I am trying to learn to use aggregate functions such as count()
I am able to get the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 7:57 pm
ColdCoffee (5/2/2012)
SELECT STUFF(CONVERT(VARCHAR(30),'2012-12-12 18:07:33.933',7),4,5,'-')
Result -- 201-12 18:07:33.933
But this produces proper result:
declare @date datetime = '2012-12-12 18:07:33.933'
SELECT STUFF(CONVERT(VARCHAR(30),@date,7),4,5,'-')
I guess, the CONVERT, when supplied with...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 7:40 pm
ColdCoffee (5/2/2012)
But surma.sql, why are u creatin the same thread again and again in all the forums?
Heh... that's easy. It's "urgent". 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 7:31 pm
sqlfriends (5/2/2012)
Ok, here is the reduced size sample data.
You should try loading your own script and see what happens when you have no Carriage Returns or Line Feeds in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 7:24 pm
Most of us will be in trouble if we go to a country that uses more than 3 character abbreviations for months. 😀
Regardless of language selected (well... at least most...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 6:54 pm
Lynn Pettis (5/2/2012)
DECLARE @DateVar DATETIME;
SET @DateVar = '20120802 10:30:58.003';
SELECT @DateVar, LEFT(DATENAME(mm,@DateVar),3) +...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 6:34 pm
If you now have data with something to guarantee the order, such as the IDENTITY column you spoke of, and you would save me some time by posting readily consumable...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 6:17 pm
Mike Austin-398977 (5/2/2012)
There are 321K rows in the Document table and 41K rows in the linking table.
Thanks, Mike.
Mike Austin-398977 (5/1/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 5:38 pm
Given that, I hope your boss doesn't have the misconception that finding the nearest airport to any given airport has anything to with finding the shortest path between airports.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2012 at 6:44 am
Chad Crawford (5/1/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 1, 2012 at 10:26 pm
You have 1.4 million people right here. Much better than teaming up with just 1 person. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
May 1, 2012 at 10:10 pm
ChrisM@Work (5/1/2012)
Jeff Moden (5/1/2012)
For the same reason you'd distinct a column with dupes. To find out if there are dupes.
LOL! You got me 😛
I had an interview last friday...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 1, 2012 at 10:07 pm
Viewing 15 posts - 30,196 through 30,210 (of 59,101 total)