Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Mysql Database connection within the QTP forums, part of the Software Testing category; Hello all, i'm getting an error when i use the below code to connect to mysql database. Would be great if anybody can try to solve this problem. Code : ...
|
|||||||
|
|||
|
Mysql Database connection
Hello all, i'm getting an error when i use the below code to connect to mysql database. Would be great if anybody can try to solve this problem. Code : dim objconnection as new adodb.connection dim svlconnectstring as string svlconnectstring = "driver={mysql odbc 5.1 driver} ; server={192.168.4.208} ; port = {3306} ; database={chat2} ; user = {root} ; password= {}" objconnection.open svlconnectstring 'to open recordset dim rsusers as new adodb.recordset set rsusers = objconnection.execute("select * from user") if not rsusers.eof then msgbox ("first user name:" & rsusers.fields("user")) end if call rsusers.close set rsusers = nothing set objconnection = nothing thanks !
|
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mysql support for qtp | vnsnivas | QTP | 2 | 04-06-2008 10:12 PM |
| Forms 6i is not connection with the database | rammandaK | Oracle | 0 | 08-13-2007 08:58 PM |
| Why projects are not done using MySql | dharmagee | MY SQL | 4 | 05-14-2007 01:31 AM |
| How can I get connection object suddenly from connection pool | Gopikrishnaduggi | Java | 0 | 05-05-2007 04:02 PM |
| Persistent database connection | nancyphilips | Web Design | 3 | 07-29-2006 04:26 PM |