Can I declare name of SQL Server variable in a table with spaces?
create table test(
record name, float, not null
.....
The above query when executed gives me an error. Is there any way to declare the variable as
variable name with a space..??
Yes, escape these names using []:
[record name] ....
These names are called Delimited identifiers:
Are enclosed in double quotation marks (") or brackets ([ ]).
But it is not recommended, use legal names instead or regular identifiers.