Page 1 of 1
Execute DBForge Schema compare script
Posted: Tue 08 Jan 2013 14:23
by ads42
Hi,
in order to apply Database changes from a DBForge Schema compare script, what components do you suggest ? TMyCommand ? in this case I load the sql file in the sql property ?
Regards
Armindo
Re: Execute DBForge Schema compare script
Posted: Wed 09 Jan 2013 09:24
by AndreyZ
Hello,
To execute a script, you should use the TMyScript component. For example, if you have the script in a file, you can use the following code:
Code: Select all
MyScript.SQL.LoadFromFile('filename');
MyScript.Execute;
Re: Execute DBForge Schema compare script
Posted: Wed 09 Jan 2013 10:36
by ads42
Thanks Andrey.
Re: Execute DBForge Schema compare script
Posted: Wed 09 Jan 2013 11:40
by AndreyZ
I am glad I could help. If any other questions come up, please contact us.
Re: Execute DBForge Schema compare script
Posted: Wed 09 Jan 2013 12:45
by ads42
yep, I have another pending question about backup/restore in the forum...
Re: Execute DBForge Schema compare script
Posted: Wed 09 Jan 2013 12:57
by AndreyZ