Link to home
Start Free TrialLog in
Avatar of garciam7254
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,
ASKER CERTIFIED SOLUTION
Avatar of nayernaguib
nayernaguib
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of garciam7254
garciam7254

ASKER

Thank you for you prompt response - but addtionally I am getting the following error:

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.

ALTER TABLE Course
    ALTER COLUMN Course_Name varchar(50) NULL

I used this - and it worked.

Thank you.