Add updated SqlAgent folder

This commit is contained in:
Neeraj Kumar
2025-11-02 14:50:48 -05:00
parent 2c94b89801
commit 8fca292a50
141 changed files with 6723 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# Connect to SQL Server
$ServerName = "DOES-DUTAS-SQL"
$SqlInstance = "localhost" # or server instance name
# Execute each script
$ScriptFiles = Get-ChildItem -Path $ExtractPath -Filter *.sql
foreach ($file in $ScriptFiles) {
Write-Host "Restoring job from: $($file.FullName)"
sqlcmd -S $SqlInstance -i $file.FullName
}
Write-Host "All SQL Agent jobs restored successfully."