Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to "ADD COLUMN"

Status
Not open for further replies.

sliver

Programmer
Nov 16, 2000
23
US
here is my query it is on a sql server/coldfusion system.

<cfquery name=&quot;adding&quot; datasource=&quot;clientname&quot;>
ALTER TABLE subjects ADD COLUMN partnerid VARCHAR(30)
</CFQUERY>

from everything I can find it should work but it doesnt.
I get
Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'COLUMN'.

please help
 
remove word 'COLUMN' from it:

ALTER TABLE subjects ADD partnerid VARCHAR(30)


Zhavic


---------------------------------------------------------------
In the 1960s you needed the power of two Comodore64s to get a rocket to the moon. Now you need a machine which is a vast number of times more powerful just to run the most popular GUI.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top