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

Convert DBF Table to MySQL - Is there a best way?

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

    Convert DBF Table to MySQL - Is there a best way?

    I exported my table to Excel, then tried to import it into MySQL. I was happy to see that the long fieldnames were preserved, but EVERY field was seen as VARCHAR. There are too many fields to change by hand. The same thing happens when I export by TXT.

    Has anyone else been successful with this or should I look for a 3rd party solution?
    Rapid Development, Training, Support
    http://data2web.network
    903-740-2549

    #2
    Re: Convert DBF Table to MySQL - Is there a best way?

    From the control panel on the menu choose tools->database upsize genie

    Comment


      #3
      Re: Convert DBF Table to MySQL - Is there a best way?

      Thank you so much Allen! You saved my day!
      One little thing also, the upsize complains about my dates being out of range. My dates look like this: 10/16/2012
      Its a Date field also. Any ideas? I'm stumped.
      Last edited by mvaughn; 11-10-2012, 07:17 PM.
      Rapid Development, Training, Support
      http://data2web.network
      903-740-2549

      Comment


        #4
        Re: Convert DBF Table to MySQL - Is there a best way?

        There have been several posts about date differences from DBF to SQL but I don't remember the specifics. Or it could be that there is a bad date in a record.

        Comment


          #5
          Re: Convert DBF Table to MySQL - Is there a best way?

          Originally posted by mvaughn View Post
          I exported my table to Excel, then tried to import it into MySQL. I was happy to see that the long fieldnames were preserved, but EVERY field was seen as VARCHAR. There are too many fields to change by hand. The same thing happens when I export by TXT.

          Has anyone else been successful with this or should I look for a 3rd party solution?
          My favorite way to transfer any database, no matter the format, to MySQL is with DBF Viewer 2000. This commercial software has been a savior many times with the many different list/database formats that I encounter and then have to convert between different formats.

          I also, like using NOTEPAD++ as my favorite editor. I can export from DBFViewer2000 to a SQL file and then edit the file with NOTEPAD++ before importing it into MySQL.

          An alternative to using the MySQL Workbench would be SQL-FRONT. Love this simple but very, very powerful MySQL Front end. I like to use this program to manually view, modify, create, etc... MySQL databases.

          Comment


            #6
            Re: Convert DBF Table to MySQL - Is there a best way?

            DBFViewer is nice and I like that it gives me more control over the convert process. Thanks for the tip. For my SQL frontend I really like Navicat because it works like Windows Explorer on steroids. My DBF is now behaving nicely in its new home, many thanks to both of you for the great help!
            Rapid Development, Training, Support
            http://data2web.network
            903-740-2549

            Comment


              #7
              Re: Convert DBF Table to MySQL - Is there a best way?

              What was the fix for the date issue?

              Comment


                #8
                Re: Convert DBF Table to MySQL - Is there a best way?

                From the control panel on the menu choose tools->database upsize genie
                Only if you have the upsize genie.
                Dave Mason
                [email protected]
                Skype is dave.mason46

                Comment


                  #9
                  Re: Convert DBF Table to MySQL - Is there a best way?

                  Allen, I never could fix the date issue as I could find nothing wrong with my date fields. I tossed the genie and used DBFViewer to convert to SQL without any problems.
                  Rapid Development, Training, Support
                  http://data2web.network
                  903-740-2549

                  Comment


                    #10
                    Re: Convert DBF Table to MySQL - Is there a best way?

                    I have converted a half dozen apps from DBF to SQL. I would not use upsize genie because it generates Active Link tables and is designed to allow you to continue to use DBF-style xbasic in your application. If you are really converting your app to SQL, don't use the Genie. Also I would not recommend export to Excel as an intermediary simply because there is no reason and Excel has no knowledge of your data types so your resulting SQL database will be useless.

                    Instead, create a new blank SQL database, create a connection string in your DBF app to the database and then select File Export and just export your DBF to SQL. Then go back to the new SQL database and ensure all of your TINYINT size 1 field are defaulted to zero and ensure each table has a primary key, often a newly added field named ID that is and autoincrement.
                    Steve Wood
                    See my profile on IADN

                    Comment


                      #11
                      Re: Convert DBF Table to MySQL - Is there a best way?

                      Thank you Steve for the input, I tried as you advised and it worked great the first time. Only problem I did have was that the MEMO fields only carried over the first 10 characters. Alpha gives memo fields a length of 10 so I know where that came from. How on earth do I transfer memo fields in their entirety? The most I can get from Alpha is 255 characters! The only reason why I have to use memo fields is that some fields require more than 255 characters but more often less than 1024.
                      Rapid Development, Training, Support
                      http://data2web.network
                      903-740-2549

                      Comment


                        #12
                        Re: Convert DBF Table to MySQL - Is there a best way?

                        If your memo fields only yield 10 characters, it means you have separated the *.DBF file from the other associated files. A DBF-based "table" has multiple files that must stay together, the *.FTP contains all of the memo text.
                        Steve Wood
                        See my profile on IADN

                        Comment


                          #13
                          Re: Convert DBF Table to MySQL - Is there a best way?

                          Steve, the upsize genie creates active link tables so that forms on desktop application can continue to function. Is it possible to have a form that is based directly on a MySQL table? (without using an active link table?)
                          Create windows desktop applications using pure web components.

                          Visit https://a5wd.com and download our Alpha Anywhere Library.

                          Comment


                            #14
                            Re: Convert DBF Table to MySQL - Is there a best way?

                            i don't think you can do that.
                            however there is lot of talk going on creating web component on desktop (wcd) in the desktop forum where you can connect directly to mysql.
                            wcd can connect directly to mysql and manipulate the data. take a look.
                            if you are interested in that, there are few people actively pursuing that. they might be able help if you have questions on that area.
                            thanks for reading

                            gandhi

                            version 11 3381 - 4096
                            mysql backend
                            http://www.alphawebprogramming.blogspot.com
                            [email protected]
                            Skype:[email protected]
                            1 914 924 5171

                            Comment


                              #15
                              Re: Convert DBF Table to MySQL - Is there a best way?

                              mr ggandi ..
                              you can use navicat for my sql and u will be able to convert dbf to MySQL
                              if you want I can pm u ... the application name and download link full version :)
                              if u still need dbf conversion

                              btw I am still waiting for your replay :)
                              xoxo
                              To live anywhere in the world today and be against equality because of race or color is like living in Alaska and being against snow.�

                              - William Faulkner

                              Comment

                              Working...
                              X