Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how do u retrieve data from a database ? i.e. i want to
retrieve 2nd record only from a database ? write code for
this. by using ADODB connecton, RSOBJ and using a FOR loop
we can retrieve all the records( ex: if we give query as
select * from emp). but i want only 2nd record. so how to
acheive this.

Answer Posted / praveen

set dbobj=createobject("adodb.connection")
dbobj.provider="Microsoft.jet.oledb.4.0"
dbobj.open "<path of .mdb(msaccess)file>"

set rsobj=createobject("adodb.recordset")
QRY=select * from emp" 'for example
rsobj.open QRY,dbobj

for i=1 to 2
rec=rsobj.getrows(3,0) 'retrieve 3 records starting from 0
rec1=rec(0,i)
next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In Remote acess server how u run a test?

1770


What is the extension of qtp local repository?

1061


Did the scripts need lot of maintenance? If yes, why?

3858


What is qtpro?

1118


To which environments does quicktest professional (qtp) supports?

1067


What is a recovery scenario?

1224


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

1206


What is the parameterization? Give one example?

1138


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

2058


How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is

6858


How do you synchronization point through DP?

1138


What is QTP’s model for test creation?

1205


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

2180


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1898


What is qtpro? What is quick test pro?

1107