I want to corrupt a page inside a certain table and restore it.
How do I do that on SQL Server?
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.Sign up to join this community
An alternative is to use
DBCC WRITEPAGE as Simon Lieu describes.
Erik Darling also shows you a way to use
DBCC WRITEPAGE, generating dynamic commands with