Geeks Talk

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.

Mysql Database connection

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 : ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-12-2008
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
vikwin is on a distinguished road
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 !
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-12-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 208
Thanks: 3
Thanked 19 Times in 19 Posts
NawabShaikh is on a distinguished road
Question Re: Mysql Database connection

1. please send the details of the error.

2. Please check the Connection String format supported by VBScript.


Regards,
Nawab
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 10:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved