Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Flat file to query help needed

Flat file to query help needed

Flat file to query help needed

I'm new to ssis and need some help. I have a csv file I need to use as a parameter to get some information and then update it.

Here's how it looks in crystal reports...

SELECT "Order_Master"."ORDNUM_10", "Order_Master"."TYPE_10", "Order_Master"."STATUS_10", "Order_Master"."CUSORD_10"
FROM "GNC5"."dbo"."Order_Master" "Order_Master"
WHERE "Order_Master"."STATUS_10"<'4' AND "Order_Master"."TYPE_10"='MS'
ORDER BY "Order_Master"."CUSORD_10"

SELECT `Sheet1_`.`startON`, `Sheet1_`.`endOR`
FROM `Sheet1$` `Sheet1_`

It combines both queries and gives me the output and I strap on a query

update GNC5.dbo.Order_Master set STATUS_10 = '4' where

OR ORDNUM_10 = ' '

I'm trying to get ssis to do all the above steps to streamline the process

I read the flat file in and I can can run the query, but I can get them to do it together. I think once I can get past that part the rest would fall in line.


RE: Flat file to query help needed

A bit late here, but you should be able to create a SQL task in your SSIS package that performs the update statement after you read in the flat file.

With business clients like mine, you'd be better off herding cats.

RE: Flat file to query help needed

What part of the module would allow me to do that?

RE: Flat file to query help needed

Are you working with Business Intelligence Development Studio (BIDS) or SQL Server Data Tools (SSDT)? If you're simply using an import wizard you can't design a full-blown package.

In the Designers, you can add tasks to the package that can do any number of things: run scripts, execute SQL statements, etc. etc.

With business clients like mine, you'd be better off herding cats.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close