Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
where do my return values go? (SQL-Query)
#5
Solved: 11 Years, 4 Months ago
that was just an example.

Actually its

if CheckStat(AppID) = "1" then

(for AppID insert number from 1-12, it is used in the query later)

Full Code for the Function:

Code:
Function CheckStat (AppID)
Dim objDB, strupdate
Set objDB = CreateObject("ADODB.Connection")
objDB.ConnectionString = "..."
objDB.Open
strupdate = "select mailstat from systemstatus where systemid='"&AppID&"' and testtime=(select max(TESTTIME) from systemstatus where systemid='"&AppID&"')"
CheckStat = objDB.Execute(strupdate)
objDB.close
End Function
Reply


Messages In This Thread
RE: where do my return values go? (SQL-Query) - by Tim.Schmidt - 07-08-2008, 07:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exe invoked through UFT is unable to access IIS and SQL Server service bkdevise 0 2,147 08-25-2015, 05:49 PM
Last Post: bkdevise
  Function return value is not passed during the 3rd iteration premanand1979 0 2,253 10-16-2014, 09:40 PM
Last Post: premanand1979
  Query regarding "Call" statement anupam4j 1 2,028 09-26-2014, 01:46 PM
Last Post: vinod123
  parameterize Excel Sheet Name in SQL bjitsidhu 0 2,909 07-20-2014, 08:34 AM
Last Post: bjitsidhu
  Is there a possible way to execute sql in QTP using 'WITH' clause shruthic 0 3,102 04-26-2014, 11:42 PM
Last Post: shruthic

Forum Jump:


Users browsing this thread: 4 Guest(s)