Usage of tempServerTypeBuild option in RedgateSqlChangeAutomationBuild ADO task.
dbriskin
Posts: 7 Bronze 1
I have an existing pipeline that is using RedgateSqlChangeAutomationBuild@4 task and "localDB" value for tempServerTypeBuild option. This causes errors whenever the project contains syntax that's targeting Azure SQL Database, for example creating external tables. I was told that I need to use the option for tempServerTypeBuild that corresponds to Azure SQL DB, but I cannot find any documentation on how to do this. The closest I could find is a code snippet at the bottom of this page that shows an example using "sqlServer" option:
Any help from community will be much appreciated!
- task: RedgateSqlChangeAutomationBuild@4<br> inputs:<br> operation: 'Build SQL Change Automation Project'<br> sqlProj: 'northwind/northwind.sqlproj'<br> packageName: 'NW'<br> tempServerTypeBuild: 'sqlServer'<br> tempServerNameBuild: '(localdb)\MSSQLLocalDB'<br> tempDatabaseNameBuild: 'Northwind'<br> authMethodBuild: 'windowsAuth'<br> nugetPackageVersionSelector: 'Specific'<br> nugetPackageVersion: '1.0'<br> nugetPackageVersionUseBuildId: true<br> requiredVersionOfDlma: <span>'latest'</span>I don't know if this value works for Azure, or how to properly use the other options like "authMethodBuild", or even if this will fix my issue.
Any help from community will be much appreciated!
Tagged:
Best Answer
-
DanC Posts: 646 Gold 5Hi @dbriskin
Of course, here's the config when I convert:tempServerTypeBuild: sqlServer tempServerNameBuild: dancalvertesting.database.windows.net tempDatabaseNameBuild: 'SCA_Temp' tempTrustServerCertificateBuild: true authMethodBuild: sqlServerAuth usernameBuild: DanCalver passwordBuild: ********
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
Answers
You can change the connection to an existing database in Azure here:
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?