IP
15 years agoOccasional Contributor
[RESOLVEDD]Using variables for insertion values via DataSink
Newbie
Hi,
I have made a testcase which works fine. However I'm trying to store the results from the webrequest in a mysql-database which gives me some trouble. The Data-connection works fine for retrieving data from the mysql-database. However (and here is the problem) I cannot seem to store the results from the webrequest into the database. Storing fixed results in the database works fine, but I don't know how to store the (variable) webresults into the database. I am getting constant sql-error. The sql-statement with a fixed surname (for instance "McCloud") works fine and looks like:
I am stock with regard to the proper syntax for storing a variable from the datasource into the table "test"
I have tried to find example sql-statements but haven't found any. The variable I am trying tot store is ${DataSource#surname}
Can anyone please help?
Kind regards
Hi,
I have made a testcase which works fine. However I'm trying to store the results from the webrequest in a mysql-database which gives me some trouble. The Data-connection works fine for retrieving data from the mysql-database. However (and here is the problem) I cannot seem to store the results from the webrequest into the database. Storing fixed results in the database works fine, but I don't know how to store the (variable) webresults into the database. I am getting constant sql-error. The sql-statement with a fixed surname (for instance "McCloud") works fine and looks like:
I am stock with regard to the proper syntax for storing a variable from the datasource into the table "test"
I have tried to find example sql-statements but haven't found any. The variable I am trying tot store is ${DataSource#surname}
Can anyone please help?
Kind regards