Results 1 to 5 of 5

Thread: login failed to database [B][Resolved][B]

  1. #1

    Thread Starter
    Fanatic Member d2005's Avatar
    Join Date
    Aug 2005
    Location
    ireland
    Posts
    620

    login failed to database [B][Resolved][B]

    Resolved
    Dim oSQLConn As SqlConnection = New SqlConnection
    oSQLConn.ConnectionString = "Data Source=(local);" & _
    "Initial Catalog=Con_Test;" & _
    "Integrated Security=SSPI"
    oSQLConn.Open()

    this doesnt work as i get an error,

    login failed for user 'computername'
    Line 33: "Initial Catalog=Con_Test;" & _
    Line 34: "Integrated Security=SSPI"
    Line 35: oSQLConn.Open()
    Line 36:
    Line 37:

    anybody any ideas of connecting to a databse for asp.net
    i really want to get connected but cant
    Last edited by d2005; Aug 29th, 2005 at 12:26 PM.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: login failed to database

    Mmmmmm.... try looking here: ConnectionString.com it looks as though your connectionstring isn't quite right.

    Also, make sure that the user you are loging in as has permissions to the server & database. You may think you are loging in as yourself, but ASP runs under it's own user context and logsin to database as that ASP user.

    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
    Fanatic Member d2005's Avatar
    Join Date
    Aug 2005
    Location
    ireland
    Posts
    620

    Changing permissions

    how do i go about changing the permissions????, i was trying to write to a text file as a test and access was denied this may be my stumbling block,

    thanks keep the change

    yeah it connects , thanks a million buddy
    Last edited by d2005; Aug 29th, 2005 at 10:39 AM.

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: login failed to database

    SO, does it work now then? Or is there still a problem?

    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??? *

  5. #5

    Thread Starter
    Fanatic Member d2005's Avatar
    Join Date
    Aug 2005
    Location
    ireland
    Posts
    620

    Re: login failed to database

    sorry i didnt edit the message too good.
    aye she connects now for theres no errors coming up.
    what now would be my next plan of action, after the connection.

    i want to have like a registration page and want to write then from the textboxes to the database.

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