Forum Moderators: coopster
If you want to create all the tables in new database then simply dump this .sql file into new database. However, if you want to create only one, renamed, table then open .sql file and start copying the code from CREATE TABLE TESTTABLE and end on last INSERT INTO statement, before the next CEATE TABLE nexttablename.
Paste this in a new .sql file and then run this new file only.
It is very simple, mostly editing a text file. I am not sure why are you stuck with it.
We are now wondering if it is possible to read the procedures from the .sql file, change the tables names, and then run that editied command directly from a variable.
So i guess what I am getting at is, can I run that contents of a .sql file against a database directly from a variable, and if so, with what function?
Thanks
~3321thec