I can't see that it matters that you are using full-width characters. Even with plain half-width characters, this is a syntax error both on the Python side and the SQL Server side:
cursor.execute("INSERT INTO [dbo].[inserttest] (DepartmentID,Name,(/)@) values(?,?,?)", row.DepartmentID, row.Name, row.(/)@)
I'm not awfully good at Python, so I may be missing something on that part.
If you actually have a column named (/)@
, you need to do this:
cursor.execute("INSERT INTO [dbo].[inserttest] (DepartmentID,Name,"(/)@") values(?,?,?)", row.DepartmentID, row.Name, row.["(/)@)"]
That is, on the SQL Server side you need to enclose the identifier in double quotes or brackets. (I use double quotes, because they are easier to type on my keyboard), and in Python you need to use array notation.