I'm creating a user-based database for a login system. I have around 15 tables in my DB. I have a procedure that add a new user in the DB. I had created a fake user(which send internal communication) before i added the circular references in my DB, from there i created my first real user with the reference to my user 0. Then I've deleted all the accounts to repopulate it.
My table is design like this:
ID, password, ..., idSupervisor (which is the circular references)
I cannot add a new account since I don't have the first fake accounts to add a a references.
How can I add the fake account again without dropping all the database
I'm working with SQL Server 2008
EDIT: my table is created that way:
CREATE TABLE User
(
ID INT PRIMARY KEY IDENTITY,
Pass VARCHAR(100) NOT NULL,
IdSupervisor INT,
FOREIGN KEY (IdSupervisor) REFERENCES User(ID) -- Actually added after in an alter table
)
I don't want to drop the whole database. I just want to add a new fake user so i can start my user list from there.