Home
TrafMeter Web Online Help
TrafMeter
What is TrafMeter?
License Agreement
TrafMeter Editions
Registration Info
How To Contact Us
Description
System requirements
Introduction
Installation Package
Installation Guide
Opening the configuration
Selecting NIC
Capturing the traffic
TrafMeter Service Monitor
User authentication
Sending SMS
NAT
Traffic Shaper
Viewing the Traffic Counters
Processing the captured packet
Logging the Application Events
Logging the denied packets
Firewall
Zeroing counters
Users
Filter Manager
Filter Editor
Rule Editor
IP Address Groups
Database Connection String
XML Traffic Reports
Using XSL formatting
The example of XSL formatting
The example of XSL formatting (2)
Traffic Logging into the Database
Database table
Packet Logging
Into the plaintext file
Filename template
Into the database
Database Table
Microsoft SQL Server Syntax
MySQL Server Syntax
Microsoft Access Syntax
Useful SQL scripts
Host Header Logging
Into the plaintext file
Into the database
Database Table
Microsoft SQL Server Syntax
MySQL Server Syntax
Microsoft Access Syntax
Result Codes
Counting VPN packests
Table for storing Filter Names
Registry Settings
FAQ
TrafMeter FAQ
Traffic counting with TrafMeter FAQ
Configuration examples
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
Example 7
Example 8
Knowledge base
IP protocol number
Type Of Service (ToS) field
MAC address
Promiscuous mode
Ethernet hub
Ethernet switch
Ethernet
NAT router
HOWTO: Creating an OLE DB Connection String for Microsoft SQL Server
HOWTO: Creating an OLE DB Connection String for an Access
HOWTO: Creating an OLE DB Connection String for MySQL
Manual editing of the XML files
Zeroing counters using TrafReset
How to enable
Reloading the Filterset

Database Connection String (OLE DB Connection string)

TrafMeter can record the headers of the captured packets or write its own counters into the database. To communicate with the database, TrafMeter uses the ADO (ActiveX Data Objects) component, which is built-in in Microsoft Windows. You should specify Database Connection String in TrafMeter, if you want to use the database as a destination for any logging facility.

ADO uses the Database Connection string (OLE DB Connection string) to define the specifics of the data source. Database Connection String provides the information (in the form of parameters and their values) that is required for the server to establish the connection. Each type of the databases has a specific parameters set, which you must specify the values for; these are the required parameters. Some databases also provide the optional parameters that you can specify to implement the special features. Such a string might look like this:

SQLOLEDB.1; Password=TrafMeter; Persist Security Info=True;
User ID=TrafMeter; Initial Catalog=traffic; Data Source=SERVERNAME

A database connection string can be stored in an external file, also known as "User Data Link file" (UDL) with an extension .udl. You can use a UDL Wizard to create the UDL file. Having created the UDL file, you can refer to it in the connection string as follows:

File Name=c:\DataLinks\trafmeter.udl

If you change the database or network configuration, you can simply modify the UDL file and distribute its new version.

See also:

 Note

  • To view the ADO version installed on your computer, launch TrafMeter Administrative Console, open the "About" dialog box and click the "Support Info" button
  • It is strongly recommended to use ADO 2.7 or higher with TrafMeter. The latest version of ADO (also known as MDAC) is available free for download from the Web at the following URL: http://www.microsoft.com/data

 

This HTML Help has been published using the chm2web software.