Re: Login failed for user
- From: "shank" <shank@xxxxxxxxxxxxxxx>
- Date: Sat, 20 Jun 2009 12:17:30 -0400
Line 42: connOrders.Open(MM_SQLD3_STRING)
The above is line 42. I can read in the whole site. Profiles,
recordsets,etc. But when I try to write anything to a table, I get the
error.
thanks
"Aaron Bertrand [SQL Server MVP]" <ten.xoc@xxxxxxxxxxxxxx> wrote in message
news:C6626D43.1D7F3%ten.xoc@xxxxxxxxxxxxxxxxx
What is line 42? This error SHOULD happen on the .open line for the
connection itself, so should have absolutely nothing to do with whether
you
are reading or writing.
On 6/20/09 10:30 AM, in article ueWHKLb8JHA.2120@xxxxxxxxxxxxxxxxxxxx,
"shank" <shank@xxxxxxxxxxxxxxx> wrote:
I'm on a shared server and don't have access to the logs. Support said
they'd send them overnight. Didn't happen. Here's what's happening...
1) I'm using the same connect string as on all my other sites. This
particular site is on a different network than all others. I don't think
that makes a difference though.
2) I can login with SSMS using the below user/password. I can also
edit/update a record in the same tables I'm accessing with SSMS.
3) But from the website, I can only read. I cannot write. That's when I
get
the error.
4) The DB owner is 'chic' and the schema name is 'abn'.
5) The table I'm trying to write to is: STH > Properties > Permissions >
View schema permissions > View database permissions > Effective
permissions
and for user 'chic' I have it appears all permissions including delete,
insert, update.
6) The table I'm trying to write to is: STH > Properties > Permissions >
View schema permissions > Effective permissions and for user 'chic' I
have
it appears all permissions including delete, insert, update.
What can I do to troubleshoot further?
Schema Name: abn
Owner: chic
Microsoft OLE DB Provider for SQL Server error '80040e4d'
Login failed for user 'Chic'.
/rev.asp, line 42
Connect string in Dreamweaver:
<%
'REMOTE CONNECT STRING
Set MM_SQLD3_STRING = Server.CreateObject("ADODB.Connection")
MM_SQLD3_STRING.Provider = "sqloledb"
MM_SQLD3_STRING.Properties("Data Source").Value =
"SQLD3.sqlcontrolcenter.com"
MM_SQLD3_STRING.Properties("Network Library").Value = "dbmssocn"
MM_SQLD3_STRING.Properties("Initial Catalog").Value = "MyDB"
MM_SQLD3_STRING.Properties("User ID").Value = "Chic"
MM_SQLD3_STRING.Properties("Password").Value = "password"
MM_SQLD3_STRING.open
%>
thanks
====================================
"Uri Dimant" <urid@xxxxxxxxxxx> wrote in message
news:%23Gra9IL8JHA.4820@xxxxxxxxxxxxxxxxxxxxxxx
shank
Has the user mapped to to the login? Do you connect succefull from SSMS?
Please look at the state of the error from ERROR.LOG which you have not
provided
"shank" <shank@xxxxxxxxxxxxxxx> wrote in message
news:%23EuWlnH8JHA.1740@xxxxxxxxxxxxxxxxxxxxxxx
I'm using classic ASP and trying to insert an order into SQL2005
tables.
I've done this many times using the same connect string on other sites.
On this site I'm getting the below error. One big difference between
this
site is it's on a totally different host than the others. But I don't
think that should be an issue.
Schema Name: abn
Owner: chic
Microsoft OLE DB Provider for SQL Server error '80040e4d'
Login failed for user 'Chic'.
/rev.asp, line 42
Connect string in Dreamweaver:
<%
'REMOTE CONNECT STRING
Set MM_SQLD3_STRING = Server.CreateObject("ADODB.Connection")
MM_SQLD3_STRING.Provider = "sqloledb"
MM_SQLD3_STRING.Properties("Data Source").Value =
"SQLD3.sqlcontrolcenter.com"
MM_SQLD3_STRING.Properties("Network Library").Value = "dbmssocn"
MM_SQLD3_STRING.Properties("Initial Catalog").Value = "MyDB"
MM_SQLD3_STRING.Properties("User ID").Value = "Chic"
MM_SQLD3_STRING.Properties("Password").Value = "password"
MM_SQLD3_STRING.open
%>
Suggestions on possible things I have wrong?
How do I troubleshoot?
thanks!
.
- Follow-Ups:
- Re: Login failed for user
- From: Aaron Bertrand [SQL Server MVP]
- Re: Login failed for user
- References:
- Login failed for user
- From: shank
- Re: Login failed for user
- From: Uri Dimant
- Re: Login failed for user
- From: shank
- Re: Login failed for user
- From: Aaron Bertrand [SQL Server MVP]
- Login failed for user
- Prev by Date: Re: Login failed for user
- Next by Date: Re: Login failed for user
- Previous by thread: Re: Login failed for user
- Next by thread: Re: Login failed for user
- Index(es):
Relevant Pages
|