Results 1 to 7 of 7

Thread: Upgrading MS Access from 97 to SQL server 2012 express

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2012
    Posts
    433

    Upgrading MS Access from 97 to SQL server 2012 express

    I have a plan our database from MS Access 97 to SQL server 2012 express.
    The connection string will be changed, of course, but I don't know how much SQL statements should be changed except it.
    I want to know which part of SQL statement should be modified in my VB6 program.
    This information will be helpful for me to calculate the time required for program modification roughly.
    Can somebody who experienced this kind of work give some information?

  2. #2
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: Upgrading MS Access from 97 to SQL server 2012 express

    Well for starters any queries that use a Date field with # delimiters will need to be changed from #s to single quotes.
    Beyond that it depends on your queries there are some functions that are supported in MS Access but not in other databases.
    There are also some extended properties that will not be available in SQL Server. This is only an issue if you are using those currently.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2012
    Posts
    433

    Re: Upgrading MS Access from 97 to SQL server 2012 express

    Thanks for answer.
    May I ask you in regards to # delimeter?
    For example, how can following SQL statement be modified in SQL server?
    cmd.CommandText = "SELECT * FROM mytable WHERE createdate = #07/24/2014#"
    I don't get what you mean "...use a Date field with # delimiters will need to be changed from #s to single quotes"

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Re: Upgrading MS Access from 97 to SQL server 2012 express

    Code:
    "SELECT * FROM mytable WHERE createdate = '07/24/2014'"
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,930

    Re: Upgrading MS Access from 97 to SQL server 2012 express

    Thread moved to the 'Database Development' forum (the 'VB6' forum is only meant for questions which don't fit in more specific forums)

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2012
    Posts
    433

    Re: Upgrading MS Access from 97 to SQL server 2012 express

    Is ' delimeter used for string as well?
    Last edited by jdy0803; Jul 25th, 2014 at 04:54 PM.

  7. #7
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: Upgrading MS Access from 97 to SQL server 2012 express

    String delimiter is single quote in both Access and SQL Server

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