Viewing 15 posts - 37,486 through 37,500 (of 59,098 total)
It would be better to avoid the cursor altogether. If you post according to the suggestions in the article at the first link in my signature below, someone will...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 28, 2010 at 10:17 pm
Since Codd rather well endorsed NULLs, why are they considered such an irritant even by some of those that appear to follow his every word with nearly religious zeal? ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 28, 2010 at 8:50 pm
I'm torn... it's a nicely written article but the premise is at least twice as complicated as it needs to be and 2 times as slow as conventional methods, IMHO....
--Jeff Moden
Change is inevitable... Change for the better is not.
July 28, 2010 at 5:56 pm
Digs (7/27/2010)
This code
ALTER TABLE #tempSumIndex
ADD PRIMARY KEY CLUSTERED (Date) WITH FILLFACTOR = 100
The FILLFACTOR = 100
My data could get into the 1000s of...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 27, 2010 at 10:01 pm
Jack Corbett (7/26/2010)
Wow, Honeywell is hiring a database guy. Based on the databases I've seen behind Honeywell products you are the first.
Truer words never spoken...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 27, 2010 at 8:55 pm
Digs (7/27/2010)
I did make changes
I changed the date from YYYYMMDD and INT field to a DATETIME field..
ALL seam to work ok, and YES I can read and understand TSQL.
So can...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 27, 2010 at 2:26 pm
NewBeeSQL (7/26/2010)
Jeff / Jvanderberg...Thanks a lot for your explantions...
You bet. Thank you for the feedback.
As a side bar... "one" of the exceptions to what JVanderberg and I have been...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 27, 2010 at 2:08 pm
Dave Ballantyne (7/27/2010)
A calendar table is essential imho
Definitely one of the more useful aux tables and one of the better links on the subject.
The only problem here is that I...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 27, 2010 at 6:42 am
stewartc-708166 (7/26/2010)
declare @Range tinyint, @Date datetime
select @Range = 15, @Date = '2010-01-31';
with mydateRange
as (
select @Date as dateof, row_number() over( order by @Date) num
union all
select DATEADD(mm, num, @Date),...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 27, 2010 at 6:29 am
Because the test data used the ISO date format of YYYYMMDD, the dates were sortable. Since the only thing we're doing with the dates is joining and sorting, that...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 27, 2010 at 6:22 am
My recommendation is to save the data somewhere so you don't need to recalculate it over and over. But... I'll let you figure that out (it's simple). Here's...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2010 at 10:20 pm
Understood on ALL that, thanks.
Do you want the "setup values" to be hard coded or should they be stored in a "setup" table somewhere?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2010 at 9:04 pm
GilaMonster (7/26/2010)
Jeff Moden (7/26/2010)
BWAA-HAA!!!! Gotta love that... MS "supports" deadlocks. :-):-D:-P;-):hehe:
The Sharepoint team only.
Someone I know took this problem to customer support. The SQL support team looked over the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2010 at 8:58 pm
You do know about VARCHAR(MAX) in 2k5 and 2k8, right? Will hold 2 million characters just like the old TEXT datatype in 2k without all the pointer headaches.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2010 at 8:49 pm
I believe the easy way to do this will be to use "OPENROWSET" against the file because it will read the first row with the correct column names. Then...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2010 at 8:21 pm
Viewing 15 posts - 37,486 through 37,500 (of 59,098 total)