Viewing 15 posts - 43,366 through 43,380 (of 59,102 total)
Rich96 (6/17/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2009 at 10:23 am
I believe a function as a check constraint is going to slow down INSERTs quite a bit. Wouldn't it be better to setup a little DRI instead?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2009 at 8:57 am
To add to those comments.... I don't know how much performance is important for this task, but an old fashioned pre-aggregated CrossTab can be quite a bit faster than a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2009 at 8:53 am
Jason Coleman (6/17/2009)
Right... finally started thinking straight...
selectactivity_date,
to_char(activity_date,'IW')-to_char(sysdate,'IW') as Date_diff
from
dw.calendar
and then hey presto! :w00t:
Outstanding. Thanks for the feedback on this, Jason.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2009 at 8:48 am
Jeff Moden (6/17/2009)
Carl Federl (6/17/2009)
There is also this note:
If tempdb...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2009 at 8:47 am
Carl Federl (6/17/2009)
There is also this note:
If tempdb is in...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2009 at 8:35 am
Rich96 (6/17/2009)
-JeffUnfortunately I'm dealing with a 3rd party vendor that could not process the normalized table. In fact I've had to convert all my alphanumeric fields to ASCII..
Heh... been...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2009 at 8:32 am
By the way... the code windows still don't work well with IE. I know a lot of development folks use FF, but the other half uses IE.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 10:58 pm
SQLTeam, Wrox, and a couple of other forums have a "#" button in the menu like, say, the parenthesis you have for the quote code in the current menu. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 9:05 pm
southwynd (6/16/2009)
I figured it out. @@IDENTITY will not work. This is what I needed to do:SET @ID = IDENT_CURRENT('Table1 ')
No... IDENT_CURRENT can allow other people "in". Take...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 8:59 pm
andrewd.smith (6/16/2009)
You might wish to cast to a float or decimal value before calculating the average.
Nicely done, Mr. Smith. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 8:57 pm
MissyDaisy (6/16/2009)
I don't know how to get an ascii dump of a string from a particular column so I can't accurately say what characters they are.
Visually, it has spacing wider...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 8:56 pm
Steve Jones - Editor (6/16/2009)
Quick clicks, for example, I typically type the code in, highlight, and then click "code" from the left.
So, why not add a "#" to the menu...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 8:51 pm
You can simply read a single row from a guaranteed-to-be-present table and then catch the error if it fails. If it succeeds, then everything is working fine including the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 8:49 pm
Heh... thanks for the plug, Lutz. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
June 16, 2009 at 8:43 pm
Viewing 15 posts - 43,366 through 43,380 (of 59,102 total)