Here is how you can find out the version of your SQLServer with a query.
Because I always forget how to export data from the SQLServer into a CSV file I will post it up here.
There is a handy command to inspect an open transaction running in a Microsoft SQLServer.