Skip to main content

A column name that I am trying to SELECT in the SQLExecutor is titled: STATE

The line in the SQLExecutor that contains it is as follows:

I receive an error message that leads me to believe that it is not grabbing this column, and instead trying to grab the alias that I am trying to establish:

Is there a reliable work around for this reserved word?

 

I have tried using the following, to no avail:

pSTATE]

p“STATE”]

/state]

“pSTATE]”

Is State a reserved word?

https://learn.microsoft.com/en-us/sql/t-sql/language-elements/reserved-keywords-transact-sql

Try without the [ ]. Else, seems like the issue is somewhere else in your script, like a subquery.


Reply