Results 1 to 5 of 5

Thread: ADO connection damn slow

  1. #1
    Guest

    Post

    My condition:
    every single form in my application on form load i've got to establish connection. The communication in this application consist between one menu application(*.exe) with varity of other application(*.exe)- using windows shell.
    Formerly i'm using Delphi which is easier to uses unit (Unit pascal), I haven't try ADO yet with Delphi. But i think the concept of the connection might be the same in VB.

    My question:
    Is it posible to me to establish connection once at appliaction first loading then use it on any form that i like within the application? Can you tell the concept or the procedure.


    -Khamal-

  2. #2
    Lively Member
    Join Date
    Aug 1999
    Location
    Blackpool, England
    Posts
    87

    Post

    Create an application Class Module that is called from sub main at startup. use this class to set all your global project properties like application name, database connection and disconnection etc.

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    use a single, global connection object for all of your forms (assuming you are only accessing 1 database)

  4. #4
    Guest

    Post

    Thanx for both of you, Steven and Clunietp....

    One final question to clunietp. Do you really work with Microsoft? If no then Microsoft should employ you Thanx to all for the tips. The idea on Class object is interesting (As Object....cool).

    Khamal

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    No, I don't work for MS...

    A Microsoft developer is a person who develops with/specializes in different MS tools and technologies (like VB, ASP, SQL Server, MS Access, MTS, etc)

    I develop solutions using many different MS tools, so I would be called a Microsoft developer, instead of just a Visual Basic developer. (although VB is my specialty)

    Thanks for caring!

    Tom




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