home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / nwsql.zip / NWSQL.TXT next >
Text File  |  1994-04-26  |  12KB  |  258 lines

  1.   
  2. ---------------------------------------------------------------------------
  3.  
  4. Revised: April 7, 1994
  5.  
  6. PEEKNMP.EXE  patch file to fix  winos2 named pipe problems with 
  7.               Microsoft products
  8. PEEKNMP.TXT  text file that describes PEEKNMP.EXE
  9. NWSQL.TXT    this file
  10.  
  11. Key Words: Named Pipes; WinOS2; MS-Access; ODBC; MS-SQL; Q+E PEEKNMP
  12.  
  13. The following procedures were developed for use with OS/2 2.1, Netware 
  14. Requester 2.01 for OS/2 (with R201FX.EXE - a self-extracting file of 
  15. patches) and MS-Access 1.1. As this is being written at the beginning 
  16. of April 1994, all of these versions are being updated:
  17.  
  18.  a) OS/2 2.1 has been recently updated with the Service Pak (XR6200).
  19.  b) Netware Requester 2.10 for OS/2 (NWR 2.10) is in beta test.
  20.  c) MS-Access 2.0 is in beta test.
  21.  
  22. The following information has been published about various OS/2 
  23. versions and the Netware Requester for OS/2.
  24.  
  25. When all pieces are available, it has been reported that IBM and Novell
  26. will support the following combinations of operating systems and 
  27. Netware Requesters for OS/2:
  28.  
  29.  1. OS/2 2.1 + XR6200 + NWR 2.10.
  30.  
  31.  2. DOS/Windows + OS/2 for Windows +XR6300 + NWR 2.10.
  32.  
  33. XR6200 is the official designation for the Service Pak for OS/2.  
  34. It became available at the beginning of March. XR6300 is apparently 
  35. the official designation for the Service Pak for OS/2 for Windows.  
  36. It has not been announced yet.
  37.  
  38. The following information is specific to the software versions noted 
  39. above.  The cookbook has been written to include information that 
  40. should be helpful to users even though they are using one or more later
  41. versions of the software packages .
  42.  
  43. Introduction:
  44.  
  45. Several users reported that they were unable to make Microsoft Access
  46. talk via ODBC over named pipes to MS-SQL Server over a Novell Netware
  47. network.  The following procedures fixed the problem.  Some of the
  48. procedures below are specific to MS-ACCESS ODBC and some are required
  49. for any named pipes interface from WinOS2 to MS SQL-Server for OS/2.
  50.  
  51. -----------------------------------------------------------------------
  52.  
  53.          How to make MS-Access talk via ODBC over a Named Pipe
  54.                           in a WinOS2 session
  55.  
  56. -----------------------------------------------------------------------
  57.  
  58. 1. Make sure you are using the latest version of the Novell Netware
  59.    Requester for os2 with the latest patches.
  60.         -- The requester is available via anonymous ftp at
  61.            HOBBES.NMSU.EDU (128.123.35.151) in the
  62.            /pub/os2/2_x/network directory.  The files are called
  63.            WSOS2_1, WSOS2_2, and WSDRV_1.
  64.  
  65.         -- download the R201FX.EXE fix from the NOVLIB or NOVFILES 
  66.            forum on CompuServe.  This is a self-extracting compressed
  67.            file that supplies a number of updated drivers for Netware.
  68.            Copy the files to directories according to instructions
  69.            included in the zip package.  (R201FX.EXE may also be
  70.            available at HOBBES.NMSU.EDU).
  71.  
  72. 2. Modify the OS2VER file which is in the root directory of your OS2 boot
  73.    drive.
  74.         -- OS2VER is a hidden, read-only, system file so before you can
  75.            edit it, change these attributes by typing
  76.                ATTRIB -H -S -R OS2VER
  77.  
  78.            Use any text editor to add the following lines to this file:
  79.                20=NMPIPE.SYS              (note no spaces around = sign)
  80.                20=NPSERVER.SYS
  81.                20=NPDAEMON.EXE
  82.  
  83.            Reset the attributes on this file by typing
  84.                ATTRIB +H +S +R OS2VER
  85.  
  86.         -- The above changes are described in the README file which OS2
  87.            creates on the boot drive at install time (look in the root or
  88.            \os2\book directories).
  89.  
  90. 3. Make sure that you've enabled Named Pipes support when the Novell
  91.    Netware requester was installed.
  92.  
  93.         -- When you install the requester, if you don't indicate that you
  94.            want named pipes support, all files are copied anyway but the
  95.            named-pipe-related statements are REMarked out in your
  96.            CONFIG.SYS file.  Remove the REM from the beginning of these
  97.            statements.
  98.  
  99.         -- Make sure you have the appropriate named-pipe statements in your
  100.            NET.CFG file.  (The following are default values; the values you
  101.            need to use may be different.  Use your Netware INSTALL program
  102.            for descriptions & explanations of what these statements do.)
  103.  
  104.                 NAMED PIPES
  105.                   CLIENT SESSIONS   16
  106.                   SERVER SESSIONS   32
  107.                   SERVICE THREADS    3
  108.  
  109.         -- Make sure that you have appropriate versions of the NETAPI.DLL
  110.            file in the correct places.  That means that the NETAPI.DLL file
  111.            from the \requestr directory on your Novell diskettes should be
  112.            in the \netware directory on your hard drive.  Also, the
  113.            NETAPI.DLL file from the \windows directory of your Novell
  114.            diskettes should be in the \os2\mdos\winos2\system directory
  115.            on your hard drive.
  116.  
  117.            (NOTE: In the documentation for MS-SQL Server, it recommends
  118.            that you put the NETAPI.DLL file from the \SQL directory of your
  119.            Novell diskettes in the \netware directory on your hard drive.
  120.            I don't recommend this, because this NETAPI.DLL causes problems
  121.            in other applications, such as Lotus Notes for OS2.  The
  122.            NETAPI.DLL from the \requestr directory has worked well for me
  123.            and keeps all the other apps on my machine happy.)
  124.  
  125.            (NOTE: In the documentation for Workstation for OS/2 that
  126.            comes with NWR 2.01, chapter 9 - Setting Up Named Pipes and
  127.            NetBIOS Protocols - includes a section titled 'Special
  128.            Instructions for SQL [sic] Client Workstations.'  This 
  129.            section recommends replacing the OS/2 NETAPI.DLL file from
  130.            the \requestr directory with the OS/2 NETAPI.DLL and
  131.            NETOEM.DLL files from the \SQL directory on the WSOS2_1
  132.            diskette.  As noted above, this recommendation seems to 
  133.            cause problems with Lotus Notes for OS/2.
  134.  
  135. 4. Set up a separate Winos2 program object on your os2 machine that 
  136.    includes custom settings under the Win-OS2 Settings options.  It
  137.    uses a separate AUTOEXEC.BAT file. (I call mine AUTOSQL.BAT) for
  138.    the DOS_AUTOEXEC setting.  This custom AUTOEXEC.BAT file needs to
  139.    loadTBMI2.COM.  It includes PEEKNMP.EXE for the DOS_DEVICE setting 
  140.    (PEEKNMP.EXE is specific to Microsoft products, see note below).
  141.  
  142.         -- If you have not already done so, install TBMI2.COM from
  143.             the Netware Requester 2.01.  Note the drive:\path.
  144.  
  145.         -- If you have not already done so, copy PEEKNMP.EXE from
  146.             this package to the drive:\os2\mdos directory.  'Drive' is
  147.             the drive on which OS/2 is installed.
  148.  
  149.         -- Set up AUTOSQL.BAT so that it loads the following program
  150.            when it runs, e.g.
  151.  
  152.                C:\os2\mdos\winos2\TBMI2.COM
  153.  
  154.         -- Open the settings notebook for the WinOS2 program object,
  155.            select the 'Session' page, double click on the
  156.            'Win-OS2 Settings' bar.
  157.  
  158.         -- Select the DOS_AUTOEXEC setting and enter the
  159.            drive:\path\filename for the AUTOEXEC file for this
  160.            program object, e.g. C:\AUTOSQL.BAT
  161.  
  162.         -- Select the DOS_DEVICE setting and enter the
  163.            drive:\path\filename for the PEEKNMP.EXE driver, e.g.,
  164.  
  165.               C:\os2\mdos\PEEKNMP.EXE
  166.  
  167.         -- Double click on the program object icon in the upper left
  168.            corner of the settings notebook to close the notebook and
  169.            update the settings.
  170.  
  171.            (NOTE: SQL Server includes two different interfaces for
  172.            Windows clients that connect to named pipes.  The interface
  173.            used by Microsoft requires PEEKNMP.EXE for Win-OS/2
  174.            sessions.  If you are using Windows client software from
  175.            vendors other than Microsoft that requires Windows named
  176.            pipes, it probably uses a different interface.  PEEKNMP.EXE
  177.            should not be necessary and probably should not be used.
  178.            For example, Windows software from Q+E Software, such as
  179.            their SQL Server driver that uses named pipes, does not
  180.            require the use of PEEKNMP.EXE)
  181.  
  182.  
  183. **********Steps 5, 6 and 7 are specific to MS-ACCESS and ODBC**********
  184.  
  185.  
  186. 5. Install MS-Access from this WinOS2 session.  This requires patching the
  187.    STFSETUP.INF program on the MS-Access Setup diskette.
  188.  
  189.         -- The Install program for MS-Access has a bug in it that causes
  190.            the install to fail under certain conditions on a regular
  191.            DOS/Windows 3.1 machine, as well as in a Winos2 session.  These
  192.            problems are documented and can be downloaded from the Mcrosoft
  193.            KnowledgeBase forum on CompuServe (report number Q102230).
  194.  
  195.         -- I will explain briefly what you need to do here:
  196.              a) make a backup diskette of your MS-Access Setup Diskette 1.
  197.              b) On the backup disk, use an editor to modify the
  198.                 STFSETUP.IN_ file.
  199.  
  200.              Change the ìSystem Paths| section from
  201.  
  202.              ìSystem Paths|
  203.              SYSTEMPATH = "" ? DETCMD.DLL GetWindowsSysDir
  204.              WINDOWSPATH = "" ? DETCMD.DLL GetWindowsDir
  205.              HARDDRIVELIST  = "" ? DETCMD.DLL GetAllValidLocalHardDrives
  206.              NETDRIVELIST = "" ? DETCMD.DLL GetAllValidNetworkDrives
  207.  
  208.                to
  209.  
  210.              ìSystem Paths|
  211.              SYSTEMPATH = "" ? DETCMD.DLL GetWindowsSysDir
  212.              WINDOWSPATH = "" ? DETCMD.DLL GetWindowsDir
  213.              HARDDRIVELIST = "" ? DETCMD.DLL GetAllValidLocalHardDrives
  214.              NETDRIVELIST = "" ? DETCMD.DLL GetAllValidNetworkDrives
  215.              WINDOWSMODE = "" ? DETCMD.DLL GetWindowsMode
  216.  
  217.               Then change the following
  218.  
  219.              DoShareStuff = +
  220.                set CurrentDialog = DoShareStuff
  221.                set MAKEBAK = "NO"
  222.                ui start VSHARERunning
  223.              ifstr $(ANSWER) == "NO"
  224.  
  225.                     to
  226.  
  227.              DoShareStuff = +
  228.                set CurrentDialog = DoShareStuff
  229.                set MAKEBAK = "NO"
  230.              ifstr $(WINDOWSMODE) != "ENHANCED"
  231.                set ANSWER = "NO"
  232.              else
  233.                ui start VSHARERunning
  234.              endif
  235.                 ifstr $(ANSWER) == "NO"
  236.  
  237. 6. After you have successfully loaded MS-Access, install the ODBC software.
  238.    This install should proceed with no problems.
  239.  
  240.         -- Install the ODBC Administrator program (ODBCADM.EXE) so that you
  241.            can set up ODBC database sources.
  242.  
  243. 7. Finished !  You should be up and running at this point.  When you start
  244.    the ODBC Adminstrator, you should be able to click on the ìServers┘
  245.    listbox and see the names of your Named Pipe servers out on the network.
  246.    You should also be able to start MS-Access and attach a database table
  247.    from the SQL Server to a local Access database.
  248.  
  249. 8. If you have problems, check that the following files are in the correct
  250.    directories
  251.         -- See number 3 above to make sure you have the right NETAPI.DLLs
  252.            in the right places.
  253.  
  254.         -- the files DBNMP3.DLL, SQLSERVR.DLL, and W3DBLIB.DLL should be
  255.            in your \os2\mdos\winos2\system directory.
  256.  
  257.  
  258.