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
write progamming  connecting QTP to database sql? this is
question asked by interview? please give sql, pl/sql related
answer?pls any answer this?
 Question Submitted By :: Nagapawan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: write progamming connecting QTP to database sql? this is question asked by interview? please give sql, pl/sql related answer?pls any answer this?
Answer
# 1
Hi all,

I had some idea about this question

Answer:

First we need to create the object for connection

ie.
Set a = Createobject("ADODB.Connection")
set b = Createobject("ADODB.recordset")

Then with the help of created object we will define the SQL 
Query 

For ex:
Opening the data from SQL:

step 1 - create the connectivity whether manually or qtp
step 2 - a = Select * from exmployee with the connectivity 
with DSN

and we have to declare the array size also because once a 
data retrieved from the database it will stored in array 
format --

Thank u
 
Is This Answer Correct ?    1 Yes 1 No
Bharanikumar . R
 
  Re: write progamming connecting QTP to database sql? this is question asked by interview? please give sql, pl/sql related answer?pls any answer this?
Answer
# 2
Set con = Createobject("ADODB.Connection")
set rs = Createobject("ADODB.recordset")
con.connectionstring="DSN=xyz;UID=abc;PWD=pqr;"
con.open
SQL="select * from manish"
Set rs=con.execute(SQL)
 
Is This Answer Correct ?    5 Yes 1 No
Manish Deshmukh
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
in flight reservation ex once u login, u go into next window where we hav an option of new, open and help etc.. how to fetch those options and to go to respectiv tab accordingly using qtp.. plz let me knw answer for tis as early as possible. Thanks in advance... asha  1
How u call functions in QTP Function to calculate the length of characters in a word -  4
what are the mandatory properties in qtp? what are the library functions in qtp? Wipro3
What is output value? Ordain-Solutions3
Whenever we use GETROPROPERTY function. NIIT6
How to give Table check points? ssinformatics4
what is object spy TCS3
what is debugging testing?  4
Hi I am working with QTP.If I want to write a certification exams,Which one is the best one suggest me friends!!  2
What is the extension of script and object repositary files? Maveric6
I m in new and want to learn QTP. Is any website which provide free QTP video training.....also can downlaod....  2
how to get column count in datatable  2
How can we change(increase or decrease)the size of a array variable with out loosing the previous values DST-Global-Solutions1
if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail Quinnox1
how to capture objects of remote deskop as it is capturing only window. Wipro1
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME Ordain-Solutions3
hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri  7
What is the use of Testing framework in Automated testing..what are different kinds of Testing frameworks available in Automated testing... IBM1
Is there any MS Access addin in QTP?  4
How Qtp will identifies object during run time Yahoo4
 
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