To use ODBC logging, you first create a database containing a table with the appropriate fields for the logging data. Next you use Control Panel to give the database a system Data Source Name (DSN), which is a name that the ODBC software will recognize for the database. Then you supply IIS with the name of the database and table. If a user name and password are needed for accessing the database, you must also specify these in IIS.
To prepare for ODBC loggingNote Included with IIS is a SQL template file which can be run in a SQL database to create a table that will accept log entries from IIS. The file is called Logtemp.sql and is available in the \IISRoot directory. If you accepted the defaults offered in Setup, the \IISRoot directory is in \WindowsRoot\System32.
Field Name | Field Type |
ClientHost | varchar(255) |
Username | varchar(255) |
LogTime | datetime |
Service | varchar(255) |
Machine | varchar(255) |
ServerIP | varchar(50) |
ProcessingTime | int |
BytesRecvd | int |
BytesSent | int |
ServiceStatus | int |
Win32Status | int |
Operation | varchar(255) |
Target | varchar(255) |
Parameters | varchar(255) |
A driver-specific dialog box appears.
The ODBC Logging Properties dialog box appears.
For information about enabling or disabling logging for individual directories within the Web or FTP site, see Enabling Logging.