Default values

Phylum

Well-known member
Joined
Jun 20, 2003
Messages
105
Location
Canada
When you create an SQL Table via VB .NET or SQL server 2000 you can fill in defult values for columns. Is there any way to set these values in code and save them to the DB, so that any record create henceforth will have those default values?

Phylum
 
DataColumn.DefaultValue

If you arent using DataTables then youll have to be more specific. When all else fails, make constants. *shrug*
 
So basically if I add a nw row and change the default values of each column and then update, it will record the defaults to the DB?
 
Back
Top