Access conversion to SQL



Hi all.

I have an application that currently connects to an Access database, now the
customers are asking for a MySql and MsSql server back end database.

MySql handles True and False values through the bit field without any
problems, MsSql doesn't. I can't even use the words True or False in an Sql
statement.

This means I have to write two loads of code for every transaction where
there is a true/false value involved, a complete pain.

It also gives me the problem of setting controls true/false value by
checking a table field:
chkAdmin.Checked = GetField("select admin from users where
username='Bert';", "admin")
(Get field is a routine that loads a data record and returns the field as
the second parameter)

As SQL never returns a true or false value in this way I have to write extra
code for every check, or checked list, etc.

Is there a way around this?

Cheers,
Tull.


.



Relevant Pages

  • Interesting ODBC problem
    ... I have just converted a guestbook to use an Access database rather than ... MySQL via odbc and have come across an unusual problem. ...
    (comp.lang.php)
  • Re: Pocket Access - Sync to Linked Table?
    ... syncronizes a Pocket Access database with my Access ... I can then maintain my DB within Access and syncronize the PDA ... Recently I've re-created my tables in MySQL, set up ODBC connections to them ... Pocket Access database through ActiveSync anymore because the linked tables ...
    (microsoft.public.pocketpc.activesync)
  • Re: oledb
    ... the end result of ODBC and OLEDB is the same. ... One thing I like about MySql is that it is very easy to ... Ever set up MSSQL server? ... back the installer is still running, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Access VB6 sum bug
    ... If i create money fields same error occurs in MSSQL Server 2000 (With sp3). ... Frustrating. ... >> If i open access database and execute that query there is no problem. ...
    (microsoft.public.vb.bugs)
  • Re: oledb
    ... I've had more luck with ODBC. ... One thing I like about MySql is that it is very ... Ever set up MSSQL server? ... when you get back the installer is still running, ...
    (microsoft.public.fox.programmer.exchange)