How to script Database connection in QTP

How to script Database connection in QTP

Postby bhavya » Wed Mar 13, 2013 2:48 pm

Create Database connection using VB script:

Set Conn = CreateObject("ADODB.Connection" )
str="DRIVER={MySQL ODBC 5.1 Driver};SERVER=localhost;DATABASE=employee;user id=root ; password=stc"
Conn.open str
bhavya
 
Posts: 54
Joined: Mon Feb 25, 2013 4:09 pm

Re: How to script Database connection in QTP

Postby bhavya » Wed Mar 13, 2013 2:49 pm

Create Database connection using VB script:

Set Conn = CreateObject("ADODB.Connection" )
str="DRIVER={MySQL ODBC 5.1 Driver};SERVER=localhost;DATABASE=employee;user id=root ; password=stc"
Conn.open str
bhavya
 
Posts: 54
Joined: Mon Feb 25, 2013 4:09 pm


Return to QTP - Quick Test Professional, HP UFT Online Training - Automation Testing

Who is online

Users browsing this forum: No registered users and 2 guests

cron