Small SQL Server fixes. 

Some improvements we discussed only really a temporary fix until there is a more consistent way to get the metadata. Probably reverting to the old way using the `information_schema`. Anyway this should make the SQLServer more solid, well at least not nuke itself, when it can't process a function / proc. I'll focus on making things lazy next.