473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to solve the following

Hi every one!

I an new in sql so please dont explain with the big words.
My main problem is, i have a table that i want to change data types in certain columns.
Here is the code that i have used

USE [ShearAcTraining]
ALTER TABLE Aircraftmodels
ALTER COLUMN @Speed int,
ALTER COLUMN @Costpermile int,
ALTER COLUMN @FuelConsumption int,
ALTER COLUMN @NoSeats int,
ALTER COLUMN @AllUpWeight int,
ALTER COLUMN @AUWRounded int,
ALTER COLUMN @NoEngines int,
ALTER COLUMN @CurrentUser nvarchar(50),
ALTER COLUMN @EntryDate datetime

It brings me an error message that states

Msg 102, Level 15, State 1, Line 7
Incorrect syntax near '@Speed'.

Please tell me where i could be going wrong and how to solve search problems
Feb 4 '10 #1
1 1076
ck9663
2,878 Expert 2GB
The symbol "@" tells SQL Server that it's a variable, not a column name. Here, read this

Good Luck!!!

~~ CK
Feb 4 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: wonder | last post by:
Hi, The CRM application said that need to add an option "REGISTER_GLOBALS=On" to the php.ini file, so I did what it told. But I still can't get rid off the following error: The PHP variable...
17
by: Just | last post by:
While googling for a non-linear equation solver, I found Math::Polynomial::Solve in CPAN. It seems a great little module, except it's not Python... I'm especially looking for its poly_root()...
1
by: Bjoern Wolter | last post by:
ich have following problem on the left side i have an picture, an on the right side will be text. the text is larger than the picture height, so the text continues under the picture, how can i ...
1
by: Peter Sze | last post by:
I wrote a ASP.NET program which can generate a Excel Report, that I using WindowXP and Oiffce XP to develop. It is work, but after I deployed to Window Server 2003 with Office 2003. It occur the...
0
by: G Dean Blake | last post by:
This datagrid (dgbudgets) binds perfectly and column4 is a non visible column. Immediately after the bind, however, column(4).visible is true both in the grid and the grid retrieved from the...
7
by: Shapper | last post by:
Hello, I have an ASP:ImageButton where I want to call a function and pass a string: OnClick="Change_Photo("John")" I am having problems with "". I tried
1
by: etantonio | last post by:
Good morning, I've a problem, in the past I translate my site from google or altavista with a code similar to this : <%@ Page Language="c#" Trace="true" Debug="true" %> <%@ import...
0
by: raa abdullah | last post by:
Overview A conflict-serializbility\recoverability checker, SCR, is a program that takes in a schedule and outputs 2 decisions: Conflict serialzable or Not confilict serializable AND Recoverable or...
1
by: sathyan8294 | last post by:
i am using vb.net 2003.i am doing my project in vb.net windows application.the following code is for sending mail. Dim mymailmessage As New MailMessage Try Dim bSuccess As Boolean = True...
21
by: buss123 | last post by:
Hi, in our application we are using AJAX . but application is working in IE well but in FIREFOX it is is not opening .my doubt is wether FIREFOX will support AJAX or not
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.