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. DTS Problem : Insertion of failed records

DTS Problem : Insertion of failed records

Scheduled Pinned Locked Moved Database
helptutorial
2 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, :) I need to know how to insert all the records to a table which are fail to be inserted when executes a DTS package. The table is different with the destination or source table. I realize there are many scenarios. One of them is using the text file - as the source in DTS package - that is generated when exception occured in execution process. But i think that this is a complicated and not the best way. I also need to insert the current date to the table along with the failed records. So, please help to solve this problem :confused: Thanks.

    R 1 Reply Last reply
    0
    • K KSEI

      Hi, :) I need to know how to insert all the records to a table which are fail to be inserted when executes a DTS package. The table is different with the destination or source table. I realize there are many scenarios. One of them is using the text file - as the source in DTS package - that is generated when exception occured in execution process. But i think that this is a complicated and not the best way. I also need to insert the current date to the table along with the failed records. So, please help to solve this problem :confused: Thanks.

      R Offline
      R Offline
      RichardGrimmer
      wrote on last edited by
      #2

      Could you try : INSERT INTO table1 VALUES (SELECT * FROM table2) or something similar Perhaps even CREATE TABLE table2 AS (SELECT * FROM table1) Can't remember exact syntax though (as you might have guessed) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

      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