Will existing DAO code work against a SQL Server?

后端 未结 4 1501
清歌不尽
清歌不尽 2021-01-03 08:14

If I transfer data from a Access MDB into a SQL Server, will DAO code in a VB app work against the SQL Server.

I realise there will need to be changes to the initial

4条回答
  •  醉话见心
    2021-01-03 08:25

    It all depends on how you are exchanging with the database:

    1. You are using "SQL type" instructions, like "INSERT INTO bla(...)", either in your code or in access queries: you'll have to check that your code is SQL-Compliant. There are many Access (or shall I say Jet?) functions like isnul() that have to be reinterpreted in SQL
    2. You are manipulating DAO recordsets for updates, inserts and deletes. Once the recordset is open with the right SELECT instruction (see previous ...), the right connection string and the right authorisations on the server, you should be ok.

提交回复
热议问题