![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Reply-To: "frostbb" <barry.b.frost (AT) remove (DOT) this.wrd.state.or.us From: "frostbb" <frostbb (AT) newsgroups (DOT) nospam Subject: SSIS - new challenge ...how build table from six input tables Date: Thu, 5 Jan 2006 16:45:34 -0800 Lines: 86 Organization: Oregon Water Resources Dept X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <uZJx#plEGHA.1384 (AT) TK2MSFTNGP11 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.dts NNTP-Posting-Host: 159.121.113.234 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.dts:62903 X-Tomcat-NG: microsoft.public.sqlserver.dts Ok, The good news, I've created 6 tables from a single input table source. Each record of the input source had a primary key that was included in the 6 destination tables as a "foreign key". Now I need to take the 6 tables and re-assemble them into the original table format to be used as an interim data warehouse. The bad news, 4 of the original destination tables have a "one to one" relationship with the original input table. i.e. One record was created in the 4 destination tables for each record in the original "input" table record. Unfortunately, the other 2 original destination tables had a "one to many" relationship with the original "input" table. i.e. one original input record could create "1 to n" destination table records (i.e. the bad news part). Being relatively new to SSIS I'm a little uncertain of what SSIS tools I could use to tackle this problem. (01) 1st and easier problem . I need a control that can handle 6 inputs and will allow me to select out all records from the six tables that have the same primary key. (02) 2nd not so easy problem . I need to assemble the data selected from the 6 input tables into a single output record. (02a) the wl_well_analysis input table (one of the 2 many to one input tables) could very well give me 6 records with "potable too little", "potable salty", "potable muddy", "potable odor", "potable colored" or "potable other" descriptions. These I need to translate into CHAR(1) value columns in the output table . i.e. potable_too_little char(1) Y/N potable_salty char(1) Y/N potable_muddy char(1) Y/N potable_odor char(1) Y/N potable_colored char(1) Y/N potable_other varchar(30) Y/N Interesting challenge . I expect that this may just be a little beyond SSIS's limits and that I might just have to limber up Visual Studio and C# to get this done in a timely manner. However, if I can do this in SSIS I'd really like to know. Thanks in advance! Barry in Oregon |
#3
| |||
| |||
|
|
Hello Frost, You could consider to use SQL command in to directly join the tables you want. Or you could try "lookup" items. Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- Reply-To: "frostbb" <barry.b.frost (AT) remove (DOT) this.wrd.state.or.us From: "frostbb" <frostbb (AT) newsgroups (DOT) nospam Subject: SSIS - new challenge ...how build table from six input tables Date: Thu, 5 Jan 2006 16:45:34 -0800 Lines: 86 Organization: Oregon Water Resources Dept X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <uZJx#plEGHA.1384 (AT) TK2MSFTNGP11 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.dts NNTP-Posting-Host: 159.121.113.234 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.dts:62903 X-Tomcat-NG: microsoft.public.sqlserver.dts Ok, The good news, I've created 6 tables from a single input table source. Each record of the input source had a primary key that was included in the 6 destination tables as a "foreign key". Now I need to take the 6 tables and re-assemble them into the original table format to be used as an interim data warehouse. The bad news, 4 of the original destination tables have a "one to one" relationship with the original input table. i.e. One record was created in the 4 destination tables for each record in the original "input" table record. Unfortunately, the other 2 original destination tables had a "one to many" relationship with the original "input" table. i.e. one original input record could create "1 to n" destination table records (i.e. the bad news part). Being relatively new to SSIS I'm a little uncertain of what SSIS tools I could use to tackle this problem. (01) 1st and easier problem . I need a control that can handle 6 inputs and will allow me to select out all records from the six tables that have the same primary key. (02) 2nd not so easy problem . I need to assemble the data selected from the 6 input tables into a single output record. (02a) the wl_well_analysis input table (one of the 2 many to one input tables) could very well give me 6 records with "potable too little", "potable salty", "potable muddy", "potable odor", "potable colored" or "potable other" descriptions. These I need to translate into CHAR(1) value columns in the output table . i.e. potable_too_little char(1) Y/N potable_salty char(1) Y/N potable_muddy char(1) Y/N potable_odor char(1) Y/N potable_colored char(1) Y/N potable_other varchar(30) Y/N Interesting challenge . I expect that this may just be a little beyond SSIS's limits and that I might just have to limber up Visual Studio and C# to get this done in a timely manner. However, if I can do this in SSIS I'd really like to know. Thanks in advance! Barry in Oregon |
#4
| |||
| |||
|
|
Hello Frost, You could consider to use SQL command in to directly join the tables you want. Or you could try "lookup" items. Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- Reply-To: "frostbb" <barry.b.frost (AT) remove (DOT) this.wrd.state.or.us From: "frostbb" <frostbb (AT) newsgroups (DOT) nospam Subject: SSIS - new challenge ...how build table from six input tables Date: Thu, 5 Jan 2006 16:45:34 -0800 Lines: 86 Organization: Oregon Water Resources Dept X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <uZJx#plEGHA.1384 (AT) TK2MSFTNGP11 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.dts NNTP-Posting-Host: 159.121.113.234 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP11.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.dts:62903 X-Tomcat-NG: microsoft.public.sqlserver.dts Ok, The good news, I've created 6 tables from a single input table source. Each record of the input source had a primary key that was included in the 6 destination tables as a "foreign key". Now I need to take the 6 tables and re-assemble them into the original table format to be used as an interim data warehouse. The bad news, 4 of the original destination tables have a "one to one" relationship with the original input table. i.e. One record was created in the 4 destination tables for each record in the original "input" table record. Unfortunately, the other 2 original destination tables had a "one to many" relationship with the original "input" table. i.e. one original input record could create "1 to n" destination table records (i.e. the bad news part). Being relatively new to SSIS I'm a little uncertain of what SSIS tools I could use to tackle this problem. (01) 1st and easier problem . I need a control that can handle 6 inputs and will allow me to select out all records from the six tables that have the same primary key. (02) 2nd not so easy problem . I need to assemble the data selected from the 6 input tables into a single output record. (02a) the wl_well_analysis input table (one of the 2 many to one input tables) could very well give me 6 records with "potable too little", "potable salty", "potable muddy", "potable odor", "potable colored" or "potable other" descriptions. These I need to translate into CHAR(1) value columns in the output table . i.e. potable_too_little char(1) Y/N potable_salty char(1) Y/N potable_muddy char(1) Y/N potable_odor char(1) Y/N potable_colored char(1) Y/N potable_other varchar(30) Y/N Interesting challenge . I expect that this may just be a little beyond SSIS's limits and that I might just have to limber up Visual Studio and C# to get this done in a timely manner. However, if I can do this in SSIS I'd really like to know. Thanks in advance! Barry in Oregon |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Hi Barry, Peter Yang is OOF and I am his backup. I am looking into this issue and will update you as soon as possible. Thank you for your patience and cooperation. Sincerely yours, Michael Cheng Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |