Page 1 of 1

How to Delete Database using Code Module

Posted: Wed Nov 01, 2017 8:17 pm
by haye7889
Hello,

I'm wondering if there is a way to truncate a database using a code module.
The tutorial for code modules haven't been helpful and I'm not a developer, so I was wondering if this was possible.
I want to basically run a test case where I have my user log in, adds some data, truncate the database, log off, and close the application.
So any help is great.

thanks!

Re: How to Delete Database using Code Module

Posted: Thu Nov 02, 2017 9:06 am
by odklizec
Hi,

I'm afraid, there is not an out-of-the-box solution for this prepared in Ranorex. You will have to write such code. If you are not familiar with DB programming, I would suggest to use google to search for a piece of code, which would suit your purpose.

For example, these links may help...
https://msdn.microsoft.com/cs-cz/librar ... 2147217396
https://stackoverflow.com/a/5170462
https://stackoverflow.com/a/14070272