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 and Workgroup.) 3 =Enterprise (This is returned for Enterprise, Enterprise Evaluation, and Developer.) 4 =Express (This is returned for Express, Express Edition with Advanced Services, and Windows Embedded SQL.)