Windows Phone 7 – Dynamically load XAML

Sometimes it is necessary to load an element like a shape dynamically from an file, resource or directly from a string into the corresponding API classes. In Silverlight for Windows Phone 7 this can be done with the use of the XamlReader Class. This class can be found in the System.Windows.Markup namespace. With the use…


Recursive delete procedure

The following procedure can be used in development systems to remove data from tables which are referenced by other tables. The procedure recursively follows all the references and deletes all referening tables first. Be careful, when you use it! All data of all referenced tables will be deleted. create procedure temp.RecursiveDelete(     @tablename nvarchar(1000)     ,@schemaname nvarchar(1000))as…

1