How can we connect WinRunner to DB(SQL Server) using code?(Not Record and Play Back)How to create DSN?

Showing Answers 1 - 2 of 2 Answers

pankaj bishnoi

  • Sep 29th, 2006
 

use the command db_connect("Session Name","Connection query");

That would be all,

regarding the syntax u can check the WR help

for keyword DB_CONNECT

thanks

pankaj

  Was this answer useful?  Yes

Srinivas Telkar

  • Oct 11th, 2006
 

The following navigation can be helpful to create DSN. Start ->Settings->Control panel->Performance and maintanance->Administrative tools->Data Sources->Click "Add" Button-> Select the driver(SQL Server)->Click "Finish"->type the Data source name and the description and Click on "Select "-> select the database name and press "OK".This way you can create a DSN. Hope I am clear.Srinivas telkar

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions