I was able to send the id successfully but trying to parametrize the table name is not possible, how can I solve this? or is there another way to send the table name as parameter in c# sql
deleteCommand.CommandText = "delete from @tableName where rowid=@ID";
deleteCommand.Parameters.Add(new SqlParameter("@tableName", table.Name));
deleteCommand.Parameters.Add(new SqlParameter("@ID", table.id));