Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of a field name DESC in SQL
Message
From
01/10/2001 02:43:22
 
 
To
30/09/2001 11:07:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00562338
Message ID:
00562403
Views:
16
Hi!

I guess it is depended on the internal VFP logic and it is quite hard to tell about behavior of VFP in such case. Just use of rererved words is not recommended, however, this does not means that every reserved word will cause error for sure. Just inpredictable behaviour.

BTW, in addition to what Alex said about DESCRIPT, in our databases we usually use type prefix for fields (naming conventions) either in VFP or SQL Server database, so our field in such case will look like 'mDesc' that eliminate most if not all problems related to reserved words.

>As someone found the logic of VFP when using a field name DESC in a SQL? Sometimes, the same SQL will generate an error if a field name is Desc. Most of the times it'll work.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform