Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default values constraints
Message
 
 
To
04/06/2008 10:46:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01321357
Message ID:
01321612
Views:
15
>>Hi everybody,
>>
>>I'm writing a create table script.
>>
>>I see there something like
>>[Approved] [bit]
>>NOT NULL CONSTRAINT [DF__Registrat__Appro__19169DBB] DEFAULT ((0)),
>>
>>I want to add another field with the default value. Is it possible to give some useful name for these constraints?
>>
>>Thanks a lot in advance.
>>
>>UPDATE. Yes, I guess I can.
>
>Naomi,
>Yes you can do that in code easily. However there is another option. If you create Diagram, you can create constraints, indexes ... there and say SQL server to generate the scri[pt as well.
>Cetin

Thanks, Cetin.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform