![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am importing data in the table which has primary key as identity. Data file doesn't has the data for the column. I created view which has the column except the identity column trying to import but getting error Server: Msg 515, Level 16, State 2, Line 1 Cannot insert the value NULL into column 'ID', table 'MyTable; column does not allow nulls. INSERT fails. Note: Bulk Insert through a view may result in base table default values being ignored for NULL columns in the data file. The statement has been terminated. Please help. Thanks -- Farhan |
#3
| |||
| |||
|
|
Are you having trouble with this? Problems With IDENTITY() and the DataPump task. (http://www.sqldts.com/default.aspx?293) "Farhan" <Farhan (AT) discussions (DOT) microsoft.com> wrote in message news:Farhan (AT) discussions (DOT) microsoft.com: I am importing data in the table which has primary key as identity. Data file doesn't has the data for the column. I created view which has the column except the identity column trying to import but getting error Server: Msg 515, Level 16, State 2, Line 1 Cannot insert the value NULL into column 'ID', table 'MyTable; column does not allow nulls. INSERT fails. Note: Bulk Insert through a view may result in base table default values being ignored for NULL columns in the data file. The statement has been terminated. Please help. Thanks -- Farhan |
![]() |
| Thread Tools | |
| Display Modes | |
| |