Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification on performance
Message
De
04/10/2010 11:28:01
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01483774
Message ID:
01483812
Vues:
38
>Why don't you use DEFAULT constraint and avoid UPDATE that in this case requires table lock?
>
>SET @ExecuteSql = N'ALTER TABLE [Client] ADD [test4] char(40) DEFAULT ('''')'
>
>
>Also, wouldn't varchar(40) better choice for the column?

I wasn't aware of the Default clause. Thanks for mentioning it.

I have been used to Char(). Is VarChar() a new standard? Basically, if I define a character field, is this a better type to use?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform