Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when adding space in a column alias
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00953842
Message ID:
00954108
Views:
19
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform