![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Trying to import a excel spreadsheet and I have setup the transform as such... Function Main() DTSDestination("id")= DTSDestination("fn") = DTSSource("First") DTSDestination("ln") = DTSSource("Last") DTSDestination("uid") = DTSSource("Nalphakey") DTSDestination("bldg") = DTSSource("Building Desc") DTSDestination("cat") = DTSSource("Cat") DTSDestination("hiredate") = DTSSource("Hire Date") ...... I don't know how to auto fill the ID field. It is an INT datatype is set for Identity and the increment is set to 1. But when I run my transform...usually just leaving out the DTSDestination("id") portion I get an error stating I can't insert a null value into ID. As you can tell I am rather new to DTS transforms. Thanks for the info. Jason |
#3
| |||
| |||
|
|
If the identity is set at the table level, take it out of your script completely. "JasonMeyer" wrote: Trying to import a excel spreadsheet and I have setup the transform as such... Function Main() DTSDestination("id")= DTSDestination("fn") = DTSSource("First") DTSDestination("ln") = DTSSource("Last") DTSDestination("uid") = DTSSource("Nalphakey") DTSDestination("bldg") = DTSSource("Building Desc") DTSDestination("cat") = DTSSource("Cat") DTSDestination("hiredate") = DTSSource("Hire Date") ...... I don't know how to auto fill the ID field. It is an INT datatype is set for Identity and the increment is set to 1. But when I run my transform...usually just leaving out the DTSDestination("id") portion I get an error stating I can't insert a null value into ID. As you can tell I am rather new to DTS transforms. Thanks for the info. Jason Thanks for the reply. |
#4
| |||
| |||
|
|
If the identity is set at the table level, take it out of your script completely. "JasonMeyer" wrote: Trying to import a excel spreadsheet and I have setup the transform as such... Function Main() DTSDestination("id")= DTSDestination("fn") = DTSSource("First") DTSDestination("ln") = DTSSource("Last") DTSDestination("uid") = DTSSource("Nalphakey") DTSDestination("bldg") = DTSSource("Building Desc") DTSDestination("cat") = DTSSource("Cat") DTSDestination("hiredate") = DTSSource("Hire Date") ...... I don't know how to auto fill the ID field. It is an INT datatype is set for Identity and the increment is set to 1. But when I run my transform...usually just leaving out the DTSDestination("id") portion I get an error stating I can't insert a null value into ID. As you can tell I am rather new to DTS transforms. Thanks for the info. Jason Ok I figured it out. I opened the package in design mode, edited the |
#5
| |||
| |||
|
|
Trying to import a excel spreadsheet and I have setup the transform as such... Function Main() DTSDestination("id")= DTSDestination("fn") = DTSSource("First") DTSDestination("ln") = DTSSource("Last") DTSDestination("uid") = DTSSource("Nalphakey") DTSDestination("bldg") = DTSSource("Building Desc") DTSDestination("cat") = DTSSource("Cat") DTSDestination("hiredate") = DTSSource("Hire Date") ..... I don't know how to auto fill the ID field. It is an INT datatype is set for Identity and the increment is set to 1. But when I run my transform...usually just leaving out the DTSDestination("id") portion I get an error stating I can't insert a null value into ID. As you can tell I am rather new to DTS transforms. Thanks for the info. Jason |
![]() |
| Thread Tools | |
| Display Modes | |
| |