Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql fields with spaces in column name
Message
De
29/12/2008 16:19:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/12/2008 15:58:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01369972
Message ID:
01369998
Vues:
5
>>If that is using standard SQL Server syntax, then you should be using something like..
>>
>>cSQL = "select * from VRP_CONTACT where [CONTACT CONTACTID] = '" + crsrs.contact_opportunity_contactid + """
>>
>>Brackets around identifiers are SQL Server's way of handling illegal names.
>
>
>Thanks, got it.
>
>I suppose the fact that I haven't been coding in a while, and SQL Server was never actually in my skill set leads to all sorts of new problems for me!

You're in for quite a ride... specially when everything looks fine for quite a while, and then you stumble upon something you thought trivial... for example, val("423blabla")=423 in xBase languages since forever. SQL server will bang trying to cast() that as an integer. Or... but you already know that VFP has better string cutlery than M$ Office and SQL server taken together. I've caught myself just dragging the data into VFP, grinding them there and pushing them back - easier than to do there.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform