Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
yogi86
Starting Member
13 Posts |
Posted - 2011-07-05 : 11:43:17
|
| Hello all,I have a column named "H-ORG_D_TDM", which is driving me crazy because every time I run select H-ORG_D_TDM it gives me the following response:'Server: Msg 207, Level 16, State 3, Line 8Invalid column name 'H'.Server: Msg 207, Level 16, State 1, Line 8Invalid column name 'ORG_D_TDM'.'I believe it is not correctly reading this column name and is instead splitting it into column H (does not exist) and column ORG_D_TDM (also does not exist). I have tried 'H-ORG_D_TDM' but this only selects the actual name 'H-ORG_D_TDM' and not its result under column. Any help would be much appreciated! |
|
|
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts |
Posted - 2011-07-05 : 11:55:22
|
| Use it within [] like [H-ORG_D_TDM] |
 |
|
|
yogi86
Starting Member
13 Posts |
Posted - 2011-07-05 : 12:08:47
|
| Thanks! That worked perfectly. |
 |
|
|
|
|
|