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 String
or 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.
RDS_ACCOUNTS.Connect
directly equal to the OLEDB string, rather than usingMSDFMAP.Handler
? – OsteoplasticstrServer
andSession("ClientID")
come from? – VennRDS_ACCOUNTS.Server = strServer
notRDS_ACCOUNTS.Server = "<%=strServer%>"
? – Venn<%= strServer %>
as a server-side variable to theRDS_ACCOUNTS.Server
which is running in client side VBScript. – Large