Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Parsing Text in Spreadsheet

$
0
0

Hello!

I have been working on a new "challange" for several days and am not sure of the best approach using SSIS and was wondering if I could get high level input and suggestions for implementation, which I can do.

What I have is a spreadsheet as shown below; there are many repeating rows all which have the following structure. I have to do the following:

1) I need to parse out the County (Clinton in this example) which is in column A.

2) I must link this County to the CaseID which is 2 rows greater than the County,which is 161-2307123 in this example, and then so on and so forth for all the counties in the spreasheet.

First, I am not sure how to do the parsing of this A cell to get just the County (CLINTON) which I want to store in some staging or work table in SSIS.

Second, once I read the County I need to jump down 2 rows and read the A column to get the CASEID (161-230713) and store it in the same row in a Table in a Sql Server DB, and then I have to jump down to the next Row that has a County (the number of rows ) and start again at (1) above. Any ideas would be greatly apprecaited. It seems that an ADO recordset would let me move down the records and insert the County and associated CaseID into a work table. However I have never worked with ADO recordsets in Scripting. But I'm not sure that is the best way to go....

Thanks for all of your suggestions and Help! This one is tough (to me anway LOL).

Mike

        IACLINT500 CLINTON COUNTY TREASURER                  
            RE - Real Estate/Property                  
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 604.00 01/2010 01/01/2003 06/30/2003 04/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 604.00 01/2010 07/01/2003 12/31/2003 10/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 "1,300.70" 01/2010 07/01/2003 12/31/2003 10/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 "1,300.70" 01/2010 01/01/2003 06/30/2003 04/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 604.00 02/2010 01/01/2003 06/30/2003 04/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 604.00 02/2010 07/01/2003 12/31/2003 10/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 619.00 02/2010 01/01/2003 06/30/2003 04/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-230713 761 14TH AVENUE S CLINTON IA 52732-0000 8 11/09/2012 09/30/2010 8005540000 619.00 02/2010 07/01/2003 12/31/2003 10/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
        IAMARSH500 MARSHALL COUNTY TREASURER                  
            RE - Real Estate/Property                  
161-196332 10 N 11TH ST MARSHALLTOWN IA 50158-0000 8 11/06/2012 07/17/2012 07-27-458-006 504.00 01/2012 01/01/2003 06/30/2003 04/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-196332 10 N 11TH ST MARSHALLTOWN IA 50158-0000 8 11/06/2012 07/17/2012 07-27-458-006 504.00 01/2012 07/01/2003 12/31/2003 10/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-196332 10 N 11TH ST MARSHALLTOWN IA 50158-0000 8 11/06/2012 07/17/2012 07-27-458-006 504.00 02/2012 01/01/2003 06/30/2003 04/01/2003 n/a FRSTPR9288 FIRST PRESTON MANAGEMENT INC BSTSST9432 BEST ASSETS INC
161-196332 10 N 11TH ST MARSHALLTOWN IA 50158-0000 8


Mike Kiser


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>