我有这个命令,但它一直显示:
DROP TABLE [dbo].[@User]
代码:
void DropTable()
{
using (Command = new SqlCommand(CommandString = "DROP TABLE [dbo].[@User]", ConnectionString));
Command.Parameters.AddWithValue("@User", "TestUser");
MessageBox.Show(Command.CommandText.ToString());
}
我检查了似乎以正确方式编写的文档,我重新启动了 VS 并重建了解决方案,但仍然收到相同的错误。
有什么可能的想法吗?
提前致谢 !