‘Unable to reconnect to database: Timeout expired’ error when using SQLPackage.exe to deploy to Azure SQL
I have trying to update a Azure hosted SQL DB using Release Management and the SSDT SQLPackage tools. All worked fine on my test Azure instance, but then I wanted to deploy to production I got the following error \*\*\* An error occurred during deployment plan generation. Deployment cannot continue. Failed to import target model \[dbname\]. Detailed message Unable to reconnect to database: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Unable to reconnect to database: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The wait operation timed out Turns out SQLPackage.exe was connecting OK, as if I entered an invalid password it gave a different error, so it had made the connection and then died. ...