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

questions about converting to SQL

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

  • questions about converting to SQL

    I have to convert an existing A5V9 web app from dBASE tables to MySQL or MS SQLServer2005.

    If anyone has experience with this, can you jot out a short list of todo's and potential problem areas.

    Also, what performance improvements will I see (if any) for searches, screen refresh, etc.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  • #2
    Re: questions about converting to SQL

    I'd stick with mySQL, there are certain issues with row locks on SQL Server which I found difficult to get around, even in read only views, especially if the SQL server database is also used by desktop products (not necessarily Alpha5!).

    I have found conversion to mySQL of several mini-hybrid apps very easy and have found a SQL back end to be more efficient than DBF files, especially as it keeps storage of the data separate from the desktop and web files.

    Comment


    • #3
      Re: questions about converting to SQL

      Great topic for a white paper!

      Bill.

      Comment


      • #4
        Re: questions about converting to SQL

        Steve,

        I'm about to start on a similar project, so this might be a good place to exhange ideas/problems/solutions.

        So far, I've read three mySQL books and created one small app from scratch. My take on converting is about what you would expect. There is a big difference between just converting and converting well.

        In it's simplest form, you change all your auto increment fields to numerics, export the tables using the Alpha Export, convert your grids to use the new database and you are in business.

        However, if you want to do it well, it's a bit more involved.

        1. Decide how you will restucture your tables. The select capability gives more flexibility on how you structure your data. For example, one suggestion I heard is to split a table into the often changed and the seldom changed fields and make those two different tables. The reason is the cache is flushed for each change, so the seldom changed table can stay in the cache and not have to be reloaded.

        2. Determine the best data type for each field in the table. There are a number of different field types and each takes up a different amount of space. That decision can also change depending on the database engine you use. With mySQL, there are several to choose from, and these can be mixed in a single application.

        3. Decide what you want the database to do vs what Alpha will do. For example, the database includes triggers to perform functions and "stored procedures". So, for example, if you want an audit trail, you can set a trigger on the table and let the database take care of saving the record. The database can also format and concatinate character fields and perform math on numeric fields before they get to Alpha.

        4. Decide if you will use Alpha's built in security. If you do, I believe that the security tables will be dbf, even if everything else is SQL. That may or may not be a problem for you.

        What I miss the most with SQL is being able to open up a table in a browse and enter the fields directly.

        As far as performance comparisons, I have no experience, and it probably depends a lot on how you set up the 1~3 items above.

        Pat
        Pat Bremkamp
        MindKicks Consulting

        Comment


        • #5
          Re: questions about converting to SQL

          Pat,

          Are there mySQL book titles you would recomend over others?

          Bill.

          Comment


          • #6
            Re: questions about converting to SQL

            The three I read were (in order of smallest and simplest to largest and most detailed) were:

            MySQL, second edition, Visual Quickstart Guide. - Larry Ullman. This book is a "get your feet wet" book that introduces the basics, but doesn't cover nearly enough. It is a fast and easy read. Covers 4 and 5.

            MYSQL in a Nutshell, second edition - Russell J.T. Dyer. Calls itself "A desktop Quick Reference. - Organized like a reference manual - sectiions are organized in alphabetical order; good to look up a particular command, with options and examples. Not a good book to start with. When I know the command I want, I use it for syntax.

            MySQL Developer's Library, fourth edition - Paul Dubois - This is a great book. If I could only pick one, I'd buy this one, but it's so big, it's not good if you want to start next week. Takes a long time to read to figure out what you need.

            Then, there is an on-line manual, which is free, and which is organized by version (I'm using 5.1, the latest stable release). This is the definitive source for correct and up-to-date information...I just prefer to write in, dog-ear and highlight the books I use, and didn't want to print it all out.

            Pat
            Pat Bremkamp
            MindKicks Consulting

            Comment


            • #7
              Re: questions about converting to SQL

              Steve, so how do you convert dbf to mysql? I find there are some dbf2mysql softwares on the web, and I tried the one from Spectra Core, but it seems not quite working for my tables. I wonder how you do it?

              David

              Comment


              • #8
                Re: questions about converting to SQL

                Originally posted by hungry4grace View Post
                Steve, so how do you convert dbf to mysql? I find there are some dbf2mysql softwares on the web, and I tried the one from Spectra Core, but it seems not quite working for my tables. I wonder how you do it?

                David
                Just use Alpha5... read up about export operations

                Comment


                • #9
                  Re: questions about converting to SQL

                  Yes, I got it. I can export from file->export data->define connection string->mySQL ...,

                  Thanks

                  Comment


                  • #10
                    Re: questions about converting to SQL

                    Originally posted by hungry4grace View Post
                    Yes, I got it. I can export from file->export data->define connection string->mySQL ...,

                    Thanks
                    Glad - mySQL seems to most-tested and most reliable for this job, I have not done a huuuge deal of DBF work but have done a few smaller projects in DBF first and found it easy to export to mYSQL and adapt both desktop and web interfaces for mySQL.

                    Comment


                    • #11
                      Re: questions about converting to SQL

                      If you're considering Oracle DB ( f.i. because it is the market leader), then Oracle Express edition is also free for upto 4 GB databases. You only have to leave you email address at oracle.com to download it.

                      Then this attached PDF article from Kurt Rayner (Alpha Software) may help in the equation ( on Oracle sequences).

                      regards, Ron

                      Comment

                      Working...
                      X