Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set identity off in T-Sql
Message
 
 
À
24/05/2011 07:24:44
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Desktop
Divers
Thread ID:
01511557
Message ID:
01511560
Vues:
42
SQL Server doesn't have command to add or remove IDENTITY property of a column. You can do it in SSMS. Generate a script before applying changes to see how it's done.

>
>I have a table, to which I add a column:
>
>alter table temp.dbo.tmpdumpallprs
> add dumpprsid bigint IDENTITY(1,1) NOT NULL
>
>So the column is filled with values 1 to {nr of records}. Now I want to add a constant to the column. So I have to remove the identity property. How do I do that?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform