Here are the sql code:
I got the error mesesge for dropping the default:
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'default'.
I do not know what i did wrong. My code is exactly same from the MSDN:
Seaport
Code:
CREATE TABLE [tblTableToChange] (
[PersonID] [int] IDENTITY (1, 1) NOT NULL ,
[FirstName] [varchar] (50) NOT NULL ,
[LastName] [varchar] (50) NOT NULL ,
[Inactive] [bit] NOT NULL default (0),
[StudentCode] [smallint] NULL ,
[Notes] [varchar] (255) DEFAULT (''),
[LastUpdated] [datetime] NOT NULL
) ON [PRIMARY]
GO
alter TABLE [tblTableToChange]
alter column [Inactive] drop default
go
I got the error mesesge for dropping the default:
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'default'.
I do not know what i did wrong. My code is exactly same from the MSDN:
Seaport