INF: Small Windows DB-Library Sample Application

Last reviewed: November 7, 1997
Article ID: Q79860

The information in this article applies to:
  • Microsoft SQL Server Programmer's Toolkit, version 4.2

SUMMARY

SQLWin is a small, fully functional Windows DB-Library (DB-Lib) application. It allows the user to specify a server name, login ID, and password when connecting to a SQL server. It also displays the DB-Lib version in the About box.

SQLWin can be used as a template for creating larger Windows DB-Lib programs, much like the GENERIC program that comes with the Microsoft Windows Software Development Kit (SDK) and Microsoft QuickC for Windows.

SQLWin can also be used to easily test the functionality of a Windows DB- Lib program. The source code contains a C function called DoDblib() that is executed when the menu item SQL/Test is chosen. This function can contain any set of DB-Lib functions. It currently contains a small sample query against the PUBS database.

MORE INFORMATION

The SQLWIN.EXE file contains the following files:

   Filename       Description
   ---------------------------------------------------------

   SQLWIN.C       C-language source code
   SQLWIN.H       Source code header
   SQLWIN.RC      Windows resource script
   SQLWIN.DEF     Windows module-definition file
   SQLDLG.DLG     Dialog box resource script
   SQLDLG.H       Dialog box header
   SQLDLG.RES     QuickC for Windows Dialog Editor resource
   SQLWIN.MAK     QuickC for Windows Project
   SQLWIN.        C 6.0 NMAKE makefile

You can find SQLWIN.EXE (size: 21397 bytes) 
                       , a self-extracting file, on the following services:

  • Microsoft's World Wide Web Site on the Internet

          On the www.microsoft.com home page, click the Support icon.
          Click Knowledge Base, and select SQL Server.
          Enter kbfile <FILENAME>.EXE, and click GO!
          Open the article, and click the button to download the file.
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the Softlib/Mslfiles folder.
          Get <FILENAME>.EXE
    
  • The Microsoft Network

          On the Edit menu, click Go To, and then click Other Location.
          Type "mssupport" (without the quotation marks).
          Double-click the MS Software Library icon.
          Find the SQL Server product area.
          Locate and Download <FILENAME>.EXE.
    
  • Microsoft Download Service (MSDL)

          Dial (425) 936-6735 to connect to MSDL
          Download <Filename>.exe
    

    For additional information about downloading, please see the following article in the Microsoft Knowledge Base:

       ARTICLE-ID: Q119591
       TITLE     : How to Obtain Microsoft Support Files from Online
                   Services
    

  • Additional query words: dblib
    Keywords : SSrvDB_Lib SSrvProg kbprg
    Version : 4.2
    Platform : WINDOWS
    Solution Type : kbfile


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: November 7, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.