You are here: Re: large inserts « MsSQL Server « IT news, forums, messages
Re: large inserts

Posted by Erland Sommarskog on 07/05/07 22:32

Emin (emin.shopper@gmail.com) writes:
> Doesn't the client need something like SQL Management studio installed
> to use DTS or SSIS? Ideally, I'd like something where the client can
> just connect to the database using odbc or ado and do the insert as
> opposed to requiring the client to have special software installed.

You can use the BCP API from ODBC, although it may be a bigger programming
effort that you would like. Using command-line BCP is a lot simpler, but
then you need to make sure that it is on the client.

Another alternative is to build an XML document and pass that to a stored
procedure where unpack it. For 20000 rows, I would find this palatable.
Had you had two million rows, BCP would definitely have been the way to
go.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация