I used to know how to do this but have forgotten. How do I set a variable to an item returned by a query using TSQL (SQL Server). I have delcared my @variable and need to set it to an item returned by ...
I am using TSQL to extract data and drop it to XML. The problem is that the system consuming this XML file must have the xmlns="blah" portion appearing first, otherwise it fails. How the heck can I ...