title: Updating a column causes database error
body: <p>I'm trying to replace email addresses with a development email address so I can test my email-sending functions.</p>
  
  <p>The function below causes my webpage to stop responding and when I try to look at the tables in SQL Server Management 2008, I'm unable to. I believe the issue is with the line</p>
  
  <pre><code>$scrub = sqlsrv_query($conn, "UPDATE " . $tName . " SET DCAEmail='test@test.edu'");
  </code></pre>
  
  <p>I'm not sure, however. The entire function: </p>
  
  <pre><code>function scrubEmail($conn){
     $tableNameList = array();
     $getTableName = sqlsrv_query($conn, "Select Name FROM sys.tables");
     while($row = sqlsrv_fetch_array($getTableName)){
        if($row['Name'] !== "sysdiagrams"){
          $tableNameList[] .= $row['Name'];   
        } 
      }
  
      foreach($tableNameList as &amp;$tName){
          $hasDCAEmail = sqlsrv_query($conn,  "SELECT DCAEmail from " . $tName  );
          if($hasDCAEmail){
              $scrub = sqlsrv_query($conn, "UPDATE " . $tName . " SET DCAEmail='test@test.com'");
              if(!$scrub){
                  die( print_r( sqlsrv_errors(), true));
              }
          }
      }
  }
  </code></pre>