ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
what is the Vbscript to connect Database
 Question Submitted By :: Nagireddy.sn
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the Vbscript to connect Database
Answer
# 1
VBScript function that you can use to conncet to DB is 
CreateObject. we have to create the connection object first 
as ADODB and then we can use that connection object to open 
the DB connection.  Once the connection is open, we can run 
SQL query by using a while..wend loop and can get the 
derired results data into local data sheet
 
Is This Answer Correct ?    1 Yes 0 No
Paayal
 
  Re: what is the Vbscript to connect Database
Answer
# 2
Check this............

Function db_connect( byRef curSession ,connection_string)
    dim connection
    on error resume next
    ' Opening connection
    set connection = CreateObject("ADODB.Connection")
    If Err.Number <> 0 then
       db_connect= "Error # " & CStr(Err.Number) & " " & 
Err.Description
        err.clear
        Exit Function
    End If
  
    connection.Open connection_string
    If Err.Number <> 0 then
        db_connect= "Error # " & CStr(Err.Number) & " " & 
Err.Description
        err.clear
        Exit Function
    End If
    set curSession=connection
    db_connect=0
End Function
 
Is This Answer Correct ?    2 Yes 1 No
Ravi_kanakam
 
 
 
  Re: what is the Vbscript to connect Database
Answer
# 3
function Connect database
set con= create object("Adodb.Connection")
set rs=create object("Adodb.Recordset")
con.provider = "microsoft.jet.OLEDB.4.0" '@ For  MS access 
con.open="Path of Database"
rs.open "select * from xxxx", con
do until re.eof
end function
 
Is This Answer Correct ?    0 Yes 2 No
Ajreddy
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Plz send one Tracebilitymatrix example? Anybody working on Realtime QTP Plz give contact deatils?  1
How can I test the unix shell in QTP Persistent1
Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..  1
wt is memory leakage? BSL5
Pls answer this: What is the difference between a subroutine and a function? A. A subroutine can call itself; a function cannot B. A function returns a value; a subroutine cannot C. A function can accept arguments; a subroutine cannot. D. A subroutine can call other procedures; a function cannot.  1
what is object repository size? ITC-Infotech22
wt is frame work wt r d different types of frame works used in ur company Infotech1
with out using import sheet came is it possible to get the excel sheet ? Ordain-Solutions2
Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bitmap/image or any other checkpoint. Like if checkpoint passes then if or Else  2
Hi any body can tell me the in detaled information about Description.Create() thanks in advance  2
what is the process to follow between writing the test cases & then atomating it?  1
what is the silent mode in WR?  1
what is Compile Module in QTP? what exactly it contains Functions or Actions?  1
how do check the links in a webpage ? Accenture4
How to create configuration scripts  1
How to load a object repository(using VBScript) ... very urgent....  4
How can i find out any "text's" coordinates in excel sheet For example: I want to know the coordinates of "F" Column in the excell sheet While recording when i clicked on F column it is showing the coordinate values 385,9 but with out recording how can i find out them Suppose i want to clik on "H" column writing the script like this Window("Book1").WinObject("Book1").Click (...........) Here I Dont know what (x y )values should i enter Please any one can help me? Livetek1
what we do after completion of functional and regression testing  2
suppose im having a string wipro123xyz i need to get the value 123 only from the string today 123 will be in the middle from tommorow it will be changing to front or back how to get the no if it changes continously? Wipro2
hi this is srinivasa(from blr) i complited my B.tech(e.c.e) in 2007 im searching job in s/w testing but idont have freshers resume for s/w testing please send some s/w testing resume for me(fresfers resumes only) advns thnks you  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com