title: What datatype is the Exception variable?
body: <p>I have a code running where I need to save the exceptions into a SQL Server database using the following code: </p>
  
  <pre><code>    public void AcieveSomething()
      {
         //Datatype Declarations 
          string ApplicationName = "App_Name";
          string ClassName = "Class_Name";
          string MethodName = "Achieve Something";
  
         try
         {
           //Main part of the code
         }
  
         catch(Exception ex)
         {
           //Calling function to input the error into DB
            ErrorLog.WriteErrorLog(ex, ApplicationName, ClassName, MethodName);
         }
     }
  </code></pre>
  
  <p>If I'm going to put the <code>ex</code> value into DB, what is the datatype for <code>Exception ex;</code> in SQL Server database ?</p>