You can use QTP to interact with databases using ADODB or the Active X Database Object model. This way you can interact with SQLServer, MySQL, Oracle, Excel, Access, and Sybase.
There are four methods that we need to use when interacting with databases:
You will want to specify a Provider when using the connection method.
ADSDSOObject - Active Directory Services
Microsoft.Jet.OLEDB.4.0 - Microsoft Jet databases
MSDAIPP.DSO.1 - Microsoft Internet Publishing
MSDAORA - Oracle databases
MSDAOSP - Simple text files
MSDASQL - Microsoft OLE DB provider for ODBC
MSDataShape - Microsoft Data Shape
MSPersist - Locally saved files
SQLOLEDB - Microsoft SQL Server