Posted by Steen Persson \(DK\) on 08/12/05 16:56
Try
SELECT [ID], [EXEC] FROM Users
Regards
Steen
b_naick@yahoo.ca wrote:
> I am in the process of importing an Oracle database into SQL Server.
> Once of the tables has a field called "EXEC".
>
> SQL Server seems to reject any queries that include that particular
> field because EXEC is a keyword. For eg.
>
> SELECT ID, EXEC from USERS
>
> results in a syntax error near keyword EXEC.
>
> I can't change the fieldname becuase it will require reworking of a
> whole bunch of scripts.
>
> What can I do to adjust the query?
>
> Bijoy
Navigation:
[Reply to this message]
|