1

when I create database in sql server, it creates some tables by default inside new database from another one, which I had created earlier, can anyone pls tell me why this is happening and how to prevent it?

I am using the following command:

CREATE DATABASE [Databasename]
4
  • 1
    Are you sure you're creating a new database, not copying? Please post some examples of your problem. Commented Oct 26, 2016 at 23:22
  • 1
    How did you create said database? Commented Oct 26, 2016 at 23:30
  • I'm sure that I create new database.. Commented Oct 26, 2016 at 23:32
  • Create Database [database name] Commented Oct 26, 2016 at 23:32

1 Answer 1

2

Make sure you have not modified model database

The model database is used as the template for all databases created on an instance of SQL Server

Sign up to request clarification or add additional context in comments.

3 Comments

Thats the idea, maybe I have accidently done it. Thanks a lot I'll check it
Give us a feedback :)
It was exactly as you said bro. Thanks again

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.