<div>Hi ,</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I tried to query the FeatureData Source (SQL Server 2005 view -odbc),</div>  <div>&nbsp;</div>  <div><BR>&nbsp;&nbsp;$sql="select&nbsp; ownername_th,epz_type,province_name_th from V_estates where estate_no=10";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $featureResIdSql = new MgResourceIdentifier("Library://VV/Data/sql_odbc.FeatureSource");<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;$sqlDataReader=$featureService-&gt;ExecuteSqlQuery($featureResIdSql,$sql);</div>  <div><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while($sqlDataReader-&gt;ReadNext())</div>  <div>{</div>  <div>&nbsp;&nbsp; $owner= $sqlDataReader-&gt;GetString('OWNERNAME_TH');<BR>&nbsp;&nbsp; $epz= $sqlDataReader-&gt;GetString('EPZ_TYPE');<BR>&nbsp;&nbsp; $province= $sqlDataReader-&gt;GetString('PROVINCE_NAME_TH');</div>  <div>&nbsp;</div>  <div>echo $owner;</div> 
 <div>echo $epz;</div>  <div>echo province;<BR></div>  <div>}</div>  <div>&nbsp;</div>  <div>&nbsp; $sqlDataReader-&gt;Close();</div>  <div>&nbsp;</div>  <div>Although i able to perfom sql query&nbsp;by passing ID and it use to give result from the SQL Server 2005 Views,and don't&nbsp;show any exception or error in the task frame but when i opened the Server Error Log file it use to create stack trace &nbsp;for the error-<FONT color=#ff0000>An exception occurred in FDO component.</FONT><BR></div>  <div>&nbsp;</div>  <div><FONT color=#ff0000>&lt;2007-09-12T14:43:59&gt; &nbsp;&nbsp;&nbsp;Administrator<BR>&nbsp;Error: An exception occurred in FDO component.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Query ended <BR>&nbsp;StackTrace:<BR>&nbsp; - MgFeatureServiceHandler.ProcessOperation line 83 file c:\build_bond_area\bond_nightly\build_41.3\ent\os\server\src\services\feature\FeatureServiceHandler.cpp<BR>&nbsp; - MgOpGetSqlRows.Execute line 102 file
 c:\build_bond_area\bond_nightly\build_41.3\ent\os\server\src\services\feature\OpGetSqlRows.cpp<BR>&nbsp; - MgServerSqlProcessor.GetRows line 79 file c:\build_bond_area\bond_nightly\build_41.3\ent\os\server\src\services\feature\ServerSqlProcessor.cpp<BR>&nbsp; - MgServerSqlDataReader.ReadNext line 76 file c:\build_bond_area\bond_nightly\build_41.3\ent\os\server\src\services\feature\ServerSqlDataReader.cpp&nbsp;An exception occurred in FDO component.<BR>Query ended <BR></FONT><BR>I am unable to understand how to debug this error or what i am missing in the code.</div>  <div>&nbsp;</div>  <div>Thks</div>  <div>Max</div><p>&#32;
      <hr size=1>Tonight's top picks. What will you watch tonight? 
<a href="http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http://tv.yahoo.com/ 
">Preview the hottest shows</a> on Yahoo! TV.