Viewing 15 posts - 48,976 through 48,990 (of 59,093 total)
Jeffrey Williams (8/3/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 4:34 pm
Sorry, was in a hurry. I should have posted them (more than 1) without even being asked.
There are a couple of ways to do it... the method with the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 10:23 am
koosubscriptions (8/3/2008)
Is there any performance cost compare with if the query already exists?Thank you.
Probably not... it would probably recompile even if it were hard coded just because of data changes...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 10:00 am
That will work just fine, but only if a single row is inserted at a time. If there's a chance that more than 1 row can be inserted at...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 9:54 am
For what? The original code you posted?
If so, why not just insert the header information in a set based manner and then use that information to control another set...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 9:41 am
Good point, Carl. Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 9:28 am
Barry... you might want to look for the word "Cursor" in the above script... 😀 Heh, late nite posts get me, too! 😉
Other than that, nice conversion! 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 9:17 am
vkres1 (8/2/2008)
Jeff,rbarryyoung is telling it is eaier with identity column. Do you know how to figure out with
identity column?looks like clustered index is not guaranteed as you said. any idea
Thx
rbarryyoung...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2008 at 9:12 am
rbarryyoung (8/2/2008)
Jeff Moden (8/2/2008)
The DBA was nothing but a BSOFH.;)Uuuhh, ... "Big Stupid Old Fart-Head"?
Heh... Ummm... no... what's your user name again? 😉
http://members.iinet.net.au/~bofh/bofh/bofh2.html
http://members.iinet.net.au/~bofh/
The "SO" stands for "SysOP"... you can figure...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 11:05 pm
vkres1,
Forget about the identity column... if you want to store the data in the correct physical order, then put a clustered index on the column(s) that you want the data...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 10:46 pm
rbarryyoung (8/2/2008)
Of course, the order problem can be easily remedied if you just add an Identity column. 🙂
I don't think it will, especially if parallelism kicks in. If...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 10:31 pm
Try your code, Barry. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 7:56 pm
Ummm... you're missing the point a bit. The order in which something is inserted doesn't really matter in an RDBMS. Why do you think you need a "natural...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 2:54 pm
That's why I put "new" in parentheses... haven't need MERGE in SQL Server 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 2:47 pm
The loop idea isn't actually a bad one (I refer to it as a "DELETE CRAWLER"), but deletes, by themselves, run pretty quickly depending on the criteria. I'd limit...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 11:26 am
Viewing 15 posts - 48,976 through 48,990 (of 59,093 total)