Below is a snippet of my code, when a table name contains a hyphen, I get the error below. How can I fix this? Thanks for the help.
alt text http://img109.imageshack.us/img109/148/createtable.png
ex = {“ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ‘-‘.”}
Use
[]round the column name:Or preferably stick to column names which don’t require special treatment…
Note that it’s a column name which has a hyphen, not the table name.