SQL Create DataBase
Posted on
< Previous Next >
-
Open the SQL Server Management Studio
-
Open new Query Window
-
Create a new database: To create a new database, use the CREATE DATABASE statement followed by the name of the database you want to create.Â
Syntax
CREATE DATABASE databasename;
For example, the following SQL statement creates a database named "School":
OUTPUT

After Creating DataBase,
4. Confirm the database creation: After executing the SQL statement, you should see a message indicating that the database has been created. You can also verify the creation of the database by checking the list of databases available in your SQL editor.
5. Use the database: Once you have created the database, you can start using it by switching to it using the USE statement.
For example, the following SQL statement switches to the "School" database:
OUTPUT

< Previous Next >