Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALTER TABLE mytable ADD mynewid int NOT NULL DEFAULT(0) WITH
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
ALTER TABLE mytable ADD mynewid int NOT NULL DEFAULT(0) WITH
Divers
Thread ID:
01006780
Message ID:
01006780
Vues:
66
Hello everyone.

Did anyone faced this problem? What could be causing it?
When I run this query in a query analyzer for the table with many records:
ALTER TABLE mytable ADD mynewid int NOT NULL DEFAULT(0) WITH VALUES

new field mynewid is created, but records are populated with random number instead of 0.

That table does not have any Trigger on it.
Field name could have any name.
DBCC CHECKTABLE and DBCC CHECKDB did not show any errors.

Thanks, Paul.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform