So, with the ADO.NET 2.0 SqlBulkCopy method you can take an existing array,
DataTable or DataReader and export directly to SQL Server. This technique
can move many hundreds of thousands or rows in no time. Even if you can't
file. The BCP command-line utility can read this and import the data.
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
-----------------------------------------------------------------------------------------------------------------------
"CharlesC" <Charles@bscinforma.com> wrote in message
news:OxxlBv8%23HHA.3400@TK2MSFTNGP03.phx.gbl...
> But that is not what I was doing, the data had already been imported.
> Thanks.
>
> "William Vaughn" <billvaNoSPAM@betav.com> wrote in message
> news:ON0ma16%23HHA.4460@TK2MSFTNGP02.phx.gbl...
>> Ah, using a Recordset or any ADO classic method to add bulk rows to a SQL
>> Server table will result in terrible performance. The correct approach
> when
>> importing data is to use SSIS, DTS, Bulk Copy or the TSQL bulk copy
> methods.
>>
>> --
>> ____________________________________
>> William (Bill) Vaughn
>> Author, Mentor, Consultant, Dad, Grandpa
>> Microsoft MVP
>> INETA Speaker
>>
www.betav.com >>
www.betav.com/blog/billva >> Please reply only to the newsgroup so that others can benefit.
>> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>> __________________________________
>> Visit
www.hitchhikerguides.net to get more information on my latest book:
>> Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
>> and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
>> --------------------------------------------------------------------------
> ---------------------------------------------
>>
>> "CharlesC" <Charles@bscinforma.com> wrote in message
>> news:eEfQXO4%23HHA.5948@TK2MSFTNGP04.phx.gbl...
>> > Differences between odbc dbase and sql required adjustments to table
>> > design
>> > and filters.
>> > Thanks anyway.
>> >
>> > "CharlesC" <Charles@bscinforma.com> wrote in message
>> > news:u$UMo7gyHHA.3772@TK2MSFTNGP06.phx.gbl...
>> >> Hello,
>> >>
>> >> I imported dbf files (dbase) into an msde database.
>> >>
>> >> I see the tables with the data in the msde database. The data is
>> > identical.
>> >>
>> >> The only change made to the code is in the DSN assignment in the
>> > Recordset's
>> >> GetDefaultConnect(),
>> >> return _T("ODBC;DSN=themsde").
>> >>
>> >> Both DSN's are ODBC, the original uses Microsoft dBase driver (dbf),
>> >> the msde is of course SQL Server.
>> >>
>> >> Using the SAME data and the SAME code I add a record (AddNew())
>> >> the Recordset.Open() takes about 4 or 5 times longer with the msde dsn
>> >> the Recordset.Update() takes about 10 times longer (eg. 10 seconds
>> >> with
>> > the
>> >> msde dsn, less than 1 with dbase odbc dsn)
>> >>
>> >> Are there changes that have to be made in the code or in the data?
>> >>
>> >> Thanks.
>> >>
>> >>
>> >
>> >
>>
>
>