Results 1 to 5 of 5

Thread: See This

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Earth
    Posts
    171

    See This

    I'm using Oracle 9i and VB 6.0. What I want is that at the time of app start I want to make connection to oracle taking the username,password and hoststring from my User.Any body knows how to get the all the valid users and host strings of Oracle in VB.I want to show them to the user in a combo.Thanks in advance

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Earth
    Posts
    171
    Is there any body out here. why no one is not even looking into this.

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Erm.

    Have a look at Environ$(<number>) where <number> is a valid number from 0 upwards.

    If you use Debug.Print and loop through you can see all the environment settings on the computer, of which one might be the user name. Otherwise you'll need a log on screen.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Earth
    Posts
    171
    Ofcourse I require a Logon screen and in the Logon screen I have two combo one for User and other for Host String.And I need to fill those combos with valid users and host strings.

  5. #5
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    Have a look at ADOX as this has extended functions to ADO - might be a way of getting the user information.

    I personally wouldn't use a drop down list, let the user type their logon correctly, or pull it from the machine.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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