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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table name = 'ORDER'

Status
Not open for further replies.

Extentec

Programmer
Jul 25, 2001
44
0
0
US
This is an easy one I hope..just can't remeber how to make this happen:

I am working on a program (written by microsoft) run on SQL Server. One of the table names is "ORDER" and the word 'ORDER' being a reserved word in SQL Server generates an error when I try to reference the table:

SELECT * FROM ORDER

Results in a "Incorrect syntax near the keyword 'ORDER'." error. Why they did not name the table "ORDERS" I will never know. Calling it dbo_ORDER also fails.

How do I access this table?

THANKS!

--Eric

 
Just simple enclose the table name within square brackets:
[tt]
SELECT * FROM [ORDER]
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top