dbTalk Databases Forums  

ssis update or delete

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss ssis update or delete in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM






On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #12  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM






On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #13  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM



On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #14  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM



On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #15  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM



On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #16  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM



On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #17  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM



On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #18  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM



On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


Reply With Quote
  #19  
Old   
drolaw
 
Posts: n/a

Default Re: ssis update or delete - 05-23-2008 , 06:59 PM



On May 16, 7:09*am, "lark" <l... (AT) buysurething (DOT) com> wrote:
Quote:
come on guys, i am desperado and need some help with this stuff. if you have
some reading for me, please point it out.

"lark" <l... (AT) buysurething (DOT) com> wrote in message

news:2a2Xj.143$mh5.136 (AT) nlpi067 (DOT) nbdc.sbc.com...



hello all,

i know ssis allows to insert from a csv file into sqlserver (2005) tables
but is it possible to either update and/or delete records with an ssis
package based on a csv file?

thanks for you help.- Hide quoted text -

- Show quoted text -
Yes, you should be able to.
1. Include a Lookup Transform in your data flow. Join the data from
the csv file to the db tables you are updating.
2. If you do not get a match, then insert the record using an oledb
destination.
3. If you do get a match then, update the row using an ole db
command.

If this is to update a dimension in a data warehouse, you could also
try using the slowly changing dimension transfrom (it will do
something very similar to the steps above.)


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.