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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:08:54+00:00 2026-05-12T06:08:54+00:00

I have to work in a DTS environment in 2005 (too complicated to explain)

  • 0

I have to work in a DTS environment in 2005 (too complicated to explain) and I have a comma delimited text file that is to be appended to the main table. I’d like to pull the last column in the text file out for the first record and use it as select criteria for a delete command. But how can I do this in the older DTS environment?

Here’s the line of foobar data

9,36,7890432174,2007-12-17 00:00:00.000,21,15.22,99,11,49,28,2009-07-12 00:00:00

what I want to do is create a sql statement that will delete all the records where a certain column is equal to “2009-07-12 00:00:00”

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-12T06:08:55+00:00Added an answer on May 12, 2026 at 6:08 am

    There are at least two ways to implement this in DTS.

    The first is to

    1. load the text file into a staging table
    2. select the date value from the temporary table and assign it to a package variable
    3. carry out the delete using the package variable as an input parameter
    4. insert from the staging table into the main table
    5. clear down the staging table

    This assumes that there is some way to identify the order of the rows in the text file from the data. If not, you could add an identity column to the staging table definition.

    The second is to

    1. extract the value from the input file using a script task and assign it to a package variable
    2. carry out the delete using the package variable as an input parameter
    3. insert from the text file into the main table

    EDIT

    I believe it’s also possible to use the generic text file ODBC driver to access the text file like a database table.

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

Sidebar

Related Questions

I have work that needs to be done in this order: In main activity:
I have to work on some code that's using generic lists to store a
I have to work with an API that uses a lot of by-reference parameters.
I have to work with a queryset, that is already filtered, eg. qs =
Sometimes I have to work on code that moves the computer clock forward. In
I have begun work on a personal project that may end up having some
I have started work on a local app for myself that runs through the
I have a work machine that I can access by sshing twice, once to
I have got an API that I have to work with. The API is
I have built an application that generates a large XML file using Linq-to-Entities 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.