Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 478677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:42:56+00:00 2026-05-13T00:42:56+00:00

I have a requirement to flatten a resultset in an SSIS package – this

  • 0

I have a requirement to “flatten” a resultset in an SSIS package – this is, take a result set consisting of a number of rows and produce a single string with the concatenated values.

The result set is returned to me via a stored procedure that for a number of reasons I cannot change. I do not want to duplicate the logic into another stored procedure, so the limitation is that I need to start off with the results of the stored procedure and work from there.

I am currently using an “Execute SQL Task” with an ADO.NET connection to run the stored procedure, and am returning the results into an SSIS variable of type Object.

My current thought (from googling, etc) is then to use an “Execute Script Task”, using something like:

    Dim flattened As New StringBuilder()
    Dim adapter As New OleDbDataAdapter
    Dim dt As New DataTable
    Dim row As DataRow

    adapter.Fill(dt, Dts.Variables("DataSet").Value)

    For Each row In dt.Rows
        flattened.Append(row("Column").ToString)
        flattened.Append(DELIMETER)
    Next

    Return flattened.ToString

The above example currently returns me the error: “Object is not an ADODB.RecordSet or an ADODB.Record.” I have tried quite a few different variations of the above to try and resolve this issue but have reached the point where my frustrations at debugging in the environment have hit the wall.

Any thoughts would be much appreciated!
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:42:57+00:00Added an answer on May 13, 2026 at 12:42 am

    Not sure if this is the best way, but something that I have found that works is:

    Dim dt As DataTable = CType(Dts.Variables("DataSet").Value, DataSet).Tables(0)
    

    And then just looping dt in my loop.

    If anyone knows a better way please still answer and I will credit you the answer. If not then will leave this answer for future people with the same problem.

    Thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this requirement. I need to design a table with 3 rows (each
I have requirement like this: On one server(linux) I need to run 2 instances
I have requirement like this, Have One NSIMageView and which will be changing frequently
I have this requirement of fetching facebook user information like friends count and other
I have requirement like i will dynamically get a set of divs having random
I have requirement where I have input Html like this - <col name=col1>Text1</col> <col
I am using UITextView In my View , I have requirement to count number
I have requirement of specifying web part connections in onet.xml. So when site is
I have requirement like, suppose I have a 'property' table which has 'ListingKey' field
I have requirement as following like showing ABPeoplePickerNavigationController in tabbar based application. I researched

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.