Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Automatically update the Shadow Database

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Re: Automatically update the Shadow Database

    Originally posted by Scott Kurimski View Post
    How are they getting around the "file in use" issue?
    Scott,

    I'm still the developer, not them. I do it like Martin -after hours or on weekends.
    Peter
    AlphaBase Solutions, LLC

    [email protected]
    https://www.alphabasesolutions.com


    Comment


      #32
      Re: Automatically update the Shadow Database

      ok, that makes sense. I develop internally and make updates during the day all the time (sometimes 3-4-5 times a day) so unfortunately I don't think that scenario would work for me. What typically happens, is someone comes in to my office and says I need this feature "now", I make the change(s), update the app, notify them, they close and reopen to get the latest version. The "downside" is that the update also affects the other clients (if they close and reopen). Generally it is not a big deal for them to wait for the update except in some of the other situations I mentioned previously in this thread. I like the idea of only updating the changed files, how are you doing that, via the date/time stamp on the files?

      Comment


        #33
        Re: Automatically update the Shadow Database

        Originally posted by Scott Kurimski View Post
        I like the idea of only updating the changed files, how are you doing that, via the date/time stamp on the files?
        Exactly.
        Peter
        AlphaBase Solutions, LLC

        [email protected]
        https://www.alphabasesolutions.com


        Comment


          #34
          Re: Automatically update the Shadow Database

          Peter, would you be willing to share your code for this so I (we) do not need to reinvent the wheel?

          Comment


            #35
            Re: Automatically update the Shadow Database

            Originally posted by Scott Kurimski View Post
            ...If the develop works directly from the network files he/she would run into trouble (I would think) because files would be in use when the app is being used by clients.
            ....>
            How are they getting around the "file in use" issue?
            In my experience, locally, on a network (server & workstations), shadowed and non-shadowed, the only files that matter for being "in use" are .DBF, .FTP and .CDX. Everything else can be copied and pasted even if the files are being "used."

            In the case of shadow updates, this means, for example, that in a development environment you can make a change to a table's form, then merely copy & paste the .DDD, .DDM, and .DDX files to the shadow folder even if the user has that form open at the time. The next time they open that form, it will be the new one. The same is true for set files (except I have never tested changes to set structure, though I think that would work too). Of course you would want to do the same with the files in the Master DB if that's not where you made the changes in the first place.

            This is just an FYI. Of course there may be better ways to deal with your issues.

            Raymond Lyons

            Comment


              #36
              Re: Automatically update the Shadow Database

              Peter, getting sick might be a good thing for you - I could have some of the specialists at the hospital see if they could find a cure for your sarcasm disease.
              Cole Custom Programming - Terrell, Texas
              972 524 8714
              [email protected]

              ____________________
              "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

              Comment


                #37
                Re: Automatically update the Shadow Database

                Scott,
                Just to throw another idea into the pile. We have numerous databases running on our 200+ workstation network. They all (in some way) use related data (shared tables). Our scenario is that I create a Shadow of the database that needs to be refreshed on my machine. We then zip the shadow into a self extracting .exe file which will unzip into the appropriate shadow folder on the user's workstation along with a "tag" file showing the version number of that shadow.
                We have a "Version check" text file on one of our servers which we update when we create a new shadow. That file has the database names, and a version number (usually a date). When the users start up their computers, we check the version # in the "tag" file, and if it is earlier than that in our "Version Check" file, we unzip the shadow into its appropriate folder on the local machine. If there are several, they all get done at the same time. This is part of the local machine's "Startup" process, so it doesn't really impact the workers when they attempt to get into their "real" work.

                Tom

                Comment


                  #38
                  Re: Automatically update the Shadow Database

                  Tom, cool idea, just curious do you ever release more than one update per day? If yes, how does the workstation receive the update after the initial system startup?
                  I am guessing when you say "Startup" you are referring to the logon process?

                  Comment


                    #39
                    Re: Automatically update the Shadow Database

                    Our "Version Check" file has a layout something like this:

                    SocSvcs | 20110610.0
                    Medicaid | 20110528.0

                    If there is a "CRITICAL" update, we change the ".0" to ".1", and we send out a broadcast e-mail to all users that they must restart their machines. We're not talking about the logon process here, we are at the "Push the power-on button" or "Sign into Windows" point. Every Windows PC has a "Startup" process. If the routine is placed into it, the routine runs at "Startup".

                    Tom

                    Comment


                      #40
                      Re: Automatically update the Shadow Database

                      Originally posted by martinwcole View Post
                      Peter, getting sick might be a good thing for you - I could have some of the specialists at the hospital see if they could find a cure for your sarcasm disease.
                      Doctor,

                      What happens if the system goes down while your deleting my sarcasm? It could get ugly.
                      Peter
                      AlphaBase Solutions, LLC

                      [email protected]
                      https://www.alphabasesolutions.com


                      Comment


                        #41
                        Re: Automatically update the Shadow Database

                        the same thing that would happen if the system went down (like power failure, loss of connectivity with the server) during any refresh of the shadow using any method.
                        Cole Custom Programming - Terrell, Texas
                        972 524 8714
                        [email protected]

                        ____________________
                        "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                        Comment


                          #42
                          Re: Automatically update the Shadow Database

                          Originally posted by martinwcole View Post
                          the same thing that would happen if the system went down (like power failure, loss of connectivity with the server) during any refresh of the shadow using any method.
                          I'm just giving you a hard time. Anything programmed by Cole Custom Programming automatically gets my stamp of approval.
                          Peter
                          AlphaBase Solutions, LLC

                          [email protected]
                          https://www.alphabasesolutions.com


                          Comment


                            #43
                            Re: Automatically update the Shadow Database

                            Most excellent answer!!!!
                            Cole Custom Programming - Terrell, Texas
                            972 524 8714
                            [email protected]

                            ____________________
                            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                            Comment


                              #44
                              Re: Automatically update the Shadow Database

                              I like the idea of building an update without alpha intrference. That was good. Never really thought of it, but had done it by hand a couple of times once I figured out what alpha was actually doing/copying.

                              Thanks!
                              Dave Mason
                              [email protected]
                              Skype is dave.mason46

                              Comment


                                #45
                                Re: Automatically update the Shadow Database

                                This is largely off topic but hey, Peter started it!
                                Errr...I hope I never get sick late at night in Terrell, Texas.
                                In an previous life I was involved in hospital quality assurance and utilization review for one the of the best trauma center hospitals in our area. I came away from that experience with 3 rules to try to follow:

                                Rule # 1: Unless very, very ill and there are no better alternatives, stay away from hospitals, period. Chances are they are inhabited by many who are much sicker than you, and have all kinds of bacteria, germs, and viruses, plus staff that don't wash their hands enough. Then even in the best hospitals, stuff happens, all the way from rectal thermometers being left in for hours (happened to me!) to surgeons inadvertently leaving things in you to nurses who will incompetently crank up your meds to lethal or near lethal levels to...the list could go on and on.

                                Rule #2: If you must be in a hospital and have any choice in the matter, avoid nights and Friday through Sunday as those times and days are very hit or miss should you need serious care and attention from the best the hospital has to offer.

                                Rule # 3: Push hard to be discharged before Friday (not on Friday!) or you may find yourself unnecessarily sticking around all weekend for no good reason.

                                Back on topic (sort of), a computer program being unavailable for a few minutes during a shadow refresh is the least of what you should worry about. Plus, as I stated above, except for table restructures, shadow files in fact can be refreshed (via copy/paste or a batch file operation) while old shadowed forms and so on are open and being used.

                                Possibly some of the docs on this board will disagree with my rules, but I kind of doubt it!

                                Raymond Lyons

                                Comment

                                Working...
                                X