
How to restore to a different database in SQL Server?
Jun 7, 2011 · To restore a database to a new location, and optionally rename the database Connect to the appropriate instance of the SQL Server Database Engine, and then in Object Explorer, click the …
Import .bak file to a database in SQL server - Stack Overflow
May 26, 2023 · I have a file with .bak extension. How can I import this file data to a database in SQL Server?
Backup Azure Database to .BAK file using SSMS? - Stack Overflow
May 21, 2019 · Then, on your Azure account (or wherever your Database is that doesn't allow you to create a .BAK file is, do the following) Connect to it and navigate to Tasks > Export Data-tier …
database - 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 Postgres to …
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. * …
sql server - Override file while backup database - Stack Overflow
sqlcmd -S servername -Q "BACKUP DATABASE [DBName] TO DISK = 'C:\backup.bak'" It works. But if the backup file already exists, the data gets appended to the file instead of replacing the file. Every …
sql server - bak file not visible when trying to restore database ...
I can restore database on my default instance with query and GUI . I tried changing log-on as account of sql server service for named instance to 'network service' or 'local system' and giving them full …
How do you clear the SQL Server transaction log?
Sep 11, 2008 · The busier the database is, the quicker the online transaction log will grow if transaction log backups are not created Creating a SQL Server transaction log backup doesn’t block the online …
Importing .bak file into Azure SQL Database - Stack Overflow
Jun 2, 2023 · I have received a .bak file that contains a database backup, and I need to import it into an Azure SQL Database. I have tried using the "Restore" feature in Azure portal, but it …
Delete Specific Backup file through SQL - Stack Overflow
Jan 19, 2016 · I can easily remove the entries from the msdb tables and its restore history for a given backup, but I would like to be able to delete the files as well through an SQL query (I know their full …