I have created a stored procedure that uses dbcc checkdb on all userdatabases, if there are any errors detected it then collates the errors and formulates a html table and sends an html email to myself, if there are no errors it sends an email with text along the lines of 'no integrity errors found'.
There are no integrity errors regarding the database and so it does indeed successfully send me an email saying 'no integrity errors found'.
Now I am trying to test the error detection and collation, and to do so I have to create ideally multiple integrity errors but am at a loss as to how to do this on purpose, can this be done?
P.S. I'm using SQL Server 2019