Giorgi Isaiashvili
Giorgi Isaiashvili

Reputation: 91

SQL create empty database

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]

Upvotes: 1

Views: 3610

Answers (1)

Hadi
Hadi

Reputation: 37368

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

Upvotes: 2

Related Questions