Column could not be matched to a column in the source table.
vbandrade
Posts: 3
Hello there,
I want to use the smart rename function to rename and Identity column ([PKAAA]) of a table... the errors I´m getting are:
- The identity column on table [AAA] has changed. the table must be rebuilt. the data in the table apart from dropped columns will be preserved.
- Column [PKAAA] on table [AAA] could not be matched to a column in the source table. the data in this column will be lost
PKAAA is an Identity, auto increment 1.
What these errors mean? My application runs just fine using the table. Search for it, nothing.
More important: How do I solve these errors to make smart rename work?
Thx
I want to use the smart rename function to rename and Identity column ([PKAAA]) of a table... the errors I´m getting are:
- The identity column on table [AAA] has changed. the table must be rebuilt. the data in the table apart from dropped columns will be preserved.
- Column [PKAAA] on table [AAA] could not be matched to a column in the source table. the data in this column will be lost
PKAAA is an Identity, auto increment 1.
What these errors mean? My application runs just fine using the table. Search for it, nothing.
More important: How do I solve these errors to make smart rename work?
Thx
Comments
However, the identity values in the original identity column will be dropped and recreated when the original data is inserted into the newly built table. If your identity values in the table are sequential starting 1,2,3... then this shouldn't be a problem for you and the table will be recreated as it was. The only time this may be a problem is if the identity values for some reason aren't sequential i.e. 1,2,6,3,8 and you're using them for referential integrity. It's a good idea to always check the smart rename script before executing it so that you know exactly what the script will be doing.
Have a smart rename script that has only one transaction. So if anything goes wrong it rolls back all the changes.
This is being a pain with the smart rename 'cause errors are happening a lot, and it's hard to keep track of what has changed and what's hasnt.