Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to alias SQL column - reserved word
Message
From
15/09/2008 16:06:33
 
 
To
15/09/2008 15:47:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347748
Message ID:
01347751
Views:
7
Usually you can enclose the reserved word in a quote or brackets [ ] and it will go through....


>An existing non changeable table has a column defined as DESC which is a reserved word. When I try to run the SQL UPDATE statement it fails.
>
>I tried SET [desc] = "zzz"
>
>Tried a macro no luck
>
>CREATE CURSOR xx ( desc v(10))
>INSERT INTO xx values('11111')
>UPDATE xx SET desc = "zzz" --- this line does not work
>
>How can I get around this?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform