How To Resolve Microsoft SQL Server Error 15401? | Error Could not obtain information about Windows NT group/User error code 0x534

This article helps, How To Resolve Microsoft SQL Server Error 15401? or Error Could not obtain information about Windows NT group/User error code 0x534 How SQL Server access work with AD groups? As best security practice system admin team create different AD groups for SQL Server database access. Those groups are created based on access … Read more

How to resolve SQL query takes 30 min on one server and same will takes 3 hours on another server? | Query slowness due to Maxdop and CPU issues on SQL Server

This article is about, How to resolve SQL query takes 30 min on one server and same will takes 3 hours on another server? or Query slowness due to Maxdop and CPU issues on SQL Server Sometime customer raise ticket that they are facing query slowness issue on one server and same query executing quickly … Read more

How to resolve Microsoft SQL Error 1478? | The mirror database has insufficient transaction log data to preserve the log backup chain of the principal database.

This article about, How to resolve Microsoft SQL Error 1478? or The mirror database has insufficient transaction log data to preserve the log backup chain of the principal database. What is Microsoft SQL Availability Group? SQL Server always on availability group is one of the best high availability method in SQL server. This keep your … Read more

Database status is in recovery pending | How to resolve cannot open database test requested by the login?

This article help to resolve, Cannot open database “test” requested by the login. The login failed. Login failed for user ‘ABC\Test’. or Database status is in recovery pending Why we get error Cannot open database “test” requested by the login. The login failed. Login failed for user ‘ABC\Test’ Sometime due to heavy SQL queries or … Read more

How to resolve Report server URL was not working? | Fix rsCannotValidateEncryptedData error

This Article help , How to resolve Report server URL was not working? or Fix rsCannotValidateEncryptedData error What is SSRS? SQL Server Reporting Services are getting used to create various type of reports from database or data warehouse. This reports are useful to identify various trends, business metrics etc. This reports can be accessed from … Read more

How to write simple SQL queries? | Learn simple SQL queries

This is video tutorial on How to write simple SQL queries? or Learn simple SQL queries SQL queries are versatile, and they can be utilized for numerous operations, including creating and modifying tables, inserting, updating, or deleting data from tables, selecting data from one or multiple tables based on specified conditions, joining tables to combine … Read more

How to restore database in SQL server 2022?

This Video have step by step process of How to restore database in SQL server 2022? How to Restore database on SQL Server from Backup? There are 2 ways to restore database. Option 1 : Restore database using SSMS Option 2 : We can restore database using T-SQL Point in time Restore : Sometime we … Read more

How to take database Backup on SQL Server?

This is video blog guide about

How to take database Backup on SQL Server?

Video Description : How to take database Backup on SQL Server?

How to perform Backup and restore activity on SQL Server?
As a SQL DBA you should know how backup and restore process work

SQL Server support 3 type of backups
FULL Backup
Differential Backup
Transaction log Backup
– This used to perform point in time restore

We can take backup using SSMS or T-SQL backup using SSMS.
If database recovery model is FULL then only we can take Transaction Log backup. Recovery Model of WideWorldImporters is Simple so T log backup is not allowed.

How to take database Backup on SQL Server using T -SQL:

Backup database [WideWorldImporters] to disk = ‘C:\Omkar\backups\backup\WideWorldImporters.bak’ with compression,stats =10

Will try same process with DBATools database which have FULL Recovery MODEL.After taking full and Differential backup it allowed to take transaction log backup because
Recovery model is FULL and extension for transaction log backup is .trn

We can schedule backup of databases using SQL Server agent job periodically. This will help to recover data in case of disaster. There are many options available to take backup
Create maintenance plan is one of the way which take backup base on schedule.
So we have create FULL backup plan which will run daily at 10 AM.
Same as above we can create backup job for differential backup and T log backup

If your database size is huge 500+ GB then best schedule will be
FULL Backup – Weekly
Differential -Daily except full backup schedule
T-Log backup every 15 min(Depend on how much data you want to recover)

This plan will help to recover as much as data in case of disaster.
Backup plan executed successfully and taken backup for each database present in plan.

How do I backup my SQL Server database to Azure blob storage?