Hey,
I'm remotely running MSDE and i forgot to set the default value on a table column. How do I set it programmatically?
I've tried this code:
ALTER TABLE tblInventory
{
Alter Column QtyOnHndID
{
set DEFAULT newid()
}
}
go
but i get the folling error:
[Microsoft][ODBC SQL Server Driver]Syntax error or access violation
any ideas?
cheyney
I'm remotely running MSDE and i forgot to set the default value on a table column. How do I set it programmatically?
I've tried this code:
ALTER TABLE tblInventory
{
Alter Column QtyOnHndID
{
set DEFAULT newid()
}
}
go
but i get the folling error:
[Microsoft][ODBC SQL Server Driver]Syntax error or access violation
any ideas?
cheyney