>>>I am connecting to a SQL server table with a space in the table name (say, [my table]) via a CursorAdapter. How should I write the UpdateNameList property of the CursorAdapter.
>>>
>>>I tried quoting the table name with a pair of square brackets like "id [my table].id, num [may table].num". However the CursorAdapter failed to update the master table with the changes in the cursor.
>>>
>>>Any idea?
>>
>>I think here you should use the name of the cursor, not the table. Did you try that? Also, perhaps it's not too late to rename this table and remove the space?
>>
>>Read this blog post
>>
Do not use spaces or other invalid characters in your column names>
>I disagree with that post. Why would aesthetics or the perceived difficulty in reading/understanding be a factor whether to use a feature or not? What if I like to use the brackets for I like them and makes easier for ME understanding and reading the code.
Hi Hugo,
I suggest to add comments to this blog directly, although I can also invite the author (recently named SQL Server MVP) to defend this position here.
So, do you use spaces in the field names in SQL Server columns? How do you work in VFP with columns that have spaces?
If it's not broken, fix it until it is.
My Blog