Results 1 to 5 of 5

Thread: Changing databases in VB 2005

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2008
    Posts
    21

    Question Changing databases in VB 2005

    I hope someone can offer me some advice on this issue.

    I created a running program in VB 2005 Express Edition using a MySQL database. I have over 400 lines of code. How difficult would it be to change this program over to an Access database? I installed a converter that converts the MySQL database over into an Access database. How will this effect my program in VB? Would it cause me to have re-code the whole entire program? Any help or suggestions would be greatly appreciated.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Changing databases in VB 2005

    Different connection string, and possible different Imports (I'm not familiar with MySQL), however, if the table structures are identical, then that would be the only coding changes.
    Last edited by Hack; Mar 28th, 2008 at 11:17 AM.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2008
    Posts
    21

    Re: Changing databases in VB 2005

    Thank you for your quick response. I'll give it a shot and see what happens.

  4. #4
    Hyperactive Member
    Join Date
    Jul 2007
    Posts
    479

    Re: Changing databases in VB 2005

    I'm not 100% sure it is mandatory but I have always coded SQL statements on an Access database surrounded with # eg. #03/28/2008#

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Changing databases in VB 2005

    # signs would be for dates, not SQL statements and the # signs are unique to Access and not required, or supported, in other databases (at least none of which I'm aware.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width