Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when adding space in a column alias
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00953842
Message ID:
00954108
Vues:
20
Hi David,

You're correct that names that doesn't follow the Transact-SQL rules for identifiers mast be quoted. However, the double quotes (ANSI standard) can only de used when SET QUOTED_IDENTIFIER is ON. The square brackets ([]) can be used always and not affected by any settings but they are MS SQL Server specific.

>
>As the others have said, you can not have a space in the column name in VFP. SQL Server columns can have spaces in them, but then you have to keep using " around the field names:
>
>
>create table #test ( "field with spaces" char(20), test int )
>insert into #test values ( 'does it work', 100 )
>
>select * from #test
>select "field with spaces" from #test
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform