meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| sql_server:alway_on:rstauration_manuelle_db_instance_secondaire [15/04/2025 18:13] – créée mdl | sql_server:alway_on:rstauration_manuelle_db_instance_secondaire [26/10/2025 12:43] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | * Backup full et TLOG | ||
| + | <code TSQL> | ||
| BACKUP DATABASE [IVANTI_SECURITYCONTROLS] to disk=' | BACKUP DATABASE [IVANTI_SECURITYCONTROLS] to disk=' | ||
| BACKUP LOG [IVANTI_SECURITYCONTROLS] to disk=' | BACKUP LOG [IVANTI_SECURITYCONTROLS] to disk=' | ||
| + | </ | ||
| - | + | * restore | |
| - | ##### | + | <code TSQL> |
| restore filelistonly from disk=' | restore filelistonly from disk=' | ||
| Ligne 20: | Ligne 22: | ||
| ALTER DATABASE [IVANTI_SECURITYCONTROLS] SET HADR AVAILABILITY GROUP = [gvasqlag1]; | ALTER DATABASE [IVANTI_SECURITYCONTROLS] SET HADR AVAILABILITY GROUP = [gvasqlag1]; | ||
| + | </ | ||
| - | + | * on compare sur la primaire le nombre de BDD versus nombre de BDD dans AG | |
| - | #### | + | <code TSQL> |
| select count(name)from sys.databases | select count(name)from sys.databases | ||
| where name not in(' | where name not in(' | ||
| Ligne 28: | Ligne 31: | ||
| select count(distinct(database_name)) | select count(distinct(database_name)) | ||
| + | </ | ||