Solved

How to fix this syntax error ?

Posted on 2011-03-17
3
231 Views
Last Modified: 2012-06-27
I'm getting the following error:
Incorrect syntax near the keyword 'column'.
Thank you.
alter table dbo.PersonDegree Add
	column MajorId int null,
	column DegreeTypeId int null,
	column UniversityID int null
GO

Open in new window

0
Comment
Question by:lapucca
3 Comments
 
LVL 4

Accepted Solution

by:
Alex Matzinger earned 250 total points
Comment Utility
remove the column word and it should work

alter table dbo.PersonDegree Add MajorId int,  DegreeTypeId int, UniversityID int
0
 
LVL 4

Assisted Solution

by:qasim_md
qasim_md earned 250 total points
Comment Utility
Here you go:::

alter table dbo.PersonDegree Add
       MajorId int null,
       DegreeTypeId int null,
       UniversityID int null
GO
0
 

Author Closing Comment

by:lapucca
Comment Utility
Thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Introduction Hopefully the following mnemonic and, ultimately, the acronym it represents is common place to all those reading: Please Excuse My Dear Aunt Sally (PEMDAS). Briefly, though, PEMDAS is used to signify the order of operations (http://en.…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now