About 157,000 results
Open links in new tab
  1. What is a simple command line program or script to backup SQL …

    To backup a single database from the command line, use osql or sqlcmd. "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\osql.exe" -E -Q "BACKUP DATABASE mydatabase …

  2. SQL Server command line backup statement - Stack Overflow

    May 19, 2009 · Is there a way to script out SQL Server backup in to a batch file, so that it could be executed from a command line?

  3. SQL Server backup Using Windows command line - Stack Overflow

    Feb 22, 2015 · BACKUP DATABASE YourDBName TO DISK = 'Z:\SQLServerBackups\BackupFileName.bck'; GO See Backup in Transact-SQL for more details. …

  4. Export MySQL dump from command line - Stack Overflow

    $ mysqldump -P 3306 -h [ip_address] -u [uname] -p db_name > db_backup.sql It should drop the .sql file in the folder you run the command-line from. EDIT: Updated to avoid inclusion of …

  5. Restore a postgres backup file using the command line?

    Enter the following command to restore your database: psql.exe -U postgres -d my_db -f D:\Backup\backup_file_name.sql Type password for your postgres user if needed and let …

  6. How can I import an SQL file using the command line in MySQL?

    Jul 10, 2019 · I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line. I have a Windows Server 2008 R2 installation. I placed the .sql …

  7. PostgreSQL: Export database to .sql file - Stack Overflow

    Jun 23, 2016 · For example, you can export and archive the schema and data of apple database of the user (role) john to backup.sql with e.g. -Fc, -Ft, --format=c and --format t as shown below. …

  8. SQL Server Express backup script - Stack Overflow

    Nov 19, 2020 · I was able to perform backup for my SQL Server Express using this command at the command prompt: SQLCMD -E -S testing\SQLEXPRESS –Q "BACKUP DATABASE testing3 …

  9. Backing Up mysql db from the command line - Stack Overflow

    Jan 4, 2012 · you can use mysqldump to backup mysql database. Below is the script example to backup mysql database in command line:- $ mysqldump -h localhost -u username -p …

  10. sql - how to backup database from sqlexpress - Stack Overflow

    May 15, 2010 · ExpressMaint and by using either user fired SQL Commands, or the sqlcmd command line interface, you can schedule the tasks however you want. Another tool that I have …