Hi Vishal,
Try below code:
Dim conOb
Set conObj=createobject("ADODB.Connection")
conObj.open "driver=XXXXXX;" etc...
'You can find the right connection stings for the DB at this location:
http://www.connectionstrings.com/Set ResultSet=conObj.Execute("select * from YourTableName")
While not ResultSet.EOF
stdname=ResultSet("your filed name")
'stdname=ResultSet("your filed name").value //both the statement yield the same results
print stdname
msgbox(stdname)
ResultSet.movenext
Wend
Please let me know if the above doent help.
Thanks,
Uday
QTP / UFT Videos