Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default values constraints
Message
From
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:
01321607
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform