SDU Tools: SQL Server Type
Our free SDU Tools for developers and DBAs, now includes a very large number of tools, with procedures, functions, and views. A request that I had a while back was to have a function that returned what type of SQL Server the code was being executed on. So we added the SQLServerType function.
It takes no parameters.
As this is an enumerated value, it’s just a CASE statement.
Find out more
You can see it in action in the main image above, and in the video here. The full current version of the code is also shown below:
2025-02-19