J
Janaka
I'd like to submit the default value of a SQL column as the value to send in
my parameter. I know you can use DBNull.Value to enter NULLs. Is there a
way to enter the DEFAULT value?
i.e. in sql it would look something like UPDATE MyTable SET MyColumn =
DEFAULT
in .NET I want to write something like
SqlParameter myParam = new SqlParameter("@MyColumn", SqlDBType.Varchar, 20);
myParam.Value = Default.value;
my parameter. I know you can use DBNull.Value to enter NULLs. Is there a
way to enter the DEFAULT value?
i.e. in sql it would look something like UPDATE MyTable SET MyColumn =
DEFAULT
in .NET I want to write something like
SqlParameter myParam = new SqlParameter("@MyColumn", SqlDBType.Varchar, 20);
myParam.Value = Default.value;