About 6,620,000 results
Open links in new tab
  1. How to Create a Database in SQL Server Using Command Line?

    Oct 19, 2023 · To create a database in SQL Server using the command line, follow the below steps: Open the command line or command prompt on your computer by pressing CMD + R and type the cmd in the box, then hit enter. Next, connect to the SQL Server instance using the below command in your command line.

  2. SQL CREATE DATABASE Statement - W3Schools

    The CREATE DATABASE statement is used to create a new SQL database. The following SQL statement creates a database called "testDB": Tip: Make sure you have admin privilege before creating any database. Once a database is created, you can check it in the list of databases with the following SQL command: SHOW DATABASES;

  3. SQL CREATE DATABASE | GeeksforGeeks

    Apr 12, 2025 · The CREATE DATABASE Command is used to create a new database within a SQL based Database Management System (DBMS) such as MySQL, PostgreSQL, or SQL Server. A database acts as a container where all your data tables, views, stored procedures, and more are stored.

  4. Need to create new database without using management studio

    Jul 11, 2010 · You can use the SqlCmd utility from the command line to execute SQL. Open a command prompt and then type SqlCmd.exe and press enter, you should then get 1) which means you are connected. Once connected execute. 1) CREATE DATABASE dbname 2) GO

  5. How to use sqlcmd to create a database - Stack Overflow

    Jan 1, 2012 · This is very simple. Just enter following command to run sqlcmd: sqlcmd -U sa -P password Then enter: CREATE DATABASE MYDB GO This will create the db. Then enter "quit" to exit.

  6. How to create a database from shell command in MySQL?

    Mar 11, 2010 · You can use SQL on the command line: echo 'CREATE DATABASE dbname;' | mysql <...> Or you can use mysqladmin: mysqladmin create dbname

  7. CREATE DATABASE (Transact-SQL) - SQL Server | Microsoft Learn

    Dec 19, 2024 · You can use the CREATE DATABASE statement to create a read-only, static view, a database snapshot of the source database. A database snapshot is transactionally consistent with the source database as it existed at the time when the snapshot was created.

  8. Working with the SQL Server command line (sqlcmd) - SQL Shack

    Oct 18, 2017 · The sqlcmd command line mode is used when you have specific tasks like a backup. Use it when you have a specific task in mind. DAC is used for disaster recovery (for example when the master database is damaged and you cannot access to SQL Server using SSMS or other conventional tools).

  9. SQLite In 5 Minutes Or Less

    The name of the CLI program is "sqlite3" (or "sqlite3.exe" on Windows). Use the CLI for manual interactions with a database. At a shell or DOS prompt, enter: "sqlite3 test.db". This will create a new database named "test.db". (You can use a different name if you like.) Enter SQL commands at the prompt to create and populate the new database.

  10. How to create a database with SQL CREATE DATABASE

    Feb 25, 2025 · To create your own database, use the SQL CREATE DATABASE command. Make sure you’ve got admin rights and that there isn’t already a database with the same name in the same location. What is SQL CREATE DATABASE? With Structured Query Language you can edit databases and manage the data stored in them.

  11. Some results have been removed
Refresh