The reason why I asked is, I like to try out the featured scripts, but like everyone else, I don’t have a lot of time to devote to them. So I appreciate anything the author can do to make it easier. (At this point I would also suggest considering using the "dbo" schema for public posts).

With your table creation and population code in place, I then got the following errors:-

Msg 402, Level 16, State 1, Line 6The data types ntext and varchar are incompatible in the equal to operator.Msg 207, Level 16, State 1, Line 6Invalid column name 'columnC'.Msg 402, Level 16, State 1, Line 5The data types ntext and varchar are incompatible in the equal to operator.Msg 207, Level 16, State 1, Line 5Invalid column name 'columnC'.

I had to change table1.columnb to be an nvarchar, and also standardise the "columnc" casing (unfortunately, we have case-sensitive servers). This resulted in no errors, but empty result sets.

By changing the where clause to "WHERE dbo.table2.columnb = 'properties'" I believe I am now getting the results that you expect.

Below is my amended version of your script. May be yiou could try it out in your environment and let me know?