I'm going to have to create an XML output in XBRL format right out of SSMS (through a stored procedure or a function or something else which I will have to code).
My issue is that I have never worked with XML on SQL Server (although I've googled it a bit now and kind of got the idea of it) and what examples I found while searching were using SSIS and packages to create XBRL files.
I would like to know if it is possible to do it this way, using SSMS (if it's not too much hassle with this tool) and if anyone has tried it and succeeded, and maybe I can get some advice what resources to look for (books, links etc.) or examples.
You can create XML data quite easily from your data, using the
FOR XML
query modifier (see http://technet.microsoft.com/en-us/library/ms178107.aspx ).However, creating a "file" involves file IO, which is not what SQL server is for. You could use a CLR stored procedure for this, or a separate application.