Error 1809

Severity Level 14

Message Text

CREATE DATABASE must be preceded by a 'USE master' command. Check with your DBO (or System Administrator) if you do not have permission to USE master.

Explanation

This error occurs when you try to create a new database without being in the master database.

Action

Before issuing the CREATE DATABASE statement, be sure you are in the master database and have the necessary permissions to create a database. Type:

USE master
go