Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to fix this syntax error ?

Posted on 2011-03-17
3
Medium Priority
?
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
Alex Matzinger earned 1000 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 1000 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

604 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