11

I am trying to run the classic asp application which uses RDS (Remote data service) on Windows Server 2008

<object id="RDS_ACCOUNTS" CLASSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33"
 height=1 width=1 VIEWASTEXT>

Following is the code written in window_load() event

RDS_ACCOUNTS.ExecuteOptions = 1
RDS_ACCOUNTS.FetchOptions = 1
RDS_ACCOUNTS.Server = "<%=strServer%>"
RDS_ACCOUNTS.Connect =Connect
RDS_ACCOUNTS.SQL = "SELECT ACCOUNT_TYPE_ID, CLIENT_ID, ACCOUNT_TYPE_DESC 
   FROM TBL_AP_CHART_ACCOUNT_TYPE 
   WHERE CLIENT_ID=<% = Session("ClientID")%> 
   ORDER BY ACCOUNT_TYPE_DESC "
RDS_ACCOUNTS.Refresh
Dim AccountRst
Set AccountRst = RDS_ACCOUNTS.Recordset

Here connect variable have its value from RDSConn.inc file which have the value

Handler=MSDFMAP.Handler;Data Source=AMTAPP;

This handler picks value from msdfmap.ini file located in C:\Windows folder which contains the OLEDB Connection Stringor DSN Name. But when i run this code it gives me exception

Object or Provider is not able to perform the requested operation on RDS_ACCOUNTS.Refresh method.

RemS
  • 272
  • 1
  • 9

0 Answers0