Incorrect syntax near ']'.?
问题 I have done some debugging on my sql and I cant figure out the maddening error I am getting I have narrowed it down to a couple of lines which I cant see what the problem is, please someone give me some assistance. I get this error I am here2 Msg 102, Level 15, State 1, Line 1 Incorrect syntax near ']'. I am here3 Print 'I am here2' SET IDENTITY_INSERT c365online_script1.dbo.tCompany ON declare @cols2 varchar(max) select @cols2 = (Select Stuff((Select '],[' + C.COLUMN_NAME From INFORMATION