Azure SQL Database
An Azure relational database service.
5,444 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am running is job in Azure Runbook for the SQL Database and it is failing with error "Lock request time out period exceeded." . Wondering how can i control/change this value in Azure . Can I change this in Azure SQL connection string ? what is the default value ?
Call a stored procedure from Azure Automation that perform all you want.
Try using
SET LOCK_TIMEOUT -1 inside the stored procedure.
Before each transaction and statements.
When running the stored procedure from Azure Azutomation set the timeout to zero.
$DatabaseCommand = New-Object System.Data.SqlClient.SqlCommand
$DatabaseCommand.CommandType = [System.Data.CommandType]::StoredProcedure
$DatabaseCommand.Connection = $DatabaseConnection
# A value of 0 indicates no limit
$DatabaseCommand.CommandTimeout = 0
$DatabaseCommand.CommandText = $SP