Problem with Liquibase sql file with runOnChange:true Version 3.8 - version

I try to execute a stored procedure on every liquibase update, but 'am not able to accomplish this.
The first line of the sql Script containes the following information:;
--changeset test:1.122.-plsql endDelimiter:"\n/" runOnChange:true validCheckSum:any runAlways:true runOrder:first
But on a second run this script is not executed.
Any Idea what is going wrong?

The solution is simple, I overlooked to add the liquibase line
--liquibase formatted sql
So Issue is solved

Related

SSIS Package FAILS in DTExec.exe "There was an error in the Precedence Constraint"

I need to create a Package that, if doesn't find any rows on a certain table, execute another package.
In order to get that working, I created an SQL Task to check rows, a proper variable, and an expression. If I execute the package inside the SSIS, It works perfectly fine, but if I use the command DTExec.exe on a .BAT, It fails saying that theres an error on the "PRECEDENT CONSTRAINT".
Any Idea what is going on?
thanks a lot!
1ÂșEDIT:
Here are the pictures with the pipeline and the error. At first I th
ought that maybe my Variable was wrong, but as you can see, even with a statement as if we are in 2023, just continue the pipeline, still fails.
Thanks!!

How I know any particular one command is failed while deploying/publishing data in Database?

I have created database project in visual studio 2013. Project build successfully . In this project I have inserted some test data in post deployment. If any data failed to insert then how can know the one of script is failed at particular location.
Actually I want to rollback all the thing if any command is failed from script file itself. Since SQL Server 2012 is not supporting rollback from pre/post deployment script.
The result window will give you the line and details of any error, it is a bit annoying as it will sometimes show the text of the beginning of the script but the error line number will be correct.
General things you should do is to make sure your insert scripts are re-runnable and then if you really can't see the error you can run the script yourself to debug it.
I would really recommend using MERGE statements to do the inserts :)
I also generally recommend using sqlpackage.exe to push to local Deb instances rather than the vs publish, see:
https://the.agilesql.club/blog/Ed-Elliott/Visual-Studio-SSDT-Publish-My-Personal-Best-Practices
Ed

Need script to change sql server job step properties

currently im using Sql server 2008 r2 (will soon be upgrading to 2014). I need some help in changing job step properties using script.
I have around 20 jobs with each job having 4 steps.
I'm trying to change the below highlighted option using sql server script. Because manually changing all these options is a difficult task.
Please help me in writing script to remove the output log path, uncheck append to log, check log to table and check append log to table options.
I got the script
EXEC msdb.dbo.sp_update_jobstep #job_id=N'5e998659-8539-45d2-bf4f-874375c0a111', #step_id=1 ,
#output_file_name=N'',
#flags=16

What is the easiest way of executing a series of T-SQL scripts sequentially without the command prompt?

I am not allowed to use command prompt, unfortunately.
Currently I use SQL Server Management Studio, but I could switch to VS2010, if it was easier there.
Running a set of scripts in a specific order, especially when doen manually, is a bit tedious.
Thank you very much for any suggestions you might have.
You can edit and run SQL scripts in SSMS if this helps
You can use :r filename.sql command in the SQLCMD script command to execute a sql script
:r first.sql
:r second.sql
One method would be to create a job with no schedule, then you can run it manually.
Each step in the job could be one of your scripts.
The benefit of using a job would be that you could set up alerting and get an email if any step failed.

Can I run a Firebird stored procedure from a batch file, or is there an ISQL equivalent

I want to run a Firebird stored procedure from a batch file or similar on a desktop. The stored procedure contains insert statements and update statements with if possible parameters that I would like to pass.
Any ideas or other suggestions would be appreciated.
There is a Firebird isql tool, it even has a link in the start menu group. You can use this in your script. For the syntax see for example Stefan Heymann's site.
I think you can also try the EXECUTE BLOCK syntax

Resources