Re: Inserting into SQL via XML using OLEDB Consumer Templates ?
- From: Heiko <heiko_dev@xxxxxxxxxx>
- Date: Wed, 15 Jun 2005 09:38:32 +0200
Thanx Erland.
Will need to do some more reading then :)
Erland Sommarskog wrote:
Heiko (heiko_dev@xxxxxxxxxx) writes:
Has anyone got a sample or some links on how to insert data into SQL Server via XML ?
The topic on OPENXML in Books Online should take you a long way. Else have a look at http://www.sqlxml.org/.
Only saw samples to retrieve XML up to now.
- Ideally I would like to create the XML insert statements in memory, not reference an external xml command file.
- If we need to insert between 10 to 10000 rows of data into SQL Server table, what options are available to do this from Visual C++ ? (Currently we use OLE DB Consumer Templates implementation that calls a stored proc for each row insert. )
Is it correct to assume that inserting 3000 rows via XML would be faster (one call) than doing 3000 stored proc calls ?
Yes, that's a definite winner. We have several places in our app, where insert data from a grid page or similar. We used to that one by one, now a lot of that uses OPENXML for improved performance.
.
- References:
- Inserting into SQL via XML using OLEDB Consumer Templates ?
- From: Heiko
- Re: Inserting into SQL via XML using OLEDB Consumer Templates ?
- From: Erland Sommarskog
- Inserting into SQL via XML using OLEDB Consumer Templates ?
- Prev by Date: Access Oracle 10g using Oracle OLE DB provider
- Next by Date: Re: Thanks, but..
- Previous by thread: Re: Inserting into SQL via XML using OLEDB Consumer Templates ?
- Next by thread: Linked Server and Views
- Index(es):
Relevant Pages
|