Results 1 to 2 of 2

Thread: detect DB connection

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Connecticut
    Posts
    98

    detect DB connection

    I have some code where I am connecting to a SQL-7 DB. I want to be able to detect the open connection & pass the user into the site.

    Whats the correct syntax for this?

    objConnection.Open()
    > detect connection here<

    Thanks,
    ~Piz

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Not sure what your asking here.. but to detect the state of the connection object, use .state
    Code:
    objConn.State
    Possible values are:
    adStateClosed
    adStateOpen
    adStateConnecting
    adStateExecuting
    adStateFetching
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

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