$result = mssql_query($SQL); $row = mssql_fetch_array($result); echo "<pre>"; var_dump($row); echo "</pre>"; //antes del loop while