Hi GDMVU,
Save the below code as CF9_RemoveOdbc.cfm
<cfscript>
//login using admin
//createObject("component","cfide.adminapi.administrator").login("adm inistrator_password");
createObject("component","cfide.adminapi.administrator").login("admin ");
//instantiate datasource object
myObj = createObject("component","cfide.adminapi.datasource");
</cfscript>
<cfscript>
writeOutput("Removing ODBC Services...<br>");
returnValue = myObj.removeODBCservice();
writeOutput("ODBC Services removed");
</cfscript>
Save the below code as CF9_InstallOdbc.cfm
<cfscript>
//login using admin
//createObject("component","cfide.adminapi.administrator").login("adm inistrator_password");
createObject("component","cfide.adminapi.administrator").login("admin ");
//instantiate datasource object
myObj = createObject("component","cfide.adminapi.datasource");
</cfscript>
<cfscript>
writeOutput("Installing ODBC Services...<br>");
returnValue = myObj.installODBCservice();
writeOutput("ODBC Services installed");
</cfscript>
Now try the following steps:-
- Change admin password in above .cfm pages for your CF 9 server.
- Use RemoveObdc cfm page first to remove any existing faulty/corrupted Odbc services.
- Use InstallOdbc Odbc services to install Odbc services there.
Hope this helps.
Regards,
Anit Kumar