Search code examples
ado.netsybasebulkinsert

Bulk insert in SYBASE using .NET


How can I do bulk data insert in Array in SYBASE table using in .NET. I don't want to use BCP utilities.


Solution

  • It's a bit untidy You have to use sp_dboption to turn it on then you can use Select Into to get the data in the you turn the option back off again. It's also recomended that your drop all triggers indexes etc before and put them back after for any 'erm lengthy operation...

    How are you connected up, you might have a bit of fun if you are on ODBC, as it tends to blow up on proprietry stuff, unless you put pass thru on.

    Found this, fater remembering similar troubles way back when with delphi and sybase

    Sybase Manual