I'm trying to drop a table if it exists.
I created a table, that worked fine. I can drop the table with the DROP TABLE command. What I can't do is any form of this:
DROP TABLE IF EXISTS customer;
In fact, I can't seem to get any form of IF EXISTS to work at all. I went to the MS website and looked up how to do this, and their example won't even run:
CREATE TABLE T1 (Col1 int);
GO
DROP TABLE IF EXISTS T1;
GO
DROP TABLE IF EXISTS T1;
Any ideas?