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. SQL Import Help

SQL Import Help

Scheduled Pinned Locked Moved Database
questiondatabaselinuxhelp
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.
  • H Offline
    H Offline
    Hulicat
    wrote on last edited by
    #1

    I have a source of a 2007 excel workbook and of the data is there that needs to be there for the import to the SQL 2008 destination table. i.e all "not null" fields are populated and mapped except the primary key which happens to be a unique identifier datatype. I have tried creating a column using the NEWSEQUENTIALID() function in the first row.....that works for inserting nulls into a "shell" db but it fails everytime on the destination table that has a primaery key on the field and unique identifer as the data type. Question: How do I generate the GUIDS (unique identifers) from a DTSX package? Is there a work around? I have spent the whole night trying everything except the right way. Any help is greatly appreciated. Thanks,

    Regards, Hulicat

    J 1 Reply Last reply
    0
    • H Hulicat

      I have a source of a 2007 excel workbook and of the data is there that needs to be there for the import to the SQL 2008 destination table. i.e all "not null" fields are populated and mapped except the primary key which happens to be a unique identifier datatype. I have tried creating a column using the NEWSEQUENTIALID() function in the first row.....that works for inserting nulls into a "shell" db but it fails everytime on the destination table that has a primaery key on the field and unique identifer as the data type. Question: How do I generate the GUIDS (unique identifers) from a DTSX package? Is there a work around? I have spent the whole night trying everything except the right way. Any help is greatly appreciated. Thanks,

      Regards, Hulicat

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

      Hulicat wrote:

      How do I generate the GUIDS (unique identifers) from a DTSX package?

      ExecuteSql task with a call to NEWID() Script Task with a call to new Guid() take your pick.

      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