How to create a database in SQL Server 2014 using the dBeaver GUI tool?
Make a new database: right-click on an existing one and click Create New Database. Right-click the database and click Tools > Execute script. Select the SQL file and click Start. You may need to restart DBeaver to see the schemas and tables.
Use SQL Server Management StudioRight-click Databases, and then select New Database. In New Database, enter a database name. To create the database by accepting all default values, select OK; otherwise, continue with the following optional steps. To change the owner name, select (...) to select another owner.
Start up SQL Server Management Studio. If you want to create a local database, set the Database Name to . and the authentication type to "Windows Authentication". Click Connect to continue.
It isn't supported yet, as devs explain:
Database create not yet supported for SQL Server (will be added as a part of #810).
You can create database by commands like below:
--create where
USE master;
GO
--check if exists
IF DB_ID (N'MyDatabaseTest') IS NULL
DROP DATABASE MyOptionsTest;
GO
--create database
CREATE DATABASE MyDatabaseTest
COLLATE SQL_Latin1_General_CP1_CI_AS
WITH TRUSTWORTHY ON, DB_CHAINING ON;
GO
--Verifying collation and option settings.
SELECT name, collation_name, is_trustworthy_on, is_db_chaining_on
FROM sys.databases
WHERE name = N'MyOptionsTest';
GO
If you want to delete existing one, use below command:
IF DB_ID (N'MyDatabaseTest') IS NOT NULL
DROP DATABASE MyDatabaseTest;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With