SDU Tools are free tools and example T-SQL code for SQL Server developers and DBAs. The function SQLServerType can be used to determine what type of SQL Server the commands are being executed against. For example, this can be useful for working out if you are on SQL Server or Azure SQL Database.
To join SDU Insiders and get all our free resources, including SDU Tools, see the details at http://sdutools.sqldownunder.com