SQL Server| Fix a few syntax error