Welcome back to another quick blog, about something I just learned about.
Am playing around with Always Encrypted for the first time. I was just following along the basic tutorial and encrypted some columns in my AutoDealershipDemo database. But then I decided to go crack open the data page using my friend DBCC PAGE.
WITH TABLERESULTS
Because I only ever use DBCC PAGE() once every so often, I did a quick search to refresh on the syntax. And what I found was someone who used something I’d never seen before…
DBCC PAGE(aa, bb, cc, dd) WITH TABLERESULTS
“WITH TABLERESULTS”? What is this…?
WOW – for me, this makes the output SO much easier to consume!!!
And what of that encrypted data?
And if you’re curious, here’s what I was really after.
See how I had encrypted the VIN, InvoicePrice, MSRP, and DateReceived columns in my test table. Pretty cool to see it scrambled up and interesting to see how it consumed a heck of a lot more space in-row.
DBCC Commands
Another quick search tells me that you can also use “WITH TABLERESULTS” with other DBCC commands too. I didn’t look much more into it since I got what I wanted, but thought I’d share this neat tidbit.
Thanks for reading!
One thought on “Quickie Blog – DBCC PAGE… WITH TABLERESULTS?!?”