Thanks for the help, Joe, your account has been updated.
This would work but there is a catch - the page templates also have records in the sf_PageContentBase
table. The page templates have NULL values in the templateID column and this must be the same way after your code is executed. Their records should not be touched.
So in pseudo code the query would be something like:
In the sf_PageContentBase
For every record which has ItemType != "CmsTemplateContent"
= "Your master page" and TemplateID
= "Your template ID"
All the best,
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.