Solved

How to fix this syntax error ?

Posted on 2011-03-17
3
234 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
ID: 35158911
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
ID: 35158922
Here you go:::

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

Author Closing Comment

by:lapucca
ID: 35159017
Thanks.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

896 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