Connect to Microsoft Access database in QTP
Here are the steps to connect to microsoft access database in QTP.
'Declare the variables
Dim MyConn, SQL_query,ResultSet,myName
'Open database connection
Set MyConn = CreateObject("ADODB.Connection")
MyConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\temp\winrunner_db.mdb"
'Define the SQL query
SQL_query = "SELECT Name FROM Employee"
'Execute the query and store results in ResultSet
Set ResultSet = MyConn.Execute(SQL_query)
ResultSet.MoveFirst
'Read results from ResultSet in a loop
While NOT ResultSet.EOF
Set name1 = ResultSet("name")
ResultSet.MoveNext
WEND
'Release resources
ResultSet.close
MyConn.close
'Declare the variables
Dim MyConn, SQL_query,ResultSet,myName
'Open database connection
Set MyConn = CreateObject("ADODB.Connection")
MyConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\temp\winrunner_db.mdb"
'Define the SQL query
SQL_query = "SELECT Name FROM Employee"
'Execute the query and store results in ResultSet
Set ResultSet = MyConn.Execute(SQL_query)
ResultSet.MoveFirst
'Read results from ResultSet in a loop
While NOT ResultSet.EOF
Set name1 = ResultSet("name")
ResultSet.MoveNext
WEND
'Release resources
ResultSet.close
MyConn.close
13 Comments:
Hi Guys,
There are some 70 hours training Videos on QTP , taught by Karthik. Possibly you know him.
I am planing to buy those videos.
Contact me on 9890855564 if you want those videos so that we can share the cost and duplicate among ourself.I think he has uploaded some videos on Youtube as well and I found them amazing.
Please see following links.
http://www.youtube.com/qtpelearn#p/u/20/91XSG7qPp0o
http://www.youtube.com/qtpelearn#p/u/3/4NQkDqmWWWg
http://www.youtube.com/qtpelearn#p/u/4/B8gjsHS62eU
http://www.youtube.com/qtpelearn#p/u/15/e_UgxZhKxKM
This page is dedicated for our Besant Technologies Reviews by our students. Please give your reviews here,
Besant Technologies
Reviews Complaints Testimonials
Excellent post, some great resources. Styling your blog the right way is key. This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post,thanks for taking the time to discuss this, I feel happy about and I love learning more about this topic.keep sharing your information regularly for my future reference.
Android Training in Chennai
We are android academy, India's leading and most reputed android training institute in chennai
We offer advanced and modern android training in chennai for all the graduates, job seekers, students, fresher, freelancers and working professionals.
android training in Chennai
Thanks for sharing such a great information..Its really nice and informative.
android training in Chennai
This QTP concept is really good for those who working on this domain it will be useful thanks for sharing those informations.
android training in chennai
In this blog Microsoft database access the qtp. Using the QTP we can store data in Microsoft access database. This helps to learn more about this database. Thanks for this blog. having a great information.
Android Training in Chennai
This blog is having the general information. Got a creative work and this is very different one. We have to develop our creativity mind. This blog helps for this. Thank you for this blog. this is very interesting and useful.
Android Training in Chennai
Thank you for this brief explanation and ver nice information. well, got a good knowledge. Have a nice idea, this is more helpful to me. This can gives the better performance.
Android Training in Chennai
Thanks for sharing this informative blog. Keep update your blog
Hadoop online Training
Excellent posts thanku for for providing valuable information..
SAP HANA
training in hyderabad
thank you for sharing such a nice and interesting blog with us. i have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information. I would like to suggest your blog in my dude circle. please keep on updates. hope it might be much useful for us. keep on updating...
Software Testing Training
Thank you for sharing such a nice and interesting blog with us. i have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information
We at Colan Infotech Private Limited best web design company in chennai,is Situated in US and India, will provide you best service in
Professional Website Design Services and Colan Infotech has a group of exceedingly dedicated,
inventive and creative experts with an energy for delivering exciting , helpful and stylish Web and Mobile Applications,
We provide all sort of web designing services in chennai and
of course we stepped in bangalore too we are best website designers in bangalore can provide web design services in bangalore, hire web designer india
Post a Comment
<< Home