Re: Fast load options in OpenRowset
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 21:17:31 +0000 (UTC)
mweeks (mweeks@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
> Thanks for the speedy reply. No I wasn't; I thought that I wouldn't
> need to since I'm setting vValue.vt and vValue.bstrVal - wouldn't
> VariantInit just set the variant to VT_EMPTY which I am then replacing?
I may recall wrong, but I believe that I have made the same assumption -
and errors occurred?
> I'm sorry, I'm very green at this. I just added VariantInit (
> &RFLProperties[0].vValue ) to the code but I'm still getting
> DB_E_ERRORSOCCURRED.
Did you set the data source property SSPROP_ENABLEFASTLOAD?
I recommend studying the SQL Server Books Online. The specifics for
SQLOLEDB are covered there, including the bulk-copy stuff.
Also, download the samples from
http://www.microsoft.com/downloads/details.aspx?FamilyID=7824ba50-3e29-45cf-8c02-5597c014a707&DisplayLang=en
I believe there is a bulk-copy sample there.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Re: Fast load options in OpenRowset
- From: Erland Sommarskog
- Re: Fast load options in OpenRowset
- Prev by Date: Re: How can I execute a SQL-like query against an XML file?
- Previous by thread: Re: Fast load options in OpenRowset
- Next by thread: No answer from a Web server
- Index(es):
Relevant Pages
|
Loading