General information
Forum:
Microsoft SQL Server
Category:
Database management
Write a stored procedure which will create a script to default all your numerics to 0 and all your chars to '' .
BOb
>Would I be correct to say that default constraint is still a field entry? What I was hopping for is a global data type default, where we could set up a default for character to be a ‘ ‘ or numeric and integers to be zeros… it’s a want / wish. It would defiantly simplify the table creation process.
>
>
>>Using a default constraint is the best way IMO.
>>
>>-Mike
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only