Microsoft.SQLServer.Smo EnumDatabasePermissionInfo

Dhanaraj D 1 Reputation point
2022-10-03T09:12:44.417+00:00

Hi Everyone,

I am trying to compare the database servers using Microsoft.SQLServer.SMO. While checking the EnumDatabasePermission method I am getting the Argument out of range exception.

My SMO Version is 10 and My SQL Server version is 2019. Please refer the below screenshot for reference. Please help me to resolve this issue

246878-image.png

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,713 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,570 questions
{count} votes