Adding case to allow sqlserver as well as other rdbms