I have created a new DB for an assignment. I am a new learner. Everything seems to be fine except for the one error. I don't know if I can delete the table with the error without messing up the rest of the DB or if I can do a 'DROP' for the table. I found the 'drop' researching the web, but am leery about messing with the DB. Can someone show me how I can fix this please?
I haven't tried anything yet, as I don't want to mess up the DB that is hopefully working.
CREATE TABLE Customer
(CustID int NOT NULL IDENTITY PRIMARY KEY,
MediaStatusID int NOT NULL REFERENCES MediaStatus(MediaStatusID),
FName varchar(50) NOT NULL,
LName varchar(50) NOT NULL,
Address varchar(50) NOT NULL,
Address2 varchar(50) NOT NULL,
Email varchar(254) NULL,
Phone varchar(10) NOT NULL,
City varchar(50) NOT NULL,
State varchar(2) NOT NULL,
ZipCode varchar(5) NOT NULL,
Balance int NOT NULL,
LastUpdate timestamp NOT NULL
);
I am just expecting the whole DB to work to that I can write queries for the rest of the assignment. Here is the error message:
Msg 2714, Level 16, State 6, Line 3 There is already an object named 'Customer' in the database.
there is already table with name Customer in your database try to refresh the tables and check it you can use Customer2 as initial solution.