Viewing 15 posts - 29,911 through 29,925 (of 59,101 total)
You can make your life a bit easier if you can do this using sp_ExecuteSQL. It was built for this kind of stuff.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 5:34 pm
Elizabeth.Block (5/18/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 5:31 pm
rjs123431 (5/17/2012)
We use sql server 2005 and 2008. I need to trace INSERTED,DELETED and UPDATED records in some tables in this manner.
- LogID (auto increment)
- TableName
-...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 5:21 pm
And someone please post one of the XML triggers. One of you 3 folks recommending this should have one right at your fingertips, yes? I'd like to see...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 5:17 pm
CELKO (5/18/2012)
Everything is completely wrong.
No it's not. It's an EAV table and they do happen for some good reasons sometimes. The fact that the PK is missing...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 4:54 pm
CELKO (5/18/2012)
There is no such crap as a “type_id”;
You really need to take a course on indexes in the Rushmore engine if you still think that, Joe.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 4:47 pm
Lowell (5/18/2012)
Thsi requires xp_cmdshell to get the list...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 3:22 pm
MysteryJimbo (5/18/2012)
Lowell (5/18/2012)
MysteryJimbo (5/18/2012)
*cringe*
Sorry. I've seen xp_cmdshell and similar methods like that before. Oooo and a cursor. 🙂
the knee-jerk reactions to cursors and xp_cmdshell have their place,...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 3:19 pm
slunt01 (5/18/2012)
Steve Jones - SSC Editor (5/18/2012)
You can run BCP without a format file and it will help you create one, guessing at the columns.
I dont know what BCP is....
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 10:37 am
If the file is a delimited file and is in good and reasonable shape, neither BCP or Bulk Insert need a format file.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 9:45 am
mtassin (5/18/2012)
With my larger DW tables (250 Million rows) that seems to give better performance than the merge...
A race would be interesting.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 9:43 am
ByronOne (5/18/2012)
Cheers JeffThat's really useful to know and makes my life a little easier!
You bet and thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 9:41 am
It depends on what the backlog for Steve is. Typically, it's been taking 3-4 weeks to be accepted, betwee, 4 and 6 weeks to be scheduled, and between 4...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 9:40 am
Haven't tried it in a very long time but, if memory serves, you can use a dynamic DBCC CHECKIDENT to reseed a temp table. Changing the increment will be...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 8:04 am
The problem very likely has nothing to do with the number of rows being compared. It's probably the number of rows being updated.
I don't have a definitive test to...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 7:53 am
Viewing 15 posts - 29,911 through 29,925 (of 59,101 total)