I'm running into an issue where I'm using a token to pass the table name for a custom delete query but it's giving me an error. I'm including screen shots of the query and the error. It works fine if I just enter the table name. The table names are in this format "LastName, FirstName" without the quotes. So a working query would look like this:
DELETE FROM [dbo].[Smith, John]
Any ideas would be helpful! Thanks!