garciam7254
asked on
SQL 2000
Hi I am having problems altering or updating a table to hange the num,ber of charatcers a row takes.
Right Now I have a table name Course
I need to change the Course Name from varchar(15) to (40)
I have tried
ALTER table Course
update course_name varchar(50) but get an error - also tried using the update command.
Thank you,
Right Now I have a table name Course
I need to change the Course Name from varchar(15) to (40)
I have tried
ALTER table Course
update course_name varchar(50) but get an error - also tried using the update command.
Thank you,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ALTER TABLE Course
ALTER COLUMN Course_Name varchar(50) NULL
I used this - and it worked.
Thank you.
ALTER COLUMN Course_Name varchar(50) NULL
I used this - and it worked.
Thank you.
ASKER
erver: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'SET'.
Server: Msg 195, Level 15, State 1, Line 1
'DATA' is not a recognized SET statement.
I tried using modify.