Forum Discussion
joffre
13 years agoRegular Contributor
About the other tip that you gave me, that is my priority.
How does aqString.Replace will see what is written inside my files and replace it? On SmarBear's example (linked) it replaces just the string inside TestComplete.
I've attached an .sql file for you to take a look and understand what I'll have to do.
I'll have to read all of it, then I'll replace the "CREATE TABLE xxxxx" to "SELECT * FROM xxxxx" and output all the replaced lines to a new .sql file, that I'll run after replace every code from every files in directory (something around 150 .sql files).
The output file will just need to have the 'SELECT * FROM xxxxx' lines. The rest of the code can be discarded (the .sql file where my script will look for Create Table xxxxx lines can't be altered.)
Any ideas??
How does aqString.Replace will see what is written inside my files and replace it? On SmarBear's example (linked) it replaces just the string inside TestComplete.
I've attached an .sql file for you to take a look and understand what I'll have to do.
I'll have to read all of it, then I'll replace the "CREATE TABLE xxxxx" to "SELECT * FROM xxxxx" and output all the replaced lines to a new .sql file, that I'll run after replace every code from every files in directory (something around 150 .sql files).
The output file will just need to have the 'SELECT * FROM xxxxx' lines. The rest of the code can be discarded (the .sql file where my script will look for Create Table xxxxx lines can't be altered.)
Any ideas??
Related Content
Recent Discussions
- 9 hours agod_gfleetwood92
- 10 hours agoFFCB