Help please, Im using SQL server Management Studio Express and i want to change the default value of a varchar(50) column.
i want the defaultdate to be like this
'5/04/2007 11:15 pm System generated'
So i have tried to do this:
(getDate())+'Sy stem generated'
(getdate()).'Sy stem generated'
but neither seem to work
these two actually put the entire string as the default value so the default values are
(getDate())+'Sy stem generated'
(getdate()).'Sy stem generated'
is there something that i am missing
Also, is there a way that i can make the default value = another field in the table so the default value would be another field
i want the defaultdate to be like this
'5/04/2007 11:15 pm System generated'
So i have tried to do this:
(getDate())+'Sy stem generated'
(getdate()).'Sy stem generated'
but neither seem to work
these two actually put the entire string as the default value so the default values are
(getDate())+'Sy stem generated'
(getdate()).'Sy stem generated'
is there something that i am missing
Also, is there a way that i can make the default value = another field in the table so the default value would be another field
Comment