Viewing 15 posts - 48,901 through 48,915 (of 59,093 total)
Good idea, but be careful... the Tally table is not a panacea. For example, there is code that will beat the pants off the Tally table for finding missing...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 11:58 pm
Tomm Carr (8/6/2008)
Jeff Moden (8/6/2008)
Heh... provided that an inter rate, tax rate, discount rate, or any other rate is never used.
None of which are Money. All those rates will be...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 11:55 pm
Thank you for the feedback... glad you solved it. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 11:49 pm
Heh... reminds me of the ol' hand assembly days... "Shift Left, Load Zeros". 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 7:12 pm
john.arnott (8/6/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 7:09 pm
Heh... provided that an inter rate, tax rate, discount rate, or any other rate is never used.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 6:25 pm
drari (8/6/2008)
I know that there are actually5 data rows + 1 header and 1 footer thus 7 rows
But what I say is that I'm...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 6:16 pm
Boy, isn't THAT the truth! That's why I always try to come up with test data and code... I figure if I can't prove it with code, I can't...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 6:10 pm
Heh... never mind... OP says the PK is actually 3 columns... really makes all of this a moot point. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 6:02 pm
TheSQLGuru (8/6/2008)
Jeff Moden (8/6/2008)
No problem... PK can be nonclustered.
Yep. And then we have this situation:
Clustered index: order_id (assume int - 4 bytes), order_date (assume datetime - 8 bytes),...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 5:59 pm
Idea for article on forum etiquette... ummm... wait a minute... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:38 am
toprprasad (8/6/2008)
I need a script which can generate insert statements for all the records in a table.
for eg: if a table abc has 2 records, then on executing this...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:34 am
No problem... PK can be nonclustered.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:33 am
drari (8/6/2008)
he gives a totalrows = 7
Maybe there is a way to...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:30 am
Yep... And I looked at that file... it's just like I said... the header record and the trailer record both have a different number of columns than the body of...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 7:38 am
Viewing 15 posts - 48,901 through 48,915 (of 59,093 total)