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

  • SEARCH
  • Home
  • 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 6345121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:45:42+00:00 2026-05-24T20:45:42+00:00

I am using SSIS (VS 2008) and I want to take a populated resultset

  • 0

I am using SSIS (VS 2008) and I want to take a populated resultset variable (populated from an EXECUTE SQL task) and convert within an SSIS Script Component (c#) it into an array.

The resultset contains a single column.

What would be the code to do this?

Edit: This is for a backfilling exercise; in normal circumstances, a web app calls a proc on the db that passes in a text string and gets a list of matching words based on this kind of query:

SELECT  [Term] 
    FROM    [dbo].[ATableOFTerms] WITH ( NOLOCK )    
    WHERE   CHARINDEX(' ' + Term + ' ', @StringBeingSearched) > 0 

Once the web app gets this list, it has a lot of business rules around what it converts it to but essentially it takes the list of matching terms and generates a single string that is then used for passing into a fulltext search.

The backfilling process in SSIS needs to mimic that so the script component has the same web app code that deals with the business logic but I needed c# code that does the above. Which is fine, I am returning all the [ATableTerms] into a resultset variable but now I need populate an array from the variable.

When I have this I can use string.Contains to achieve the same result.

  • 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-24T20:45:42+00:00Added an answer on May 24, 2026 at 8:45 pm

    IndexOf(term, StringComparison.OrdinalIgnoreCase) >= 0This is how it was solved, although I’d love to get an alternative to this.

    OleDbDataAdapter adapter = new OleDbDataAdapter();
    
    string Title = " " + Row.Title + " ";           
    DataTable dt = new DataTable();
    adapter.Fill(dt , Variables.ATableOfTerms);
    
    
    ArrayList terms = new ArrayList();
    ArrayList returnedTerms = new ArrayList();
    
    foreach (DataRow dr in dt.Rows)
    {
        terms.Add(" " + dr["Term"] + " ");
    
    }
    
    
    foreach (string term in terms)
    {
        if (Title.IndexOf(term, StringComparison.OrdinalIgnoreCase) >= 0)
        {
            returnedTerms.Add(term.Trim());
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Execute SQL task (SQL 2008) where I'm using two SSIS variables
I am using Execute Process task in SSIS 2008 R2. I have a variable
I am using SQL Server SSIS 2008 R2. I want to dynamically change a
I am using SSIS (SQL Server 2008) to lookup values from a table. I
How is it possible to execute a SSIS 2008 Package by using SQL in
I'm using SSIS to import data from Excel sheets into SQL Server 2005, the
I am using SSIS 2008 to execute multiple stored procedures in parallel in control
In SSIS 2008 I have a Script Task that checks if a table exists
Hi Im using SSIS for SQL server 2008. I have a sql query: select
I'm creating a data mart in SQL Server 2008 using SSIS for load, and

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.