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

DBF vs SQL limitations, SQL migration and rewriting my whole site?...

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

    DBF vs SQL limitations, SQL migration and rewriting my whole site?...

    I have been operating a site hosted by via Zebrahost for over a decade now. I wrote everything via the native DBF database backend included with Alpha. Zebra told me we may be hitting the max capabilities with DBF and need to move to SQL. I only have 3-4 "power users" who are on our site all day long processing back-end stuff. We have users log in and back out throughout the day to post payments and create some quote documents. We work with insurance agents throughout the state and many could be logged in during the day but their terminal just sits idle most of the time unless a client of theirs comes in to make a payment or whatever... this could be 20+ users logged in all day long but little actual activity would be occurring with each.

    Do any of you feel that we are maxing out the DBF capabilities?

    I am worried that this is case because I am the sole programmer for my company - I wrote every line of code... it took 3 years from 2008-11 to get the site started not to mention the thousands of hours of coding since then to improve/update our site...(i also had a FT job back then in addition to coding this originally. Now I code and run the company as well). I am worried that every page, grid, ux, xbasic page will need to be rewritten to work with the SQL DB since all of the operations are different... am I correct in this assumption? I have a ton of xbasic pages written to handle lots of calculations for estimating insurance premiums, APR calculations, creating payment plans etc...

    I see that there is a tool to migrate the DBF to SQL --- i am opposed to paying thousands of $ for MSSQL... I would prefer MySQL since it is free.... am I missing out or limiting myself by going with MySQL over MSSQL?

    I just started writing the code for another sister company I am going to launch and I started this on DBF as well... I am worried that I should start over and go with SQL from the start on that one so I dont run into the same issues...

    I have looked at Alpha documentation a bit with regard to SQL --- any recommendations on where to start or any other sources of knowledge which helped you get going on SQL?

    Thanks guys & gals! This community rocks!

    #2
    I'm not very familiar with DBF as I've always used SQL. I'm unsure what it's limitations might be. There is a free version of SQL you can use and it works great for development purposes. When it comes to deployment of your app it's not necessary to spend thousands on a Microsoft SQL Server license. I use Amazon's AWS services and their servers (which can include SQL) are very reasonable. I have several clients that use AWS (along with SQL) and their server cost is under $750 a month.
    Mike Brown - Contact Me
    Programmatic Technologies, LLC
    Programmatic-Technologies.com
    Independent Developer & Consultant​​

    Comment


      #3
      I strongly suggest converting to mysql. It's faster and more reliable than dbf tables.
      It sounds like you know your data extremely well. For this reason I would suggest not using
      the tool supplied by alpha.

      I would suggest you spend some time determining what you want your database to look like.
      Consider triggers, procedures, functions, and views, not to mention indexes and contstraints.

      Once you have the sql tables in place, and all the data migrated, you have a slew of options,
      including reducing the data in the dbf tables (should improve performance), and the ability to
      continue using your current setup while working towards a complete migration to sql.
      Grid, Dialogs (UXs) and reports are all happy to use sql.

      If you need help with these actions, feel free to reach out to me.
      I currently have projects that use dbfs and mysql.


      Gregg
      https://paiza.io is a great site to test and share sql code

      Comment


        #4
        Beware the appeal of a simple conversion. It only works (ish) on the tables.
        My preferred hosting company is Smarterasp.net if you are thinking of going fully Web.
        Free trial for 60 days, excellent support, latest version of MSSQL and MYSQL all at your disposal.

        SQLEXPRESS is a freebie you can use on your desktop for trialling your change.
        Works well with Alpha.

        Suggest you check the documentation regarding volumes of data and unrequired files, as that is most likely the issue IMHO.
        See our Hybrid Option here;
        https://hybridapps.example-software.com/


        We are the
        Department of Sunshine and Rainbows!

        Hope restored, faith renewed, spirits lifted!

        Comment


          #5
          Ted Giles
          Which are you referring to as the "simple conversion" ?
          I decided to learn sql well enough to write my own code
          because the solution provided by Alpha wouldn't work right
          with my data.
          Gregg
          https://paiza.io is a great site to test and share sql code

          Comment


            #6
            Yep!
            The Alpha option to convert to SQL.
            In the CP Menu.
            Last edited by Ted Giles; 04-03-2023, 05:16 PM.
            See our Hybrid Option here;
            https://hybridapps.example-software.com/


            We are the
            Department of Sunshine and Rainbows!

            Hope restored, faith renewed, spirits lifted!

            Comment


              #7
              Lots of us went through this conversion. I've done it sevaral times. It is tedious but when you are done, you will be glad you did. Meantime, DO NOT try the Alpha dbf to SQL conversion. I tried that and it isn't a real solution. It is dbf pretending to be SQL by building an additional layer of complexity between your existing dbf tables and your applicaiton. You will just have to make another conversion to get to real SQL. There is no speed advantage.
              I would recommend MySQL or MariaDB. They are easier to use than MSSQL and they follow the SQL standards. I prefer MariaDB because it comes with a database builder/manager called Heidi that will get you started. Then when you are all in you can purchase Navicat which is more full featured and many of us use.
              The good news is, you don't have to convert everything before you can do anything. Dip your toe in the water before you jump all in. You can use dbf and MariaDB at the same. You can start with that new application you are building, or take a portion of your application that uses the same few tables and convert that. When you can do that, then you can expand to the rest of your tables.
              Pat Bremkamp
              MindKicks Consulting

              Comment


                #8
                Heidi is great.
                So is the free version of TOAD.
                Mssql and Mysql versions.

                If you really want to splash some cash,Visual Paradigm is the way.
                ​​​​​​​( Community version helps get your SQL and Logic ducks in a row!)




                See our Hybrid Option here;
                https://hybridapps.example-software.com/


                We are the
                Department of Sunshine and Rainbows!

                Hope restored, faith renewed, spirits lifted!

                Comment


                  #9
                  Resources to get started. Buy the book MySQL by Paul DuBois. I have the 4th edition from 2009 and I still use it every day. It was written for MySQL but it is also good for MariaDB since those are mostly identical. If you are familiar with "normalization" that is the biggest mindset change from dbf. Get a pad of paper and start laying out your entities. Lets say your insurance is mostly wind and hail damage. Entities will be the home (address, size, roof type), agencies (name address email and phone), agents (name, email, phone, agency, coverage area), home owners (names, phone, text address, insurance agency) and so on.
                  Pat Bremkamp
                  MindKicks Consulting

                  Comment


                    #10
                    Normalisation is sometimes challenging.
                    High Normalisation makes apps difficult to maintain. Worse case is you use a little extra disk space, so don't get too hung up on it.
                    The free Visual Paradigm will help you a lot with normalisation.



                    See our Hybrid Option here;
                    https://hybridapps.example-software.com/


                    We are the
                    Department of Sunshine and Rainbows!

                    Hope restored, faith renewed, spirits lifted!

                    Comment


                      #11
                      If you have any connection to Sharepoint, Azure, Microsoft365, Power Apps, Access or Power Automate I would consider SQL Server or SQL Database( Azure). You can link things together nice.

                      Comment


                        #12
                        kkfin Do you know if there is a dollar amount to access any of those services you mentioned, and do you have any examples of how to access those services from Alpha Anywhere ?
                        Gregg
                        https://paiza.io is a great site to test and share sql code

                        Comment


                          #13
                          Originally posted by madtowng View Post
                          kkfin Do you know if there is a dollar amount to access any of those services you mentioned, and do you have any examples of how to access those services from Alpha Anywhere ?
                          I have found that the key Lego to use Alpha with Microsoft365 is the Power Automate with premium connectors so the cost is about 30 per month. Express version of SQL Server is free and I have found it is enough with Alphas performance. SQL Database in Azure with acceptable performance is about 40-70 per month if you need to have hosted managed database.

                          Comment


                            #14
                            Piling on: yes, switch to SQL sooner, not later. I've done 2 very large transitions - each took 2+ years for two of us to move. Starting on another one right now, and have always started anything new in SQL for many years now. Always worth it.
                            -Steve
                            sigpic

                            Comment


                              #15
                              There seems to be a lot of options when you search dbf to SQl converter

                              e.g. https://docs.devart.com/data-pump/im...-from-dbf.html
                              Insanity: doing the same thing over and over again and expecting different results.
                              Albert Einstein, (attributed)
                              US (German-born) physicist (1879 - 1955)

                              Comment

                              Working...
                              X