Re: Saving a (whole) datatable in SQL Server 2000

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



ADO.NET can do it using the SqlBulkCopy class.

--
____________________________________
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)
-----------------------------------------------------------------------------------------------------------------------

"W.G. Ryan [eMVP]" <WGRyaneMVP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:B8B13CFE-E03D-45F7-88F1-9807301FDF0A@xxxxxxxxxxxxxxxx
Pipo:

There are many ways to do this, do you want to use ADO.NET (which would be
quite slow and inefficient) or are you open to other technologies? You can
do a backup and restore for one thing, or you could write an SSIS package
(DTS if you only have 2000), or use BCP.

Can you tell me a little more about your goals and perhaps I can be of more
help?

Thanks,

Bill

"Pipo" wrote:

Hi,

I would like to save (and load) an entire datatable into SQL Server 2000.
Is this possible and has someone has some sample (code) for me?

tia,

Pipo


.



Relevant Pages

  • Re: retrieving just one row based on the primary key
    ... Please reply only to the newsgroup so that others can benefit. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Replication on 2 SQLCE
    ... Please reply only to the newsgroup so that others can benefit. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ...
    (microsoft.public.sqlserver.ce)
  • Re: What are OleDbParameter names with Original_ prefix?
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Since the table has a primary key column, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: is it possible to mark my CLR function as UNSAFE in code or visual studio anywhere so that wehn
    ... Please reply only to the newsgroup so that others can benefit. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO.NET Transaction
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Client transactions put too much schema-dependent, ...
    (microsoft.public.dotnet.framework.adonet)