I have this command but it keeps showing:
DROP TABLE [dbo].[@User]
Code:
void DropTable()
{
using (Command = new SqlCommand(CommandString = "DROP TABLE [dbo].[@User]", ConnectionString));
Command.Parameters.AddWithValue("@User", "TestUser");
MessageBox.Show(Command.CommandText.ToString());
}
I checked the documentation which seems to be writen in the right way, I have restarted VS and rebuild the solution but keep getting the same error.
Any possible thought ?
Thanks in advance !