WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Retrieve Data from a Database File


Keywords: Field Record DB Data Base Database

Here are the different ways Winbatch can retrieve data from a database file:

  1. Binary Operations Use binary functions to extract the data from the file. Use this if the .dat file is a loosely formatted flat ascii file, and you know a keyword to search for in the data.

    Functions: BinaryAlloc, BinaryRead, BinaryIndexEx, BinaryPeekstr, BinaryFree

    Documentation: See Windows Interface Language help file

    Please see:
    http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/TCPIP~and~IP~Address+Run~Winipcfg~Write~Output~Parse~Output.txt

    http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UDF~-~UDS~Library/Binary~Operations+Binary~Search~for~String.txt

  2. ODBC Use Open Database Connectivity (ODBC), which is a standard for accessing different database systems. Use this if you have the appropriate ODBC database driver installed.

    Functions: qAllocConnect, qAllocEnv, qAllocStmt, qBindCol, qConnect, qDisconnect, qExecDirect, qFetch, qFreeConnect, qFreeEnv, qFreeStmt, qGetData

    Documentation: See ODBC Extender help file (if not already installed, install this Extender from your CDROM)

    Please see:
    http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/Odbc~Extender+Explanation~of~ODBC~Usage.txt

    http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/Odbc~Extender/Sample~Code+ODBC~Example.txt

  3. ADO (OLE) ADO enables you to write an application to access and manipulate data in a database server through an OLE DB data provider. ADO's primary benefits are high speed, ease of use, low memory overhead, and a small disk footprint.

    Functions: ObjectOpen, ObjectClose

    Documentation: See OLE 101 section of the Windows Interface Language help file, and Microsoft's ADO documents online.

    Please see:
    http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/ADO~DAO

    http://msdn.microsoft.com/library/en-us/odeopg/html/deovradoobjects.asp?frame=true

    http://msdn.microsoft.com/library/en-us/odeopg/html/deovradocomponentlibraries.asp?frame=true

  4. LAFFDB The (LAFFDB) Light ASCII Flat File DataBase Extender is a Windows Interface Language (WIL) Extender that is designed to support a simple multicolumn database.

    Functions: dbBindColBinds, dbClose, dbFindRecord, dbGetColumnCount, dbGetEntireRecord, dbGetNextItem, dbGetRecordCount, dbGetRecordField, dbOpen

    Documentation: See LAFFDB Extender help file (if not already installed, install this Extender from your CDROM)

    Please see:
    http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/LAFFDB~Extender

  5. CSV File Access Use this if the file is formatted as .CSV (Comma Seperated Value) file.

    Functions: FileGet, ArrayFileGetCSV, ItemCountCSV, ItemExtractCSV

    Documentation: See Windows Interface Language help file


    Article ID:   W16469
    
    File Created: 2014:07:18:09:51:38
    Last Updated: 2014:07:18:09:51:38