469,346 Members | 6,542 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,346 developers. It's quick & easy.

Error in Connection

Hello I have a problem of connection with SQL SERVER from
Visual VB.NET Studio, but in WebMatrix all this good.
Error:

"Cannot open database requested in login 'tonet'. Login
fails. Login
failed for user 'ANTRAX\ASPNET'.
Description: An unhandled exception occurred during the
execution of the
current web request. Please review the stack trace for
more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
Cannot open
database requested in login 'tonet'. Login fails. Login
failed for user
'ANTRAX\ASPNET'.

Source Error:
Line 43: dataAdapter.SelectCommand = dbCommand
Line 44: Dim dataSet As System.Data.DataSet = New
System.Data.DataSet
Line 45: dataAdapter.Fill(dataSet)
Line 46:
Line 47: Return dataSet

Nov 17 '05 #1
1 1347
Just curious are you using Windows or SQL authenication to login to the
server.

Plus did you make sure that user you are logging in as has rights to the
database on the server you want to use?

Just a couple of things to check.

M
"PABLIN" <pa******@hotmail.com> wrote in message
news:03****************************@phx.gbl...
Hello I have a problem of connection with SQL SERVER from
Visual VB.NET Studio, but in WebMatrix all this good.
Error:

"Cannot open database requested in login 'tonet'. Login
fails. Login
failed for user 'ANTRAX\ASPNET'.
Description: An unhandled exception occurred during the
execution of the
current web request. Please review the stack trace for
more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
Cannot open
database requested in login 'tonet'. Login fails. Login
failed for user
'ANTRAX\ASPNET'.

Source Error:
Line 43: dataAdapter.SelectCommand = dbCommand
Line 44: Dim dataSet As System.Data.DataSet = New
System.Data.DataSet
Line 45: dataAdapter.Fill(dataSet)
Line 46:
Line 47: Return dataSet

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Chris Szabo | last post: by
4 posts views Thread by Troy | last post: by
2 posts views Thread by Chuck Ritzke | last post: by
3 posts views Thread by Adriano | last post: by
2 posts views Thread by =?Utf-8?B?U3VuaWwgUGFuZGl0YQ==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.