automated test on sql code check in
jscaria
Posts: 3 New member
We are using the red gate to checking the code .I need to do a validation to verify that no print statements are hanging out there on the sql code .Please guide
Answers
Hi @jscaria
Thank you for reaching out on the Redgate forums regarding your code validation request.
Unfortunately, there isn't a way directly through SQL Change Automation to check for code like this.
It may be possible using SQL Test / t-sqlt as a way to do these checks as part of a deployment pipeline.
I had a look at their existing tests but couldn't see one specifically for your requirements however it may be a possibility to create your own custom test
If wanting to investigate this angle further I would suggest the t-sqlt community site - https://groups.google.com/g/tsqlt or stackoverflow page - https://stackoverflow.com/questions/tagged/tsqlt
Could you tell me a bit more about the use case around detecting print statements, please?
If we can understand this then it will help us design the best mechanism for solving the problem.