#define compileErrorsNot

using System;
using System.Data;
using System.Data.SqlTypes;

class app
{
	static void Main()
	{

		decimal d = 0;
		SqlDecimal sd = SqlDecimal.MaxValue;
		try
		{
			d = sd.Value;
		}
		catch
		{
			Console.WriteLine("convert to decimal failed");
		}
		Console.WriteLine(sd);
		Console.WriteLine(d);
	}
}


