git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21882 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -437,6 +437,9 @@ class Zend_Db_Adapter_Sqlsrv extends Zend_Db_Adapter_Abstract
$sql = "exec sp_columns @table_name = " . $this->quoteIdentifier($tableName, true);
$stmt = $this->query($sql);
$result = $stmt->fetchAll(Zend_Db::FETCH_NUM);
+
+ // ZF-7698
+ $stmt->closeCursor();
if (count($result) == 0) {
return array();