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 9276997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:59:25+00:00 2026-06-18T16:59:25+00:00

I have the following SELECT statement in my SSIS 2008 OLE DB source: SELECT

  • 0

I have the following SELECT statement in my SSIS 2008 OLE DB source:

SELECT      dbo.Inventory.VendorFullSKU AS SKU
        ,   Product.Name AS 'Title'
        ,   dbo.ProductVariant.Price
        ,   dbo.ProductVariant.SalePrice
        ,   dbo.Inventory.Color AS Meta1
        ,   dbo.Inventory.[Size] AS Meta2
FROM        dbo.Inventory 
INNER JOIN  dbo.ProductVariant 
ON          dbo.Inventory.VariantID = ProductVariant.VariantID 
INNER JOIN  dbo.Product ON ProductVariant.ProductID = Product.ProductID
WHERE       (dbo.Inventory.VendorFullSKU <> N'')
ORDER BY    SKU

After running the package, my resulting flat file is not sequenced in the order I expect it to. There are no transformations being done to the data.

The flat file contains the columns in the below mentioned order.

Price, Title .. followed by other fields

However, I want the columns to be in this order within the flat file as defined in the query.

SKU, Title, Price, SalesPrice, Meta1, Meta2

How do I ensure that the fields in the flat file are sequenced the same as my select statement above?

  • 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-06-18T16:59:26+00:00Added an answer on June 18, 2026 at 4:59 pm

    You have to redefine the column order on Flat File Connection Manager Editor.

    Assuming that your flat file connection manager is defined as FILE_Items at the bottom of the package on the Connection Managers tab.

    Connection Managers

    Double-click the connection manager FILE_Items to open Flat File Connection Manager Editor. Click Advanced tab page.

    To generate the files as per the query, the columns should be defined in the order shown below. If the columns are not in this order, then the generated flat file will not match your requirements.

    You cannot rearrange the order of the columns because there are no options like move up or move down but you can Add /Delete them to modify the order according to your preference using the buttons New and Delete displayed below.

    New button also has options like Insert Before and Insert After.

    Caution:

    Make sure that you also set the correct data types and other properties appropriately when rearranging the columns.

    Flat File Connection Manager Editor - Advanced

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

Sidebar

Related Questions

I have the following SQL statement: SELECT ID, NAME FROM myTable WHERE ID LIKE
Imagine I have the following SELECT statement in a view (SQL Server 2008): SELECT
I have the following statement SELECT disease.id, disease.name, disease_synonym.name FROM disease JOIN disease_synonym where
I have the following select statement: $res = mysql_query(select * from Table where Name='{$_REQUEST['name']}');
I have the following statement: SELECT title, price FROM table WHERE id=? Should I
I have the following statement: SELECT movieID, actorID, title, lastName, firstName, gender FROM Actor,
I have the following SQL statement SELECT [Motor] ,[Time] FROM [logger].[dbo].[motor] WHERE day([Time]) =
I have the following select statement: `Dim rsGetInvoiceContact Dim rsGetInvoiceContact_numRows Set rsGetInvoiceContact = Server.CreateObject(ADODB.Recordset)
I have the following simple select statement : select 'hello' || '|' || 'world'
I have the following SQL statement: Select Choose(1,Orders.Employee, Orders.Customer) as Name1, Choose(2,Orders.Employee, Orders.Customer) as

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.