|
Creating an ODBC Connection (Windows 2000 Server)
About Microsoft ODBC.
Open Database Connectivity (ODBC) is a widely accepted application
programming interface (API) for database access. It is based
on the Call-Level Interface (CLI) specifications from X/Open
and ISO/IEC for database APIs and uses Structured Query Language
(SQL) as its database access language. (Microsoft)
In English, that statement from Microsoft means that you
can use ODBC as a medium for reading from, and adding to almost
any type of database for your web applications. An API is
required because there are so many types of Database you could
be using (FoxPro, MS Access, SQL Server, Paradox..etc..) and
in an ideal world you should only need one Language for communicating
with these databases, hence the ODBC API.
This tutorial will demonstrate the steps required to set up
Microsoft ODBC for an existing Microsoft Access 97 database
in Windows 2000 Server (although exactly the same steps could
be used to set up an existing Microsoft Access 2000 database).
To find out more about Microsoft ODBC, visit the following
site:
http://www.microsoft.com/data/odbc/
| 
|
|
 |
| |

1. Creating and storing a database.
In this case, I have two disks on my server. One hosts
the OS and the other is for storage. Therefore, the
intranet.mdb database is going to be hosted in a directory
called "DBase" on my D: drive (shown above
in Fig 1). Simply make a new directory and drop your
database into it. It is a good idea to keep the name
simple, avoiding capitals and using underscore instead
of spaces.
It's worth pointing out at this stage that because
it's your server that's going to be doing all the work,
you don't need to store your database within your site.
In fact, if your server is one of several in a Network,
you don't even need to store it on your Web Server. |
|
 |
|
 |
|