i am trying to create a default value for the column activevac using the following tsql;
ALTER TABLE vacancies
alter column activevac nvarchar DEFAULT -1
----------------------------------------
but i keep on getting the following error;
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'DEFAULT'.
Can anyone help please?
thanks.i cannot do it through enterprise manager,only through query analyzer so i need a tsql solution.
ALTER TABLE vacancies
alter column activevac nvarchar DEFAULT -1
----------------------------------------
but i keep on getting the following error;
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'DEFAULT'.
Can anyone help please?
thanks.i cannot do it through enterprise manager,only through query analyzer so i need a tsql solution.