Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL quering - how to use results of one query in the following one
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
you can explore more on using adodb objects and get the query results in recordset, that will definitely help you.
I have listed a peice of code here,
Code:
Set ConObj = CreateObject("ADODB.Connection")
     ConObj.Provider = "MSDAORA.1"
     ConObj.Properties("Data Source").Value = Service name
   ConObj.Properties("User ID").Value = UserName

    ConObj.Properties("Password").Value = Password
  
    ConObj.Open

   Set RecObj = CreateObject("ADODB.Recordset")

RecObj.Open <<Your SQL query>>ConObj,adLockPessimistic

Hopefully we will have a series of tutorial Posts on the same topic, soon at http://www.learnqtp.com
register you mail there to receive the notification Smile

Reply


Messages In This Thread
RE: SQL quering - how to use results of one query in the following one - by Saket - 12-29-2009, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Rolleyes Browse object query Hema a newbie 0 1,800 07-22-2014, 08:37 PM
Last Post: Hema a newbie
  SQL Query Issue in QTP rajiv.qtp 1 2,476 11-28-2013, 10:36 AM
Last Post: Jay
  Exporting QTP runtime datatable to SQL server during SweetyChowdhury 1 3,252 05-10-2013, 03:41 AM
Last Post: sria123
  SQL on oracle database doesn't return a value Bluefields 2 3,234 07-09-2012, 01:23 PM
Last Post: Bluefields
  Do recordsets get to use only ONE query? Arena 0 2,184 04-03-2012, 07:08 PM
Last Post: Arena

Forum Jump:


Users browsing this thread: 3 Guest(s)