Re: What is fastest way to insert many records into a SQL server database?
From: Danny Smith (dansmithyNO_SPAM_at_hotmail.com)
Date: 04/21/04
- Next message: Bob Powell [MVP]: "Re: Transparent color bmp"
- Previous message: Barney Nicholls: "Re: Change datagrid column background color"
- In reply to: Clint Hill: "Re: What is fastest way to insert many records into a SQL server database?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 09:55:31 +0100
Thanks Clint.
To use OPENXML do I have to output an XML file to be imported by SQL Server
(in much the same way as the BULK INSERT method) or is there a way to create
the XML file in memory and send the stream directly?
Danny
"Clint Hill" <clint_hill@msn.com> wrote in message
news:B3359562-A4D7-4D30-8200-BFBC39E92B5E@microsoft.com...
> OPENXML is your best bet. Just as fast as BCP in all of my experiences.
Better yet, you can conditionalize your inserts and updates.
- Next message: Bob Powell [MVP]: "Re: Transparent color bmp"
- Previous message: Barney Nicholls: "Re: Change datagrid column background color"
- In reply to: Clint Hill: "Re: What is fastest way to insert many records into a SQL server database?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|