Results 1 to 2 of 2

Thread: Close recordsets, Workspaces & Databases

  1. #1

    Thread Starter
    Fanatic Member Gary.Lowe's Avatar
    Join Date
    May 2000
    Location
    In my sphere of influence
    Posts
    621

    Unhappy

    Does anybody know how to check to see if there are any open database connections, workspaces and recordsets in a project.

    If there are any is it possible to create a collection loop through it and close them all.

    Any suggestions would be appreciated.

    Thanks

    Gary Lowe
    VB6 (Enterprise) SP5
    ADO 2.6
    SQL Server 7 SP3

    OK I know my spelling and grammer is crap so don't quote me on it!

    To err is human to take the P! is only natural !!

    Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip


  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Syntax

    CLOSE
    [ALL | ALTERNATE | DATABASES [ALL] | DEBUGGER
    | FORMAT | INDEXES | PROCEDURE | TABLES [ALL]]

    Arguments

    ALL

    Closes all open databases, tables, and indexes in all work areas and selects work area 1. CLOSE ALL also closes any files opened with the FCREATE( ) and FOPEN( ) low-level file functions. CLOSE ALL does not close a file opened with SET PRINT.

    CLOSE ALL also closes the following:

    Form Designer


    Project Manager


    Label Designer


    Report Designer


    Query Designer
    CLOSE ALL does not close these:

    Command window


    Debug window


    Help


    Trace window
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

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



Click Here to Expand Forum to Full Width