Microsoft KB Archive/42303

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:56, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

INF: Using Browse Mode in DB-Library

Q42303



The information in this article applies to:


  • Microsoft SQL Server Programmer's Toolkit, version 4.2





SUMMARY

The following is information on using browse mode in DB-Library (DB-Lib):


  1. The table must have a Timestamp column, as follows:

          create table xxx (columnname datatype,
                            columnname datatype,
                              .
                              .
                              .
                            TIMESTAMP           )
     
  2. The table must have a unique index, and the following must be true:

    1. The index must be defined before any data is added.
    2. The definition of primary key with sp_primary key is not required.
  3. The SELECT statement must include the FOR BROWSE option.



MORE INFORMATION

The dbtabbrowse function indicates whether browse is permitted on a table. If the return value from dbtabbrowse is not 1 after the dbresults for the SELECT...FOR BROWSE, browse will not work. Check that the table has a unique index and that the Timestamp column contains non-null data.

SELECT * FROM... after data is added to the table should produce values in the Timestamp field even though no values were entered on the INSERT statement.

Additional query words: dblib

Keywords : kbprogramming
Issue type :
Technology : kbSQLServSearch kbAudDeveloper kbSQLServPTK420


Last Reviewed: March 7, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.