Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP changes string returned from DB to date format
#1
Not Solved
In a QTP script the first step is to get a table name from the database
If the query used in the script is executed in DataStudio it returns this value, which is correct : bill_0120150501

But when this code is executed in QTP the value assigned to the the array and variable is bill_0101/0/215

Anyone know how to prevent QTP / VBScript from doing this?

Code:
sql="select 'bill_01'||SUBSTR(bcy_next_run,1,4)||SUBSTR(bcy_next_run,6,2)||SUBSTR(bcy_next_run,9,2) current_bill_table from bcy_billing_cycle where bcy_bill_cycle = '01';"
testd = ExecuteQuery_Eppix(EppixDBUsername,EppixDBPassword,sql,EppixDBName)
current_bill_table= testd(0,0)
Reply
#2
Not Solved
Code:
testd = double(ExecuteQuery_Eppix(EppixDBUsername,EppixDBPassword,sql,EppixDBName))
..... try this
Reply
#3
Not Solved
Thank you for the reply, but no, that does not work
I need to understand why QTP / VB Script is changing the data in the first place
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Date function mahbub798 1 2,101 03-27-2014, 07:27 PM
Last Post: Ankur
  QTP 11 not identifying web objects using string based DP ankit5815 1 3,276 07-16-2012, 10:36 AM
Last Post: sshukla12
  Unexpected file Format vinayaksarode 3 6,510 01-30-2012, 09:49 PM
Last Post: ravi.gajul
  How to pass long string as input to QTP Anjali09 3 4,741 01-05-2012, 02:20 PM
Last Post: vinod123
  QTP 11 Patches List Till date supputuri 0 9,518 12-02-2011, 10:23 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)