Programmatically detect SQL Server Edition

前端 未结 5 1301
-上瘾入骨i
-上瘾入骨i 2021-01-05 00:43

I\'m using C# with SMO and attempting to detect what edition of SQL Server (e.g., enterprise, standard) I\'m connecting to. I know how to get the version information, but t

5条回答
  •  失恋的感觉
    2021-01-05 01:08

    It looks like you might be able to do it via SMO and the Server object. There are properties like Information.Edition which looks like it should do what you want.

提交回复
热议问题