Unix Technical Forum

Alter table with drop column error

This is a discussion on Alter table with drop column error within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi, I have been trying to drop columns from various tables and if I use the Enterprise Manager I ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:47 PM
Bill Button
 
Posts: n/a
Default Alter table with drop column error

Hi,

I have been trying to drop columns from various tables and if I use the
Enterprise Manager I get a syntax error message. I can add tables, add
columns and drop tables with out any problems.

The exact error is:-

- Unable to modify table.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 2: Incorrect
syntax near 'quotenumber'.

I have also get the same error when I use the following from SQL Query
Analyser

alter table test add five varchar(20) Null
alter table test drop COLUMN five

Server: Msg 170, Level 15, State 1, Line 2
Line 2: Incorrect syntax near 'five'.

Thanks in advance for you help

Regards
Bill Button
Pathtrace PLC






Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com