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 |
|
trackjunkie
Starting Member
31 Posts |
Posted - 2009-04-22 : 10:54:33
|
| I'm very new at this so be patient and detailed in any answers please...I added a table to my database and now need to add one more column. I right clicked on the table and picked "edit" I got a window with code to create the table and modified it to "Alter" the table and add a column. Here is the code and error I'm getting:USE [Flex_App]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER TABLE[dbo].[Flex_RoutingData]( ADD QCSheetNumber INT Null ) ON [PRIMARY]Here are my error messages:Msg 102, Level 15, State 1, Line 1Incorrect syntax near '('.Msg 102, Level 15, State 1, Line 3Incorrect syntax near 'QCSheetNumber'.I based my code on info I found many places on line and have no idea what is wrong. I let most of it alone, just changed "Create" to "Alter" and inserted the ADD statement. I also tried "ADD COLUMN" instead of just ADDThanks for any help. |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-04-22 : 11:04:04
|
| ALTER TABLE [dbo].[Flex_RoutingData] ADD QCSheetNumber INT NullMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|