- Rick Domogalik
- PowerBuilder
- Thursday, 9 December 2021 02:58 PM UTC
I have a legacy database that I am writing a new interface for. This database has several tables that use the column name "Print". I cannot change the name of the column in the database. I need to be able to update and insert new data in these tables using the reserved word as a column name. I have tried putting [] around the name in the SQL select and this will allow me to retrieve data, but when I go to try to insert a new record and then update, I get a sql error.
SQLSTATE = 37000
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'print'.
No changes made to database.
Anyone know any tricks to get around this issue?
Thanks
Rick
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.