Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escaping reserved words
Message
From
29/11/2011 06:41:46
 
 
To
29/11/2011 06:11:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01529929
Message ID:
01529956
Views:
39
>>>>SeatsRow? :-)
>>>Hi,
>>>cRow or nRow or iRow depending on its type
>>>
>>>would do
>>>
>>>Koen
>>
>>It is not a good idea in SQL Server to add field type as part of a column's name.
>
>SQL server doesn't care. You can actually use any keyword as a field name, even names with spaces (seen this in converted Access apps), as long as you write them in brackets.
>
>OTOH, I've found the practice of prefixing field names with xxx_ (where xxx is the same for all fields in one table, and unique to that table) very useful foxside, so the field names are never confused with variables. And then there was one metadata table where this rule wasn't respected, and it took half an hour to track one nasty bug caused by an overlap of a variable and a field name.


> I've found the practice of prefixing field names with xxx_

+1
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform