﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » DatabaseMigratorClass - Runs changes separatelly</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 00:17:51 GMT</lastBuildDate><ttl>20</ttl><item><title>DatabaseMigratorClass - Runs changes separatelly</title><link>http://forum.strataframe.net/FindPost26723.aspx</link><description>Guys,&lt;/P&gt;&lt;P&gt;I´d like to run DatabaseMigratorClass inside my system,&amp;nbsp;only comands related to one specific table or view.&lt;BR&gt;For example:&lt;/P&gt;&lt;P&gt;- in form A:&amp;nbsp;run profile Scripts&lt;BR&gt;- in form B: run only changes for table "X", fields, Fks, etc&lt;BR&gt;- in form C: run only procedures&lt;BR&gt;&lt;BR&gt;Is that possible?&lt;BR&gt;Other question: If two users process the same PKG, what&amp;nbsp;will happen?&lt;/P&gt;&lt;P&gt;Tks&lt;BR&gt;</description><pubDate>Thu, 01 Apr 2010 18:54:27 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: DatabaseMigratorClass - Runs changes separatelly</title><link>http://forum.strataframe.net/FindPost26728.aspx</link><description>[quote][b]Luiz Lima (04/01/2010)[/b][hr]You told what I didn´t wanna hear... I have to do a Windows Service... :crazy:[/quote]&lt;br&gt;
&lt;br&gt;
You are welcome Luiz.  There are many sample in Google on how to do a Windows Service, just keep in mind that services does not have a GUI interface so you have to either email yourself and/or add windows event to the event log to let you know of what is going on.&lt;br&gt;
&lt;br&gt;
Good luck and let us know what you decided to do.</description><pubDate>Thu, 01 Apr 2010 18:54:27 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: DatabaseMigratorClass - Runs changes separatelly</title><link>http://forum.strataframe.net/FindPost26727.aspx</link><description>Ed,&lt;BR&gt;&lt;BR&gt;ES is a fantastic solution.. I´m planning to use it in next semester.&lt;BR&gt;You told what I didn´t wanna hear... I have to do a Windows Service... :crazy:&lt;/P&gt;&lt;P&gt;Tks again...</description><pubDate>Thu, 01 Apr 2010 18:09:53 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: DatabaseMigratorClass - Runs changes separatelly</title><link>http://forum.strataframe.net/FindPost26726.aspx</link><description>Luiz, see my comments below with [b]&gt;&gt;[/b]...&lt;br&gt;
&lt;br&gt;
[quote]&lt;br&gt;
1) I have a table to save the database version.&lt;br&gt;
&lt;FONT color=#dd3333&gt;R: How can I get the version? Is it a DDT version?&lt;/FONT&gt;&lt;br&gt;
[b]&gt;&gt;[/b] No it is not.  I is just a varchar field which represents any version you want to use, then you convert that value to a Version type to be compared with the constant.  The version in the DDT pkg is not being used or implemented, we don't have access to it and it looks like the SF team will not change this because they would have to uncompress the pkg file to read the version and it is not worthy.&lt;br&gt;
&lt;br&gt;
4) When opening the application, it will compare the constant value with the one in the version table and they don't match, I will check if there are not users logged in LoggedUsers, then will call the migrator class to update the database.&lt;br&gt;
&lt;FONT color=#dd3333&gt;R: This is a problem to me! I have to guarantee that my system only will open if the database is ok!&lt;br&gt;
Other thing is: Many users access the database remotely, and it´s so slow.....:(&lt;br&gt;
If I could upgrade DDT version in some pieces only when necessary... pretty cool!&lt;/FONT&gt;&lt;br&gt;
[b]&gt;&gt;[/b] I understand your point, but I am not aware of you being able to update specific objects using the DDT.  If this is an In-House application in which you have control of the database, you could do a Windows Service to apply the updates late at night after checking that nobody is using the database, also if you have many remote users, you could take advantage of the SF Enterprise Server, I have not used it but I am heard just good things about it from developers using it.  My logic will not let anybody work on the program unless the database have been updated.&lt;br&gt;
&lt;br&gt;
[/quote]</description><pubDate>Thu, 01 Apr 2010 18:06:03 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: DatabaseMigratorClass - Runs changes separatelly</title><link>http://forum.strataframe.net/FindPost26725.aspx</link><description>Ed, see my comments bellow&lt;/P&gt;&lt;P&gt;[quote]&lt;/P&gt;&lt;P&gt;1) I have a table to save the database version.&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: How can I get the version? Is it a DDT version?&lt;/FONT&gt;&lt;BR&gt;2) I have a constant in my application where I manually change the version number.&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: Ok&lt;/FONT&gt;&lt;BR&gt;3) I have a LoggedUsers table where I keep records of all users and their logged status. I know is not 100% reliable, but unless somebody crashed the data will be reliable.&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: I have this one too... ;)&lt;/FONT&gt;&lt;BR&gt;4) When opening the application, it will compare the constant value with the one in the version table and they don't match, I will check if there are not users logged in LoggedUsers, then will call the migrator class to update the database.&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: This is a problem to me! I&amp;nbsp;have to garantee that my system only will open if&amp;nbsp;the database is ok!&lt;BR&gt;Other thing is: Many users access the database remotely, and it´s so slow.....:(&lt;BR&gt;If I could upgrate DDT version&amp;nbsp;in some pieces only when necessary... pretty cool!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[/quote]</description><pubDate>Thu, 01 Apr 2010 17:33:22 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: DatabaseMigratorClass - Runs changes separatelly</title><link>http://forum.strataframe.net/FindPost26724.aspx</link><description>Hi Luiz,&lt;br&gt;
&lt;br&gt;
I believe the only options you have are the one shown in the Database Deployment Wizard.&lt;br&gt;
&lt;br&gt;
Keep in mind that you can run the deployment feature as many times as you want and it will only apply the changes needed.  It is the same done by the SF installation setup.&lt;br&gt;
&lt;br&gt;
I finished implementing this class 2 weeks ago and I did it this way:&lt;br&gt;
1) I have a table to save the database version.&lt;br&gt;
2) I have a constant in my application where I manually change the version number.&lt;br&gt;
3) I have a LoggedUsers table where I keep records of all users and their logged status. I know is not 100% reliable, but unless somebody crashed the data will be reliable.&lt;br&gt;
3) When opening the application, it will compare the constant value with the one in the version table and they don't match, I will check if there are not users logged in LoggedUsers, then will call the migrator class to update the database.&lt;br&gt;
&lt;br&gt;
So far it is working fine.  Hope that can help you out.</description><pubDate>Thu, 01 Apr 2010 17:07:58 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>