Viewing 15 posts - 3,946 through 3,960 (of 5,590 total)
jeff.mason (6/21/2010)
June 21, 2010 at 12:52 pm
Steve Jones - Editor (6/21/2010)
However when it's a professional sport, and televised, it ought to be run more professionally. At that point it's not for the players.
I can definitely see...
June 21, 2010 at 12:17 pm
Since both of those are the default terminator values, all you need is:
BULK INSERT dbo.test
FROM 'F:\test.txt'
WITH (
DATAFILETYPE = 'char',
KEEPNULLS,
firstrow =2
);
June 21, 2010 at 9:38 am
I'm sorry, I just noticed that you are asking for an UPDATE statement, and I provided a SELECT.
So, how's this:
UPDATE c1
SET client_id = CASE WHEN c1.record_type =...
June 21, 2010 at 9:29 am
How does this work for you?
SELECT c1.uniqueid,
c1.company,
c1.firstname,
c1.lastname,
...
June 21, 2010 at 9:08 am
eddy-644184 (6/21/2010)
Hi Dave,Amazing how you guys can come up that quickly with the right link for a certain problem.
Well, considering that Dave wrote that blog... 😉
June 21, 2010 at 8:02 am
This method utilized the DelimitedSplit function. You really should read the article mentioned in the remarks, and build your very own permanent tally table - with a properly built table...
June 19, 2010 at 5:06 am
Just my luck.....
Wednesday, I updated a test box to SQL 2008. Pretty old (> 9 years)...
Last night, the drive controller failed spectacularly (sparks, smoke, everything), completely corrupting the HDDs connected...
June 18, 2010 at 8:00 pm
Which is why you should store dates in a datetime column.
try "and convert(datetime, date) between" ...
of course, this will completely prevent the use of any supporting indexes on that field.
June 18, 2010 at 7:55 pm
loki1049 (6/18/2010)
Wow, each day I spend learning this SQL stuff the more stupid I realise I was the day before.
ditto! :w00t:
June 18, 2010 at 3:58 pm
Check out the two cross-tabs and pivots links in my signature block.
June 18, 2010 at 3:02 pm
Dan.Humphries (6/18/2010)
Actually before I read your article I must admit I gave very little thought to set based programming at all.
Now, this here is a man that isn't afraid to...
June 18, 2010 at 3:01 pm
Lynn Pettis (6/17/2010)
Checked out a thread where one of my blogs was referenced, feels good when it helps someone solve a problem. 🙂
I frequently reference your blog for the...
June 18, 2010 at 2:56 pm
This will show you how to convert a range of dates into year/quarters. I'm also adding in the first and last date/time for each quarter. You should be able to...
June 17, 2010 at 8:39 am
Here's another way to do this:
declare @StartDate datetime
-- get the 12/1 date for the previous year
set @StartDate = DateAdd(month, -1, DateAdd(year, DATEDIFF(year, 0, GetDate()), 0))
-- See Jeff Moden's article
--...
June 17, 2010 at 7:23 am
Viewing 15 posts - 3,946 through 3,960 (of 5,590 total)