Use the Easysoft XML-ODBC Server to access ODBC databases from an Active Server Page (ASP) on Internet Information Server (IIS).
Register with us now to download a fully functional free trial version of the Easysoft XML-ODBC Server.
To use XML to access ODBC databases from an ASP running under IIS:
For information about how to do this, see the Easysoft XML-ODBC Server documentation.
Replace InstallDir with the Easysoft XML-ODBC Server installation directory, by default, /Program Files/Easysoft.
regsvr32 %WINDIR%\System32\xmlodbc.dll
To get help with registering DLLs, type:
regsvr32
<% set xmlODBC=Server.CreateObject("Easysoft_XML_ODBC.xmlODBC") xmlODBC.Server = "my_xml_server_hostname" xmlODBC.Port = 8895 txtDSN = "DSN=my_system_dsn" txtSQL = "select * from my_table" If Not xmlODBC.Connect Then response.write "Connect Error : " & xmlODBC.ErrorState _ & " : " & xmlODBC.ErrorText End If xmlODBC.Execute txtSQL, txtDSN If Len(xmlODBC.RawData) < 1 Then response.write "SQL Error : " xmlODBC.ErrorState _ & " : " & xmlODBC.ErrorText End If response.write xmlODBC.RawData xmlODBC.Disconnect %>
Replace my_xml_server_hostname with the name of the machine on which the XML-ODBC Server is running. Replace my_system_dsn with the name of your System data source on the XML-ODBC Server machine. Replace the txtSQL value with a valid SQL statement.
For more information about the properties, collections and methods that xmlodbc.dll contains, see InstallDir/XML-ODBC Server/Clients/VB/README.txt.