|
-
Aug 29th, 2005, 08:32 AM
#1
Thread Starter
Fanatic Member
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.
-
Aug 29th, 2005, 09:17 AM
#2
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
-
Aug 29th, 2005, 10:22 AM
#3
Thread Starter
Fanatic Member
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.
-
Aug 29th, 2005, 10:55 AM
#4
Re: login failed to database
SO, does it work now then? Or is there still a problem?
Tg
-
Aug 29th, 2005, 11:03 AM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|