Results 1 to 4 of 4

Thread: ASP-MSDE connection problems[closed]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    203

    ASP-MSDE connection problems[closed]

    Trying to get an ASP page to connect to a MSDE DB


    When I use this :
    MyConnection = New SqlConnection("server=(local);database=northwind; uid=sa; password=testpassword")

    I get this

    Cannot open database requested in login 'northwind'. Login fails. Login failed for user 'sa'.


    and When I use this ( my Windows logon)

    MyConnection = New SqlConnection("server=(local);database=northwind; uid=manektalau1; password=testpassword")

    I get
    Login failed for user 'manektalau1'

    the problem persist even if I add my domain name before my windows logon....


    when I do this C:\>osql -u or this C:\>osql -e
    I get

    Error: No user selected. Try with -U or -E switches


    I have already changed that authentication mode registry setting from 1 to 2.
    Last edited by udit99; Jul 15th, 2004 at 10:12 AM.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    By default sa has no password. Unless, you've changed it, try that.

    Some thing else to look at: Make sure the user has permissions to use the database.


    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    203
    I dont know about the previous MSDE version but the one that I installed won't let me install it without a strong password....so I do have a password for sa...and as far as the security thing goes...at first it was hard for me to figure out without any client tools as to how I could check for security...but then I installed MS SQL Web Data Administrator and it gave me this....I assume this means that I have all the rights to the db.

    EDIT USER DBO


    Login name: centralcollege\manektalau1
    Roles: public checked
    db_owner checked
    db_accessadmin checked
    db_securityadmin checked
    db_ddladmin checked
    db_backupoperator checked
    db_datareader checked
    db_datawriter checked
    db_denydatareader checked
    db_denydatawriter checked

    so I still can't figure out why its giving me a Login Failed !!

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    203

    it works now!!

    I tried the sa login now and it works!!...the Windows Authent. doesnt...but that doesnt matter

    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
  •  



Click Here to Expand Forum to Full Width