Source Code for http://194.8.136.102/iisdev/odbc/access.asp

COLOR LEGEND
Server Side Script
Client Side Script
Hyperlink
Include
Frames
Comments
Object Code Link
Standard HTML and Text


<%  @LANGUAGE=VBSCRIPT %>
<%  Option Explicit %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="generator" CONTENT="Allaire HomeSite 4.0">
<TITLE>ODBC Access @softwing.com</TITLE>
</HEAD>

<BODY BGCOLOR=#FFFFFF>

<%
Dim xObj, strDriver, strDSN, retval
Set xObj = Server.CreateObject("Softwing.OdbcRegTool")
strDriver = "Microsoft Access Driver (*.mdb)"
strDSN = "DSN=New Access Data Source" & vbNullChar & "Description=New Access Data Source" & vbNullChar
strDSN = strDSN & "DBQ=c:\databases\test.mdb" & vbNullChar & vbNullChar
retval = xObj.CreateDSN(strDriver, strDSN)
If retval = True then Response.Write "DSN Creation successful." else Response.Write "DSN Creation failed."
%>

</BODY>
</HTML>