![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
If someone can kick me in the right direction, that would be most helpful. I have a DTS task (Data driven Query Task) which simply transfers data from an Interbase database into SQL 2000 - This task works just fine. If I modify the Destination SQL 2000 table (Add a field) and run the task, I get the following error - "Insert Error: Column Name or number of specified values does not match table definition". Clearly this must be a metadata issue of some kind, as in this instance I am not actually doing anything with the new field. and the Insert query specified in the task is still a valid one. Thanks in Advance. |
#3
| |||
| |||
|
|
Is the INSERT query still valid? INSERT TableName (Colum1, Column2) VALUES(?, ?) INSERT TableName VALUES(?, ?) The top query would still be valid, since you have specified the columns, but the bottom would break, since when you do not specify columns, you must supply values for all columns. You can repro this error in Query analyser, as it is pure T-SQL, don't let DTS confuse the issue here. The other problem could be if the new column is NOT NULL, and you don't supply a value, of course this will choke too, but the error would be different, Something to bear in mind. |
#4
| |||
| |||
|
|
The insert quesry is specified as INSERT INTO Sal_Transactions(Category, Tran_Amount, Sold_By, Tran_Date) VALUES (?, ?, ?, ?) So in theory if I add an extra field to the destination table this query should still work....? |
![]() |
| Thread Tools | |
| Display Modes | |
| |