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. General Programming
  3. C#
  4. SSIS

SSIS

Scheduled Pinned Locked Moved C#
sql-serverhelpdatabasecsharpsysadmin
6 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.
  • I Offline
    I Offline
    Iain Wiseman
    wrote on last edited by
    #1

    Hi all, Hope this is in the correct forum. I have an issue with some work I am involved in. We have a flat file we are loading into an MSSQL database which is failing on the insert because the original flat file contains suspect data. Invalid dates or values etc. We are using SSIS to load this data. Can someone tell me if it is possible to exception these records easily. requirements are - to identify the number of records with the problem - to identify these records - to manage the issues which error I am a project manager and do not want the wool pulled over my eyes. I am familar with C# and SQL server but have only seen SSIS over a shoulder of a developer. I believe this would be a simple change and would be a matter of minutes to resolve. I am currently being led to believe it is hard. Thanks all

    J 1 Reply Last reply
    0
    • I Iain Wiseman

      Hi all, Hope this is in the correct forum. I have an issue with some work I am involved in. We have a flat file we are loading into an MSSQL database which is failing on the insert because the original flat file contains suspect data. Invalid dates or values etc. We are using SSIS to load this data. Can someone tell me if it is possible to exception these records easily. requirements are - to identify the number of records with the problem - to identify these records - to manage the issues which error I am a project manager and do not want the wool pulled over my eyes. I am familar with C# and SQL server but have only seen SSIS over a shoulder of a developer. I believe this would be a simple change and would be a matter of minutes to resolve. I am currently being led to believe it is hard. Thanks all

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Its not really the right forum, this is for question to do with C# coding. Happy to answer your question though.

      Iain Wiseman wrote:

      I believe this would be a simple change and would be a matter of minutes to resolve

      :confused: NOTHING takes minutes to resolve - you should know that as a PM. Development, testing, deployment, bugfixing - a time estimate should take all of this (and more) into account. Anything to do with SSIS is a royal PITA, nothing is quick and easy. My best suggestion for this problem is to bulk load your text file into an empty table, and do the data clensing thereafter. All this can be achived easily with SSIS, but certainly not in a matter of minutes.

      I 1 Reply Last reply
      0
      • J J4amieC

        Its not really the right forum, this is for question to do with C# coding. Happy to answer your question though.

        Iain Wiseman wrote:

        I believe this would be a simple change and would be a matter of minutes to resolve

        :confused: NOTHING takes minutes to resolve - you should know that as a PM. Development, testing, deployment, bugfixing - a time estimate should take all of this (and more) into account. Anything to do with SSIS is a royal PITA, nothing is quick and easy. My best suggestion for this problem is to bulk load your text file into an empty table, and do the data clensing thereafter. All this can be achived easily with SSIS, but certainly not in a matter of minutes.

        I Offline
        I Offline
        Iain Wiseman
        wrote on last edited by
        #3

        Hi, Thanks for replying. So you are saying that you cannot ignore errors easily in SSIS and count them. I C++ or java or C# this would be a try, carch cout which is a matter of minutes. I had hoped that microsoft would have made this easier. Iain

        J M 2 Replies Last reply
        0
        • I Iain Wiseman

          Hi, Thanks for replying. So you are saying that you cannot ignore errors easily in SSIS and count them. I C++ or java or C# this would be a try, carch cout which is a matter of minutes. I had hoped that microsoft would have made this easier. Iain

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          Iain Wiseman wrote:

          Thanks for replying. So you are saying that you cannot ignore errors easily in SSIS and count them

          Not knowing how your SSIS package is constructed makes answering this harder. For a Data Flow task (which is the most likely thing you're using), you can often pipe errored rows to a separate file. Its still not "minutes" work though ;)

          1 Reply Last reply
          0
          • I Iain Wiseman

            Hi, Thanks for replying. So you are saying that you cannot ignore errors easily in SSIS and count them. I C++ or java or C# this would be a try, carch cout which is a matter of minutes. I had hoped that microsoft would have made this easier. Iain

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

            Jamie is correct, this will be a PITA to accomplish in SSIS. Anything that does the transform is bloody difficult, trapping the error rows would be a nightmare. SSIS and Biztalk are an attempt to dumb down the ETL layer so power users can do it - they FAILED. I load my data into a table of varchar columns, the bulk copy does not care what the data is like then. I then use a stored proc to do the transorms. It is MUCH easier to manipulate the data in TSQL or C# than in SSIS.

            I 1 Reply Last reply
            0
            • M Mycroft Holmes

              Jamie is correct, this will be a PITA to accomplish in SSIS. Anything that does the transform is bloody difficult, trapping the error rows would be a nightmare. SSIS and Biztalk are an attempt to dumb down the ETL layer so power users can do it - they FAILED. I load my data into a table of varchar columns, the bulk copy does not care what the data is like then. I then use a stored proc to do the transorms. It is MUCH easier to manipulate the data in TSQL or C# than in SSIS.

              I Offline
              I Offline
              Iain Wiseman
              wrote on last edited by
              #6

              Thanks all, I come from an open source background and want to treat my colleagues who use microsoft fairly. All I want is the number of records in error and possible which they are. I assume that once you have a package to load them theat error reporting was easy. Reading this SSIS does not provide this easily. With oracle PLSQL this would simply be looking at a return code and doing something. I will ask the developer how to proceed.

              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