title: c# sql server backup percent read
body: <p>sql command</p>
  
  <pre><code>BACKUP DATABASE [databasesample] TO  DISK = N'D:\kkk\test.bat' WITH  INIT ,  NOUNLOAD , 
  NAME = N'name test',  NOSKIP ,  
  STATS = 5,  DESCRIPTION = N'test',  NOFORMAT 
  </code></pre>
  
  <p>result</p>
  
  <pre><code>5 percent processed.
  10 percent processed.
  15 percent processed.
  20 percent processed.
  25 percent processed.
  30 percent processed.
  35 percent processed.
  40 percent processed.
  45 percent processed.
  50 percent processed.
  55 percent processed.
  60 percent processed.
  65 percent processed.
  70 percent processed.
  75 percent processed.
  80 percent processed.
  85 percent processed.
  90 percent processed.
  95 percent processed.
  Processed 30960 pages for database 'databasesample', file 'sample_Data' on file 1.
  100 percent processed.
  </code></pre>
  
  <p>I want to catch the percentage with C#. I think <code>BeginExecuteNonQuery()</code> function is done. but I do not know exactly how. Suggestions?</p>