Results 1 to 6 of 6

Thread: How to improve compatibility with MSSQL and ACCESS

  1. #1
    Join Date
    Feb 2010
    Posts
    644

    How to improve compatibility with MSSQL and ACCESS

    Hi all,

    We all know that ASP among the most commonly used is the ACCESS and the two MSSQL databases. Many programs want to develop into two databases can be used to model, but because of the two databases of some SQL statements were inconsistent, resulting in a lot of unnecessary programs in two versions, that is, ACCESS, and MSSQL . So, I want to know that how in the end there is a database program compatibility and get to function efficiently. Please suggest. Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    How to improve compatibility with MSSQL and ACCESS

    You have to use control method in a parameter, the operation of the program to know that you are now what is the database.

    Code:
    Const SystemDatabaseType123 = "ACCESS" 'system, database type, "SQL" as the MSSQL 2005 Database, "ACCESS" database for MS ACCESS 2003.
    This is the compatibility of a basis to begin the whole process a database discriminant. Therefore, it is very necessary to set such a parameter.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    How to improve compatibility with MSSQL and ACCESS

    The database connection method and commonly used functions of the distinction between is helpful to improve compatibility with MSSQL and ACCESS. The differences between the database connection after the MSSQL and ACCESS will also be used for variable assignment statements. The benefits of doing so is that behind the use of relevant content when a variable can be used directly call the method, rather than the need for a database type of judgments.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    How to improve compatibility with MSSQL and ACCESS

    Many people write MSSQL database is like to use conn.execute statement, instead of using the open method. Although the speed at which a lot of time conn.execute than open a way as to speed a bit. But this is not to generalize. For example, in a process to determine whether there is already among the algorithms. If you have already used the open had the judgments BOF or EOF, then you should use to judge conn.execute, then speed, certainly not as good as a direct change in the OPEN good. Moreover, in the code which open the way compatibility is far higher than conn.execute. For example, a function of time now () to use. Check and reply.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    How to improve compatibility with MSSQL and ACCESS

    You can use conn.execute. But I was not to generalize. For example, if it is a less used, is not a frequent reading process. I would choose to use the OPEN method instead of using the conn.execute way. Although the speed of this process will be reduced. But this does not affect my use, so I chose to OPEN mode. The reason is simple, that is, the compatibility choice. I suggest you to also prefer same choice. Best of luck.

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    How to improve compatibility with MSSQL and ACCESS

    When you encounter some compatibility can not be resolved, or the like conn.execute and OPEN when the pursuit of way. you can use the previous SystemDatabaseType parameter settings to determine, and then the appropriate use of different code.Such as:
    Code:
    If SystemDatabaseType = "MSSQL" Then
    'MSSQL database using the code
    Else
    'ACCESS database using the code
    End If
    This will ensure program efficiency and stability.

Similar Threads

  1. How to improve access security in third layer switches
    By Daniela007 in forum Networking & Security
    Replies: 5
    Last Post: 11-03-2010, 03:23 AM
  2. Methods to improve the usability and compatibility of a website.
    By Maadhav in forum Technology & Internet
    Replies: 4
    Last Post: 07-03-2010, 01:11 AM
  3. Tips to improve subform performance in Access.
    By Karleen in forum Tips & Tweaks
    Replies: 2
    Last Post: 29-01-2010, 03:54 AM
  4. Replies: 3
    Last Post: 16-09-2008, 04:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,719,882.80989 seconds with 16 queries