Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP always returns EOF when querying SQL statement to Access 2K3
#4
Solved: 10 Years, 9 Months, 2 Weeks ago
Solved it. The error was with the SQL statement. Looks like QTP can't "understand" the "*" wildcard, instead, I replaced it with the "%" wildcard (which oddly, does not work when querying in Access 2003):

Code:
strSQLObjects = "SELECT * FROM " & strTblName & " WHERE Page='" & curPage & _
                            "' AND FieldName LIKE 'Add_" & strItem & "%' AND " & _
                            "(AttachedText LIKE 'Add%' OR AttachedText LIKE '%>%')"
Reply


Messages In This Thread
RE: QTP always returns EOF when querying SQL statement to Access 2K3 - by riechan - 07-26-2012, 01:12 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 1,984 08-25-2015, 05:49 PM
Last Post: bkdevise
  This code does not give total no of links present on page plz help it returns 0 excellentpawan 8 5,299 01-17-2015, 07:49 PM
Last Post: yogi4tech
  parameterize Excel Sheet Name in SQL bjitsidhu 0 2,743 07-20-2014, 08:34 AM
Last Post: bjitsidhu
  Is there a possible way to execute sql in QTP using 'WITH' clause shruthic 0 2,996 04-26-2014, 11:42 PM
Last Post: shruthic
  How to automate MS Access Frontend application through QTP Anchal0604 0 2,297 11-26-2013, 12:40 PM
Last Post: Anchal0604

Forum Jump:


Users browsing this thread: 1 Guest(s)