![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a text file that needs to be read into SQL. I can read the file alright, but I have problems adding a primary key to the SQL table and make it increament automatically. If I read the text file into a new table, the primary key is not created. If I created an empty table and added a primary key at the beginnin of the file, I got an error message and the import just quit. Can anyone guide me on this? |
#3
| |||
| |||
|
|
And what is the error. If you add a primary key column with IDENTITY then make sure you do not point your source columns to this column in the destination Problems With IDENTITY() and the DataPump task. (http://www.sqldts.com/default.aspx?293) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - SQL Server 2005 Integration Services. www.Konesans.com "pelican" <pelican (AT) discussions (DOT) microsoft.com> wrote Hello, I have a text file that needs to be read into SQL. I can read the file alright, but I have problems adding a primary key to the SQL table and make it increament automatically. If I read the text file into a new table, the primary key is not created. If I created an empty table and added a primary key at the beginnin of the file, I got an error message and the import just quit. Can anyone guide me on this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |