The MaxNumericPrecision property returns the greatest decimal precision available for exact numeric data types, including decimal and numeric.
object.MaxNumericPrecision
object
Expression that evaluates to an object in the Applies To list
Long
Read-only
HRESULT GetMaxNumericPrecision(LPLONG pRetVal);