results in an error from SQL Server 2008: ...incorrect syntax near 'YN8888'... Why would SQL do this when it is declared as a varchar?
The "incorrect syntax near 'YN8888'" error is generated by the
It is not due to the
If you change that line as follows, all should be good:
Here we are wrapping the
You can help keep an eye out for these things when developing your code by putting in