예제 #1
0
 /// <devdoc>
 /// Execute the actual Xml Reader call.
 /// </devdoc>
 private XmlReader DoExecuteXmlReader(SqlCommand sqlCommand)
 {
     try
     {
         DateTime  startTime = DateTime.Now;
         XmlReader reader    = sqlCommand.ExecuteXmlReader();
         Instrumentation.CommandExecuted(startTime);
         return(reader);
     }
     catch
     {
         Instrumentation.CommandFailed(sqlCommand.CommandText, ConnectionStringNoCredentials);
         throw;
     }
 }