Forum Discussion
Hi Ashok,
Refer to this article - it contains an example of how to work with databases from the script.
- anatar02ContributorThanks Tanya for you reply :)
I have done some works in DB using Testcomplete with C# but here the issue is quite diffrent. the below line of code is working without any error but the issue is it is not returning any values
Log["Message"](mConnection["Execute"]("SELECT DATEDIFF(Second,'" + Executed_Time_Started +"','" + Executed_Time_Ended +"')"));
Hi Ashok,
Execute returns a Recordset object. To parse it and post results to the test log, you need to use a way listed in the help topic I sent.
- testuser11New Contributorhi,
I am trying to pass sql query in test complete...
Cmd.ActiveConnection = AConnection--->this statement doesnt seem to work!!!