General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>>>Why do you need brackets around the fields when working with SQL Server? I think you only need the brackets if the field name is a reserved word in SQL Server.
>>
>>
>>Yes, you only need them around reserved words. But, have you seen the reserved words list?? It's very long. And its hard to avoid using some of them. So, a safety-net approach is to surround each table name and field name with [ ]. Problem solved.
>
>Or use prefixes for all your fields, that works as well.
Can't just go back and pepper in prefixes to fields. Just like any app, there would be hundred (thousands) of lines of code and reports that would break.
.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only