I set the default value of a field and create a copy of the new table.

I set the GETDATE default value for the DATATIME data type. As a result, create a new query editor window wants to copy the table. After another name, the excute result shows that couldnt create constraint or index SQL
if you don"t add this default value, you can give me this error
, but still generate a new data table, but the datatime field does not have the default value getdate () r
. Then if I have data in it, I can"t copy the

that generates the new table.
Sql
Mar.18,2021

it is obvious that the table you copied is in the script

has constraints or indexes associated with other tables

that's why you reported this error

either you create a new constraint or index

because you copied it, the name of the constraint or index repeats

.
Menu