|
data base unlimited data base unlimited |
||||||||||
|
||||||||||
|
Home Up Access 2 sp's
|
Access 2AccessAccess 2 to SQL7 or 2000Have you tried it yourself? Have you had a frustrating time? Most of this is hard to find, even at Microsoft PSS -- yet the answer is quite simple. To use SQL Server databases from Access 2 you need to do the following: Change the SQLSRVR.DLLWhen Access 2 is installed to include ODBC drivers, it will put a SQLSRVR.DLL in the \winnt\system directory on NT4. This is a 16-bit DLL which was last upgraded for SQL Server 6.5 SP3. The default version installed is version 1.02.3231. The latest version is version 2.56.0252 (do NOT trust the dates!). Overwrite the old version with this new version which available on the SQL7 disks under the \SQL65\SP4 directory. Change the ODBC.DLLAccess 2 installs version 1.05.0916. The last 16 bit version was 2.10.2401 (available in Visual Studio disk2, \sql\clients\). You need to install this version which allows access to 32-bit defined ODBC sources (DSN's -- the only thing Access 2 understands when attaching tables.) For a fuller understanding of 16-bit applications with 32-bit drivers see "Using 16-bit Applications with 32-bit drivers" in the Microsoft MSDN Library. If you install ODBC.DLL and SQLSRVR.DLL in the stated versions, you will be able to attach SQL7 tables for read and update. However: SQL7 (as compared with SQL 6.5) functionality is not supported
If you have the older DLL's you will have to edit manually the ODBC.INI file You cannot edit the ODBC.INI file through the ODBC32 control panel applet, so you have to do it by hand. You will find a section called [ODBC 32 bit Data Sources]. Disregard it. We are back in the world of 16-bit. You will however find a section like this: ODBC Data Sources] - 1 [MS Access 2.0 Databases] - 3 Notice that the syntax of section 1 includes no mention of SQL Server. Line 2 contains the generic description; line 3 gives the detail for the generic description (description and header must match exactly -- case sensitive too) To add a SQL or MSDE data source you need to amend this area: [ODBC Data Sources] You can put anything you like in this area as long as the label matches the entry below (2).
If they contain numbers you will not be
able to update them (ODBC returns "ODBC driver does not support this
function").
Copyright DBU 2000.
|
Location Map
Updates
|
||||||||