Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verification on performance
Message
From
04/10/2010 11:28:01
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01483774
Message ID:
01483812
Views:
39
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform