using System;
using System.Data.SqlTypes;
public class Program
{
public static void Main()
for(byte s = 0; s <= 29; s++)
for(byte p = 0; p <= 38; p++)
try
var dec = new SqlDecimal(p, s, true, 0, 0, 0, 0);
Console.WriteLine("{0}, {1}", p, s);
}
catch(Exception ex)
//Console.WriteLine("Error {0} {1}", p, s);
Console.WriteLine(SqlDecimal.MaxPrecision);