Comments
Sort by recent activity
SOLVED: My issue is addressed in this post. https://forum.red-gate.com/discussion/87195/programmable-objects-disabled-in-invoke-databasebuild I re-read it carefully and saw that my cmdlets were on the older version. Adding <DeployChangesForProgrammableObjects>True</DeployChangesForProgrammableObjects> to the project solved it. The default setting is False. But what remains confusing to me is that the Azure Devops add-ons i had been using behaved differently. Deployments done via these add-ons were properly including the programmable objects even without the additional .sqlproj option. So there may be a version mismatch there which threw me. / comments
SOLVED: My issue is addressed in this post.https://forum.red-gate.com/discussion/87195/programmable-objects-disabled-in-invoke-databasebuild I re-read it carefully and saw that my cmdlets were on t...
After re-reading this carefully, I see that my issue was in part due to my being on the older version of SCA (4.2.20189). Adding the option below solved the issue: <DeployChangesForProgrammableObjects>True</DeployChangesForProgrammableObjects> / comments
After re-reading this carefully, I see that my issue was in part due to my being on the older version of SCA (4.2.20189). Adding the option below solved the issue:<DeployChangesForProgrammableObjec...
I am having the same issue. When I run Invoke-DatabaseBuild, I see: WARNING: DbBuildTask: Warning C:\Users\ullull\source\repos\_SSISDB\_Database\CSI_DW_Migrations\Programmable Objects\ETL\Functions\DelimitedString_Tokenize.sql(0,0): Programmable Objects are d isabled but there are 1 script(s) present in the Programmable Objects folder (eg. "Programmable Objects\ETL\Functions\DelimitedString_Tokenize.sql"). These scripts will not be included in the build. If you wish to include them in the build, please enable Programmable Objects in Project Settings. I am new to SCA and do not know why my programmable objects are being excluded. It is not clear where Project Settings are defined. If it's in the .sqlproj file, it is already configured with <ProgrammableObjectHandling>UseRepeatableScriptsForAllObjects</ProgrammableObjectHandling> So that's not it. So my question remains: why are programmable objects being excluded and what do I need to change to include them? I do not follow the poster's comment about specifying a server on Invoke -DatabaseBuild. I did exactly that to no effect: $ValidatedProject = $MyProject | Invoke-DatabaseBuild -TemporaryDatabaseServer $Db02Conn / comments
I am having the same issue. When I run Invoke-DatabaseBuild, I see: WARNING: DbBuildTask: Warning C:\Users\ullull\source\repos\_SSISDB\_Database\CSI_DW_Migrations\Programmable Objects\ETL\Function...
Ok –
progress! This gets the tests running: - task: RedgateSqlChangeAutomationBuild@4 inputs: operation: 'Test SQL Change Automation Project' sqlProj: '_Database\CSI_SSIS' tempServerType: 'sqlServer' tempServerName: '(localdb)\MSSQLLocalDB' tempDatabaseName: 'CSI_SSIS' authMethod: 'windowsAuth' testAdvanced: true requiredVersionOfDlma: 'latest' Relevant log output: [image] / comments
Ok –
progress! This gets the tests running:- task: RedgateSqlChangeAutomationBuild@4 inputs: operation: 'Test SQL Change Automation Project' sqlProj: '_Database\CSI_SSIS' tempServerType: ...
More interesting behavior observed: 1. made the change to the baseline script noted here:
https://documentation.red-gate.com/sca/getting-started/system-requirements/supported-sql-server-versions/sql-change-automation-and-amazon-rds. 2. Re-ran New-DatabaseReleaseArtifact and Use-DatabaseReleaseArtifact 3. Observed no change in behavior. But this time, i recognized that the baseline script (Migrations\1.0.0-Baseline\001_xxxx.sql) had not executed, whereas the "changes" scripts (Migrations\1.1.0-Changes\002-009) appeared to execute. So i executed the baseline script manually. 4. Re-ran New-DatabaseReleaseArtifact and Use-DatabaseReleaseArtifact. This time, no stackdump. Here's the result: 1 migration(s) baselined, 19 migration(s) deployed successfully ----- executing post-deployment script "Post-Deployment\01_Finalize_Deployment.sql" ----- Deployment completed successfully. Attempting to write snapshot to database Inserting schema snapshot (1 rows affected) WARNING: xp_logevent failed to log deployment for SQL Monitor. SQL script failed to execute: The EXECUTE permission was denied on the object 'xp_logevent', database 'mssqlsystemresource', schema 'sys'. Release artifact deployed successfully I unsure about whether the warning is to be ignored or not, but the RDS database appears to be where I need it to be now. I will try some end-to-end test releases with no manual intervention to confirm. / comments
More interesting behavior observed: 1. made the change to the baseline script noted here:
https://documentation.red-gate.com/sca/getting-started/system-requirements/supported-sql-server-versions/...