Results 1 to 4 of 4

Thread: dbCountSQL

  1. #1
    Join Date
    May 2003
    Posts
    7

    dbCountSQL

    I'm having trouble with CountSQL (as displayed by dbDebug = "104") not being set correctly.

    The attached code shows the problem using Northwind.

    If the line of the sql that begins with "group by...." is dropped, then CountSQL is derived correctly.

    If "group by...." is left in, then CountSQL is not derived correctly or if dbCountSQL is supplied, dbCountSQL is ignored.

  2. #2
    Join Date
    Oct 2002
    Posts
    933
    i see no attachments. overall, dbcountsql is used when complex queries is in action. in this case, you specify the query and asp-db will use this to get the record count instead of guessing.


    fk

  3. #3
    Join Date
    May 2003
    Posts
    7
    Version: ASPDB2002-05.03-NT4-SP3-ADO21-MTS-Gold
    Attached Files Attached Files

  4. #4
    Join Date
    Oct 2002
    Posts
    933
    1. Your dbSQL is not valid.

    2. Check out dbNameMap doc -
    http://www.aspdb.com/aspdb/doc2002/dbnamemap.shtm

    At the bottom goto the complex query example CaseStudy #23.

    there are a few complex queries example in the examples area. Contact support to locate it if you cannot dig it out.

    FK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •