devxlogo

SQL Server 7.0 Allows Table and Field Names With Spaces

SQL Server 7.0 Allows Table and Field Names With Spaces

SQL Server 7.0 allows field and table names to contain spaces or other characters that violate valid identifier rules. These table or field names should be enclosed in “[” “]” when used in SQL expression or queries. If the quoted identifier is set to “ON”, double quotation marks can also be used to enclose these identifiers. For instance, here are some valid examples of SQL queries:

 Select * from [Table with spaces]OrSet quoted identifier onSelect * from "Table with spaces"

devx-admin

Share the Post: