Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL on oracle database doesn't return a value
#1
Not Solved
Hey there,

I'm using this SQL script in my QTP script, to retrieve a single value:

Code:
process_id_t1=db.execute("select id from ld_process_type where process_type in ('D2')")

The SQL script is OK, but the value doesn't get assigned to the QTP internal variable "process_id_t1". Is anything wrong with the syntax?

Thx and regards,
Roland
Reply
#2
Not Solved
Hi,
Have you checked the connetion string whether its proper?

When I use the query to get output ..I generally create a ADODB record set and ADODB connection object and capture the output in it.
Reply
#3
Not Solved
Hey,

the connection string is OK, I created a ADODB record set and connection object too. The funny thing is, it's not a problem to write any data to the database, just getting the output doesn't work.

Can you please post the ADODB record set and connection object which you're using?

Thx and regards,
Roland
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesn't support this property or method takecharge 1 1,342 11-13-2019, 10:05 PM
Last Post: stormbringer
  Childobject return wrong checkbox count.. VpnQTP 1 2,552 04-09-2015, 09:07 PM
Last Post: babu123
  Request Help | Usage of Oracle Add-In for Oracle SQL Developer Nasir Ahmed 3 3,298 06-18-2014, 04:28 PM
Last Post: vinod123
  QTP 11.5 doesn't identify swf objects arpan 2 2,684 01-07-2014, 12:44 AM
Last Post: arpan
  SQL Query Issue in QTP rajiv.qtp 1 2,273 11-28-2013, 10:36 AM
Last Post: Jay

Forum Jump:


Users browsing this thread: 1 Guest(s)