SPONSORS:






User Tag List

Results 1 to 3 of 3

Thread: Server login

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Location
    Hillsboro
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Server login

    I'm trying to do a DBConnect with a database located on a server where there is guest access, however I'm logged into the machine running the scripts as Administrator. The machine tries to use the Administrator login to access the server housing the database. How can I programatically tell it to use a different username?

  2. #2
    Junior Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Server login

    Have you read the SilkTest help?

    The DB_Connect("con_string") command help tells you that you can login as a different user if the odbc driver supports it. The key part of the help is 'See your supplier's reference manual for the format of the string required for your driver'.

    Example
    hdbc = DB_Connect("DSN=QESS;SVR=PIONI;UID=sa;PWD=tester")

    Regards,

    Andrew

    ------------------

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Location
    Hillsboro
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Server login

    Thanks for your reply, however the DB_Connect function's username and password is for accessing the database file itself, it's not used for authenticating you on the server. I'm not sure if I clearly explained my problem.

    Any other ideas?

    Thanks!

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:01 PM.

Copyright BetaSoft Inc.