Page 1 of 1

Open Table named User

Posted: Thu 23 Aug 2007 13:53
by olsonware
Hello,

I have a SQL 2005 database with a table named USER. When I use the TMSTable component and try to connect to this table, I get the following error:

Incorrect syntax near the keyword 'User'.

I am assuming this is because User is a SQL Keyword, however, I would think it is also very common to name a table USER.

Any suggestions? This is an existing production application so I do not have the option of renaming the table.

Doug Olson

Posted: Mon 27 Aug 2007 06:50
by Antaeus
Please set the TMSTable.Options.QuoteNames to True.

Posted: Tue 02 Oct 2007 18:07
by olsonware
Your suggestion still does not work... My only option is to use a TMSQuery component and construct the individual SQL myself... (much work since the User table changed recently)

Doug

Posted: Fri 05 Oct 2007 13:51
by Antaeus
We have reproduced this problem. The investigation of the problem is in progress. As soon as we solve it, we will let you know.

Posted: Mon 15 Oct 2007 10:29
by Antaeus
We have fixed this problem. This fix will be included in the next SDAC build. Please watch for announcements at the forum.

Posted: Sun 31 Jul 2011 11:41
by sailorman
I am using SDAC 5.10.8.0 for Delphi 7 Trial and the same error appears
was it realy fixed or am I doing something wrong?

Posted: Sun 31 Jul 2011 12:15
by sailorman
Please ignore the previous post, TMSTable.Options.QuoteNames does work