Gets the Database Engine edition of the instance of SQL Server installed on the server. 1 =Personal or Desktop Engine 2 =Standard ...

Gets the Database Engine edition of the instance of SQL Server installed on the server.
1 =Personal or Desktop Engine
2 =Standard (This is returned for Standard, Workgroup and Business Intelligence.)
3 =Enterprise (This is returned for Enterprise, Enterprise Evaluation, and Developer.)
4 =Express (This is returned for Express, Express with Advanced Services, and Windows Embedded SQL.)