Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. I have a problem in a SSIS solution !!!

I have a problem in a SSIS solution !!!

Scheduled Pinned Locked Moved Database
databasesql-serverquestionsysadminhelp
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    ma amer
    wrote on last edited by
    #1

    I have a problem in a SSIS solution that is i have many flat file data sources "Text Files" want to load them in a SQL SERVER Database as a
    destination, but flat files overridden every day with new data and i want only to take new data , so how can i take the new data ???

    P M 2 Replies Last reply
    0
    • M ma amer

      I have a problem in a SSIS solution that is i have many flat file data sources "Text Files" want to load them in a SQL SERVER Database as a
      destination, but flat files overridden every day with new data and i want only to take new data , so how can i take the new data ???

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      How do you determine which data is new? I would likely import the data to a table that is designed for that purpose and then execute a separate SQL statement to move only the new data to the actual destination. The import area would get cleared out before each import.

      M 1 Reply Last reply
      0
      • P PIEBALDconsult

        How do you determine which data is new? I would likely import the data to a table that is designed for that purpose and then execute a separate SQL statement to move only the new data to the actual destination. The import area would get cleared out before each import.

        M Offline
        M Offline
        ma amer
        wrote on last edited by
        #3

        The source data is a text files that contain the attendance data empID, datetime and etc and every day each text file come with the new and old attendance data, i am using SSIS solution

        P 1 Reply Last reply
        0
        • M ma amer

          I have a problem in a SSIS solution that is i have many flat file data sources "Text Files" want to load them in a SQL SERVER Database as a
          destination, but flat files overridden every day with new data and i want only to take new data , so how can i take the new data ???

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          The way we do this type of operation is to move the data into and archive folder and load from there. If a new file arrives in the hot folder it has not been loaded so move it and load from the archive folder. We also do NOT transform during the load, the target table exactly reflects the source table and all fields are varchar. We then use a stored procedure to do the transforms (launched by the SSIS package).

          Never underestimate the power of human stupidity RAH

          P 1 Reply Last reply
          0
          • M ma amer

            The source data is a text files that contain the attendance data empID, datetime and etc and every day each text file come with the new and old attendance data, i am using SSIS solution

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            Then it's easy.

            M 1 Reply Last reply
            0
            • M Mycroft Holmes

              The way we do this type of operation is to move the data into and archive folder and load from there. If a new file arrives in the hot folder it has not been loaded so move it and load from the archive folder. We also do NOT transform during the load, the target table exactly reflects the source table and all fields are varchar. We then use a stored procedure to do the transforms (launched by the SSIS package).

              Never underestimate the power of human stupidity RAH

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              Another point on which we agree. :thumbsup:

              1 Reply Last reply
              0
              • P PIEBALDconsult

                Then it's easy.

                M Offline
                M Offline
                ma amer
                wrote on last edited by
                #7

                how is it easy even though every day text files come with the new and old data???

                P 1 Reply Last reply
                0
                • M ma amer

                  how is it easy even though every day text files come with the new and old data???

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  See Mycroft's post. Clear out a temporary area, import all the data there, then copy only the new data to the final location.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups