不清楚是什么东东,没玩过,呵呵。。帮你友情UP一下!*^_^*

解决方案 »

  1.   

    你把它作为一个SQL命令运行试试
    SqlCommand insert_cmd=SqlCommand("
    BULK INSERT [ [ 'database_name'.] [ 'owner' ].] { 'table_name' FROM 'data_file' } 
        [ WITH 
            ( 
                [ BATCHSIZE [ = batch_size ] ] 
                [ [ , ] CHECK_CONSTRAINTS ] 
                [ [ , ] CODEPAGE [ = 'ACP' | 'OEM' | 'RAW' | 'code_page' ] ] 
                [ [ , ] DATAFILETYPE [ = 
                    { 'char' | 'native'| 'widechar' | 'widenative' } ] ] 
                [ [ , ] FIELDTERMINATOR [ = 'field_terminator' ] ] 
                [ [ , ] FIRSTROW [ = first_row ] ] 
                [ [ , ] FIRE_TRIGGERS ] 
                [ [ , ] FORMATFILE = 'format_file_path' ] 
                [ [ , ] KEEPIDENTITY ] 
                [ [ , ] KEEPNULLS ] 
                [ [ , ] KILOBYTES_PER_BATCH [ = kilobytes_per_batch ] ] 
                [ [ , ] LASTROW [ = last_row ] ] 
                [ [ , ] MAXERRORS [ = max_errors ] ] 
                [ [ , ] ORDER ( { column [ ASC | DESC ] } [ ,...n ] ) ] 
                [ [ , ] ROWS_PER_BATCH [ = rows_per_batch ] ] 
                [ [ , ] ROWTERMINATOR [ = 'row_terminator' ] ] 
                [ [ , ] TABLOCK ] 
            ) 
        ] ",conn)
    conn.open();
    insert_cmd.ExecuteNoQuery();
    conn.Close();