I got a row structure looks like ID bigint, ScanRept XML
I want to wind up with a file named 4.xml containing just the xml from the ScanRept column where the ID number is 4.
I don't want to do it interactively (by going into Manager Studio, finding the row, right-clicking the field and doing Save AS) - that's what I'll do if I can't figure out a better way.
I do have C# available; if this is doable with sqlcmd, that's my preference (cause there will probably be a lot of variations I can't anticipate right now).