MSSQL Data Validation Examples: Text Fields
Channel: DataResearchLabs
Date: 21/08/2021

This video walks you through 24 text field data validation test case examples. There are validation tests for nulls and nullstrings, no leading or trailing spaces, in or not in a value ilst, and text field length.  There are upper case, lower case, alpha, and numeric characters checks.  There are bad characters tests for single quotes, quotes, carriage returns, line feeds, tabs, non-breaking-spaces, em-dashes, vertical tabs, form feeds, next lines, and many other funky character intercepts.  There is a validation test for only allowing or only disallowing specific characters in a [list] you specify.  Finally there are "soft" data conversion tests to verify a text field is numeric or one of many different date formats so you can intercept and notify with a rejection code prior to converting and erroring.

You can refactor and re-use the samples in your projects.  The scripts in the demo are all out on Github along with 66 total sample validation tests along with a basic and an advanced script for automating the tests.  


------- Chapter Timestamps (click to jump forward): -----------------------------
 0:00 - Intro
 0:07 - Introducing Rule Set #6 - Text Values
16:13 - How to Download SQL Scripts in this Video
17:47 - The End


Downloads:
- Rule Set #6: https://github.com/DataResearchLabs/sql_scripts/blob/main/mssql/data_validation/rule_set_06__text_values.md
- Multi-Platform Data Validation Scripts: https://github.com/DataResearchLabs/sql_scripts/blob/main/data_validation_scripts.md


Watch related playlist videos: 
- https://www.youtube.com/playlist?list=PLVHoUDdbskUSlZTVZmllGTdSuvyI4LBiE

Connect with me on social media:
- LinkedIn:  https://www.linkedin.com/in/mpiercead576/
- YouTube:  https://www.youtube.com/channel/UCQciXv3xaBykeUFc04GxSXA
- GitHub:  https://github.com/DataResearchLabs


Subscribe to my YouTube Channel:
- https://www.youtube.com/channel/UCQciXv3xaBykeUFc04GxSXA?sub_confirmation=1


#MSSQL #automation #datavalidation