Viewing 15 posts - 48,106 through 48,120 (of 59,102 total)
Heh... yep... I understand all of that. But the obvious intention of generating the dynamic SQL is to make it possible to protect the user from accidental overwrites when...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 7:46 pm
If you want one that's ready made and pretty handy, lookup DBCC SHOWCONTIG and take a look at "Example E"... It even has a place to set a "Max Frag"...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 7:43 pm
Because they clear cache... not just for the proc running, but for everybody. Depending on what's being done, cache is very important for performance by repetative and other code.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 7:27 pm
... and, yes... that "feeling" goes towards delete triggers, as well.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 7:14 pm
ZIP is obviously a reference table. Someday, you may want to delete a ZIP with no impact on other tables. Cascading deletes is a pretty bad idea to...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 7:12 pm
The basic table naming convention I try to follow is... what does one row contain? Does it contain a Customer or Customers (answer should be obvious, there)? Same...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 7:03 pm
Hmmm... alright, Neela... thanks. I've got this. I'm on my way to work... I'll bang it out tonight.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 5:51 am
Barry and Cath, that did the trick. Setting "Include IF NOT EXISTS clause" to false, got rid of all the dynamic SQL.
Matt, yeah, I'd already tried ALTER and that,...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2008 at 5:18 am
Ok... let's do this... here's the original data... mark each zero row with the rownum from where it's supposed to get it's data. If you leave any at zero,...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2008 at 11:12 pm
There's air?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2008 at 11:05 pm
Hey MATT! Congrats on becoming a proud member of the over 5k crowd!
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2008 at 6:46 pm
I think this might do it...
SELECT hi.Date,
hi.Area,
CASE WHEN hi.Amount = 0 THEN ISNULL(lo.Amount,0)...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2008 at 6:40 pm
Dang... thanks, Chirag... I keep forgeting this is a 2k5 forum. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2008 at 6:19 pm
Yeah, but what does the OP want to do with it? 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2008 at 6:16 pm
Holy Moly, Mike... I thought I had it bad and the current job...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2008 at 6:05 pm
Viewing 15 posts - 48,106 through 48,120 (of 59,102 total)