Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parameterize Excel Sheet Name in SQL
#1
Not Solved
Code:
Dim strQuery, sheetName
    sheetName="pSheetOrFileName$"
    Dim strTestID  : strTestID=Trim("One")                                  
    Set objConnection = fnGetConnection(strFilePath)
    strQuery="SELECT * FROM  ['"&sheetName"'] WHERE TestID='"&strTestID&"' "


I used this code and wish to provide excel sheet Name dynamically.... In above code have issue
Any suggestion for correction welcome...........
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading data from excel sheet serenediva 1 9,695 03-03-2017, 10:07 AM
Last Post: vinod123
  Exe invoked through UFT is unable to access IIS and SQL Server service bkdevise 0 2,193 08-25-2015, 05:49 PM
Last Post: bkdevise
Smile Importing Excel sheet - Reference Values are not recognized michiusa69 3 7,940 01-23-2015, 02:36 AM
Last Post: lkng2001
  How to pass a date from Excel sheet to web form revati.shendure 1 2,994 11-27-2014, 11:54 AM
Last Post: revati.shendure
  clearing excel sheet values beejfred 1 7,555 09-25-2014, 11:43 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)