• I suppose one could write this in C# itself as well using the SMO classes. String operations are a bit more, uh, pleasant in C#.