dbTalk Databases Forums  

dts and c#

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss dts and c# in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
myo zaw
 
Posts: n/a

Default dts and c# - 10-25-2005 , 06:14 AM






hi,
i have a back up text file(csv). it has an action character
(Update/Delete/Insert) at the first of the line. so far, i read the text
file from my c# code and populate to the table. but, i feel it's a bit slow.
can i change this process to dts. but, i'm afraid that there's an action
character which isn't a database field.
if there's some solution for that, please help me.

regards,
ingwanjawa



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: dts and c# - 10-25-2005 , 01:29 PM






Hello myo,

You can use the Data Driven Query task to do this but this may be slow also.

i would be tempted to BULK INSERT the file into a staging table and then
call a series of TSQL statements based on what the action should be. This
way you can update all of each type of action in 1 batch.

allan



Quote:
hi,
i have a back up text file(csv). it has an action character
(Update/Delete/Insert) at the first of the line. so far, i read the
text
file from my c# code and populate to the table. but, i feel it's a bit
slow.
can i change this process to dts. but, i'm afraid that there's an
action
character which isn't a database field.
if there's some solution for that, please help me.
regards,
ingwanjawa



Reply With Quote
  #3  
Old   
Myo Zaw
 
Posts: n/a

Default Re: dts and c# - 10-25-2005 , 09:14 PM



thanks allan,
i'll try with bulk insert.

myo

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Hello myo,

You can use the Data Driven Query task to do this but this may be slow
also.

i would be tempted to BULK INSERT the file into a staging table and then
call a series of TSQL statements based on what the action should be. This
way you can update all of each type of action in 1 batch.

allan



hi,
i have a back up text file(csv). it has an action character
(Update/Delete/Insert) at the first of the line. so far, i read the
text
file from my c# code and populate to the table. but, i feel it's a bit
slow.
can i change this process to dts. but, i'm afraid that there's an
action
character which isn't a database field.
if there's some solution for that, please help me.
regards,
ingwanjawa





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.