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. Source Column in DTS (OnErrorEvent)

Source Column in DTS (OnErrorEvent)

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 2 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.
  • K Offline
    K Offline
    KSEI
    wrote on last edited by
    #1

    Hi, :) Can i get the value of current source column that failed to transform to the destination column in an OnError Event of a DTS package? I want to insert this failed value to a table for data maintenance. Thanks for the help.

    H 1 Reply Last reply
    0
    • K KSEI

      Hi, :) Can i get the value of current source column that failed to transform to the destination column in an OnError Event of a DTS package? I want to insert this failed value to a table for data maintenance. Thanks for the help.

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      I think you should post this in the SQL / ADO / ADO.NET[^] forum. This has nothing to do with C#.

      Microsoft MVP, Visual C# My Articles

      K 1 Reply Last reply
      0
      • H Heath Stewart

        I think you should post this in the SQL / ADO / ADO.NET[^] forum. This has nothing to do with C#.

        Microsoft MVP, Visual C# My Articles

        K Offline
        K Offline
        KSEI
        wrote on last edited by
        #3

        Thx for your reply. Sorry for the lack of information. I'm using C# to build windows application to execute a dts package and i set an event handler for the OnError Event. So, when the error occurs i want to take the value of source field that failed to be transformed.

        H 1 Reply Last reply
        0
        • K KSEI

          Thx for your reply. Sorry for the lack of information. I'm using C# to build windows application to execute a dts package and i set an event handler for the OnError Event. So, when the error occurs i want to take the value of source field that failed to be transformed.

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          There is no information passed to the OnError event handler that would give you any such information. You should look at the documentation for the OnError event in the DTS Programming Reference either in the SQL Server docs or in MSDN Library[^]. My only other thought is to examine several of the string parameters to see if any additional error information is returned that you could parse, but judging by what the documentation says it seems unlikely.

          Microsoft MVP, Visual C# My Articles

          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