Interview Questions

How to handle 'Timeout expired' problem in WinRunner when dealingwith Complex SQL Queries??

Mercury WinRunner FAQ


(Continued from previous question...)

How to handle 'Timeout expired' problem in WinRunner when dealingwith Complex SQL Queries??

While creating DSN which option you have selected for authenticity. If you have selected Windows NT authentication then no need to Enter userId and password or if you have selected SQL Server authentication then you need to enter userID and password during DSN creation it self.
Enter database user name and password while creating DSN. the script as follows:-
dbstatus = db_connect("GetRecs", "DSN=dsn name", 30);
if (dbstatus !=0)
{
report_msg ("GetRecs-FAILED-Could not open Database");
treturn("Stop");
}

(Continued on next question...)

Other Interview Questions