Results 1 to 2 of 2

Thread: How to use MS Access in QTP

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    1

    How to use MS Access in QTP

    I need to save the Output check point values from QTP to Ms access database. Please let me know hoe to do it.

    I have established the connections I need to know without using the excel to save the data in Ms access database

    Regards
    Kamesh.K


  2. #2
    Through scripting this is way to connect the database
    Example:-

    set conn=Createobject("ADODB.Connection")
    Srvname="Driver={Microsoft ODBC for
    Oracle}:Server=DBserver,UID=Sa,Password=sa"
    conn.open Srvname
    Set Rec = CreateObject("ADODB.Recordset")
    SQL="select * from Users"
    Rec.open SQL ,conn
    Username=Rec.fields("employee name")
    Msgbox Username

    Thru Self scripting:
    set conn=createobject("adodb.connection")
    set rs=createobject("adodb.recordset")
    ' Oracle client is required to be installed on your box
    conn.open= "Provider=OraOLEDB.Oracle.1;Password=***;Persist
    Security Info=True;User ID=****;SERVER=****;Data
    Source=****;DBQ=****;"
    sql="your sql"
    rs.open sql,conn

    rs.close
    set rs=nothing

    conn.close
    set conn=nothing

    let me know if it is ok...or u need some more information...

    Last edited by sridharrganesan; 01-18-2008 at 06:56 AM. Reason: As all the posts combined together answers the question

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact