Quote Originally Posted by LKBrwn_DBA View Post
That error is telling you the code has "syntax" errors.
Database objects (eg. table names / column names) normally do not have "spaces" in the name.
Both are correct statements. However, my guess is that the tables and column
names do have spaces, hence the OP needs to use double quotes.