Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set timeouts to zero for Backup-SqlDatabase #3470

Closed
wants to merge 6 commits into from

Conversation

glavanovic
Copy link

During imports of large databases a timeout exception error occurs. With this change timeouts will be set to zero to run as long as neccessary.

@glavanovic glavanovic requested a review from a team as a code owner April 5, 2024 12:11
@@ -68,7 +68,12 @@ try {
$params = @{}
if ($compress) { $params += @{ "CompressionOption" = "On" } }
if ($databaseCredential) { $params += @{ "credential" = $databaseCredential } }
Backup-SqlDatabase -ServerInstance $serverInstance -database $database -BackupFile $bakFile @params

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Text says importing?
Is this really a problem with backup? Database size in SQL Express is limited - did you ever run into this?

@freddydk freddydk closed this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants