sql query with an alias having space in asp.net code behind
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
when writing sql query in aspx file having alias with space I:e select emp_no as " emp no" working fine in database but giving syntax error when i run the same query in .aspx page of asp.net which is code behind file..how to resolve this issue? Thanks
-
when writing sql query in aspx file having alias with space I:e select emp_no as " emp no" working fine in database but giving syntax error when i run the same query in .aspx page of asp.net which is code behind file..how to resolve this issue? Thanks
Put brackets around the alias; "select emp_no as [emp no] from ..."