Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dlmagers10
Starting Member
48 Posts |
Posted - 2010-10-27 : 11:42:54
|
| Ok, I would like to ask you this if I may,On another database I created a table named FICTIONand the table looks like this:CREATE TABLE FICTION (BOOK_CODE CHAR(4) PRIMARY KEY, TITLE CHAR(40), PUBLISHER_CODE CHAR(3), PRICE DECIMAL(4,2) );Now I am trying to change the data type in TITLE to CHAR(50)ALTER TABLE FICTIONMODIFY COLUMN TITLE CHAR(50);Getting an ERROR again. DO I NEED TO REFRESH SOMETHING?ERROR:Msg 156, Level 15, State 1, Line 2Incorrect syntax near the keyword 'COLUMN'. |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-10-27 : 11:46:30
|
create table test(title char(40))goalter table testalter column title char(50)gosp_help test No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
robvolk
Most Valuable Yak
15732 Posts |
|
|
|
|
|