About 1,210,000 results
Open links in new tab
  1. How to create a database from shell command in MySQL?

    Mar 11, 2010 · I'm looking for something like createdb in PostgreSQL or any other solution that would allow me to create database with a help of a shell command. Any hints?

  2. Create SQL script that create database and tables

    Apr 24, 2011 · I would like to create a SQL script that creates the database and tables in a single script. I can create "Create" script using the SQL Management Studio for each case (Database and Tables), …

  3. Create database from command line in PostgreSQL

    Mar 19, 2019 · I am trying to create a database from command line. My OS is centos and postgres version is 10.9. sudo -u postgres psql createdb test Password for user test: Why is it prompting me …

  4. How to duplicate a SQL database in Microsoft SQL Server Management ...

    Jun 16, 2022 · 2 On sqlexpress, we can backup database to another on MSSMS (Microsoft SQL Server Management Studio) like this: Right-Click on Databases\Restore Database... Then choose Source …

  5. How do I create a new user in a SQL Azure database?

    Sep 30, 2013 · Only afterwards can you run commands to create a user in the database. The way SQL Azure or SQL Server works is that there is a login created first at the server level and then it is …

  6. MySQL create database if not exist - Stack Overflow

    IF(SELECT COUNT(*) FROM SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'DBName') > 0) THEN BEGIN CREATE DATABASE DBName PRINT …

  7. sql - Create database if db does not exist - Stack Overflow

    Jan 8, 2020 · I want to make SQL Server script for creating database if it does not exist.

  8. CREATE DATABASE permission denied in database 'master' (EF code-first)

    Steps : Create a database in the Sql server management studio (preferably without tables). Now back on visual studio, add a connection of the newly created database in the server explorer. Now use the …

  9. sql - Error 1046 No database selected, how to resolve? - Stack Overflow

    Then I choose the database that i have just created, and open a .sql file and run, with both create database and use database statements, it complains "fail no database selected" again. reopen …

  10. Create Local SQL Server database - Stack Overflow

    Apr 11, 2017 · 6 After installation you need to connect to Server Name : localhost to start using the local instance of SQL Server. Once you are connected to the local instance, right click on Databases and …