Ask a Question related to ASP Database, Design and Development.
-
Michael Ralph #1
ADODB.Connection error '800a0046'
I am receiving the following error:
ADODB.Connection error '800a0046'
Permission Denied
Here is my connection string on my web page:
<%
Dim SurveyConnection
Set SurveyConnection=Server.CreateObject
("ADODB.Connection")
SurveyConnection.Open "Driver={SQL
Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlSu rvey"
%>
The funny thing is it works on one IIS but not the one I
need it on. Any suggestions?
Michael Ralph Guest
-
Microsoft VBScript runtime error '800a0046'
hello all, i have a permission issue. my script works fine on my windows2000 server development box, however when i move it to my windows2003... -
ADODB.connection safety settings error
Hi All, I'm running a webpage-application where, in a aspx-page,a udl is called in vbscript in an xsl-stylesheet to access a database. When I... -
runtime error '800a0046'
I am receiving the following error, "Microsoft VBScript runtime error '800a0046' Permission denied /pcart/newsletter/email.asp, line 49" when... -
ADODB Connection
Could anybody tell me please what the "1,2" refers to in the last line of this code and where I can get a list of the parts to this '.open'... -
Connection error: ADODB.Recordset (0x800A0E7D)
I have been copying and pasting code and this has been working, but now I get this error: Error Type: ADODB.Recordset (0x800A0E7D) Operation is... -
Bob Barrows #2
Re: ADODB.Connection error '800a0046'
Responses inline:
Firstly:>-----Original Message-----
>I am receiving the following error:
>
>ADODB.Connection error '800a0046'
>Permission Denied
>
>Here is my connection string on my web page:
><%
>Dim SurveyConnection
>
>Set SurveyConnection=Server.CreateObject
>("ADODB.Connection")
>SurveyConnection.Open "Driver={SQL
>Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlS urvey"
It may not be the cause of this problem, but you will be
better off using the native OLEDB provider For SQL Server
(SQLOLEDB) rather than the ODBC driver you are using. See
[url]www.connectionstrings.com[/url].
Secondly, it's a bad idea not to assign a password to the
sa account. Hopefully you do have a password for sa and
you've simply removed it from your connection string so as
not to expose it on the web ...
This is strange. This does not seem to be a SQL Server>
>%>
>
>The funny thing is it works on one IIS but not the one I
>need it on. Any suggestions?
>.
>
login issue given that the error source is given as the
Connection object. Which line causes the error? The
CreateObject line or the Open line?
Bob Barrows
Bob Barrows Guest
-
Michael Ralph #3
Re: ADODB.Connection error '800a0046'
I did not want to post the sa password. I changed the
connection string (thanks for the suggestion), but still
get the error. The error is on the .open line.
as>-----Original Message-----
>Responses inline:>>>-----Original Message-----
>>I am receiving the following error:
>>
>>ADODB.Connection error '800a0046'
>>Permission Denied
>>
>>Here is my connection string on my web page:
>><%
>>Dim SurveyConnection
>>
>>Set SurveyConnection=Server.CreateObject
>>("ADODB.Connection")
>>SurveyConnection.Open "Driver={SQL
>>Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7Lvl Survey"
>Firstly:
>It may not be the cause of this problem, but you will be
>better off using the native OLEDB provider For SQL Server
>(SQLOLEDB) rather than the ODBC driver you are using. See
>[url]www.connectionstrings.com[/url].
>
>Secondly, it's a bad idea not to assign a password to the
>sa account. Hopefully you do have a password for sa and
>you've simply removed it from your connection string so>not to expose it on the web ...
>>This is strange. This does not seem to be a SQL Server>>
>>%>
>>
>>The funny thing is it works on one IIS but not the one I
>>need it on. Any suggestions?
>>.
>>
>login issue given that the error source is given as the
>Connection object. Which line causes the error? The
>CreateObject line or the Open line?
>
>Bob Barrows
>.
>Michael Ralph Guest
-
Bob Barrows #4
Re: ADODB.Connection error '800a0046'
Michael Ralph wrote:
Frankly, I'm at a loss. If you were using Integrated Security, I would have> I did not want to post the sa password. I changed the
> connection string (thanks for the suggestion), but still
> get the error. The error is on the .open line.
>>> -----Original Message-----
>> Responses inline:>>>>> -----Original Message-----
>>> I am receiving the following error:
>>>
>>> ADODB.Connection error '800a0046'
>>> Permission Denied
>>>
>>> Here is my connection string on my web page:
>>> <%
>>> Dim SurveyConnection
>>>
>>> Set SurveyConnection=Server.CreateObject
>>> ("ADODB.Connection")
>>> SurveyConnection.Open "Driver={SQL
>>> Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlSu rvey"
an answer. But with SQL Security, this connection string should work (show
us your revised connection string.). I really don't think this is a security
issue with SQL itself. If it was, you would be getting a "login rejected"
message coming from the SQL provider. This is more of a file permission
issue ...
Can you create a udl file on the non-working server that connects to this
database? Just create a text file and give it a .udl extension and save it.
When you double-click it, you should be given a chance to create a
connection. Just enter the requested information and test the connection
when you are finished.
I wonder if it's a network library issue: you may be connecting via named
pipes on the machine that fails. Try forcing a tcp/ip connection by adding
"Network Library = dbmssocn" to your connection string.
Bob Barrows
Bob Barrows Guest
-
Atrax #5
Re: ADODB.Connection error '800a0046'
let me take a stab in the dark.
the SQL Server isn't actually set up for SQL Server auth - it's using
Windows auth, therefore ignoring the info in your connection string and
using the Windows IUSR account of the machine in question? or whichever
account IIS is using...
maybe?
________________________________________
Atrax. MVP, IIS
[url]http://rtfm.atrax.co.uk/[/url]
newsflash : Atrax.Richedit 1.0 now released.
[url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Atrax Guest
-
Michael Ralph #6
Re: ADODB.Connection error '800a0046'
Here is my new connection string:
<%
Dim SurveyConnection
Set SurveyConnection=Server.CreateObject
("ADODB.Connection")
SurveyConnection.Open "Provider=sqloledb;Data
Source=KAFB43B;Network Library=dbmssocn; Initial
Catalog=7LvlSurvey;User Id=sa;Password=;"
%>
Adding the Network Library had no effect. I crreated the
UDL on the server but I do not have direct access to the
machine. I ran the UDL on my machine with no problems.
It seems other machines do not have a problem connecting
to the database just the IIS which happens to be on the
same machine as the SQL server.
Interesting side note. I tried to connect to an Access
database just to test and had the same result. Is there
something that could be set on a server preventing all
connections to databases?
Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlSu rvey">-----Original Message-----
>Michael Ralph wrote:>> I did not want to post the sa password. I changed the
>> connection string (thanks for the suggestion), but still
>> get the error. The error is on the .open line.
>>>>> -----Original Message-----
>>> Responses inline:
>>>> -----Original Message-----
>>>> I am receiving the following error:
>>>>
>>>> ADODB.Connection error '800a0046'
>>>> Permission Denied
>>>>
>>>> Here is my connection string on my web page:
>>>> <%
>>>> Dim SurveyConnection
>>>>
>>>> Set SurveyConnection=Server.CreateObject
>>>> ("ADODB.Connection")
>>>> SurveyConnection.Open "Driver={SQL
>>>>Security, I would have>Frankly, I'm at a loss. If you were using Integrated>>>should work (show>an answer. But with SQL Security, this connection stringthis is a security>us your revised connection string.). I really don't thinka "login rejected">issue with SQL itself. If it was, you would be gettingfile permission>message coming from the SQL provider. This is more of aconnects to this>issue ...
>
>Can you create a udl file on the non-working server thatextension and save it.>database? Just create a text file and give it a .udlcreate a>When you double-click it, you should be given a chance tothe connection>connection. Just enter the requested information and testconnecting via named>when you are finished.
>
>I wonder if it's a network library issue: you may beconnection by adding>pipes on the machine that fails. Try forcing a tcp/ip>"Network Library = dbmssocn" to your connection string.
>
>Bob Barrows
>
>
>
>.
>Michael Ralph Guest
-
Michael Ralph #7
Re: ADODB.Connection error '800a0046'
If that was the case then I shouldn't be able to connect
to it using the same connection string on another IIS
right? Addtionally, I am using the sa account to connect
via Enterprise Manager.it's using>-----Original Message-----
>let me take a stab in the dark.
>
>the SQL Server isn't actually set up for SQL Server auth -connection string and>Windows auth, therefore ignoring the info in yourquestion? or whichever>using the Windows IUSR account of the machine inichEdit/>account IIS is using...
>
>maybe?
>
>
>________________________________________
>Atrax. MVP, IIS
>[url]http://rtfm.atrax.co.uk/[/url]
>
>newsflash : Atrax.Richedit 1.0 now released.
>[url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.R[/url]***>
>*** Sent via Developersdex [url]http://www.developersdex.com[/url]>Don't just participate in USENET...get rewarded for it!
>.
>Michael Ralph Guest
-
Bob Barrows #8
Re: ADODB.Connection error '800a0046'
Michael Ralph wrote:
You have no hope of troubleshooting this problem without it.> Here is my new connection string:
> <%
> Dim SurveyConnection
>
> Set SurveyConnection=Server.CreateObject
> ("ADODB.Connection")
> SurveyConnection.Open "Provider=sqloledb;Data
> Source=KAFB43B;Network Library=dbmssocn; Initial
> Catalog=7LvlSurvey;User Id=sa;Password=;"
>
> %>
>
> Adding the Network Library had no effect. I crreated the
> UDL on the server but I do not have direct access to the
> machine.
Curiouser and curiouser. Hmm, on the same server ... Try "Data>I ran the UDL on my machine with no problems.
> It seems other machines do not have a problem connecting
> to the database just the IIS which happens to be on the
> same machine as the SQL server.
Source=(local)"
Was the Access database on the same box as IIS? Was it in the website from>
> Interesting side note. I tried to connect to an Access
> database
which you were attempting to access it? Did you grant Change permissions for
the folder containing the database to the IUSR_machinename account?
No. That's what's so perplexing. You could have a defective ADO installation>just to test and had the same result. Is there
> something that could be set on a server preventing all
> connections to databases?
>
on the server. Maybe have the administrator reinstall MDAC, or better,
install a newer version of MDAC.
Bob Barrows
Bob Barrows Guest
-
Bob Barrows #9
Re: ADODB.Connection error '800a0046'
Michael Ralph wrote:
You may want to see if this KB article helps:> I am receiving the following error:
>
> ADODB.Connection error '800a0046'
> Permission Denied
>
> Here is my connection string on my web page:
> <%
> Dim SurveyConnection
>
> Set SurveyConnection=Server.CreateObject
> ("ADODB.Connection")
> SurveyConnection.Open "Driver={SQL
> Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlSu rvey"
>
> %>
>
> The funny thing is it works on one IIS but not the one I
> need it on. Any suggestions?
support.microsoft.com/?kbid=189408
Bob Barrows Guest
-
Michael Ralph #10
Re: ADODB.Connection error '800a0046'
Access database on the same web with IUSR write, read,
modify, execute... I tried changing the Data Source to
local in my connection string (back to the SQL server
database), no change. I have asked the network
administrator to run the Microsoft Component Checker
Utililty for MDAC and to make sure that password
synchronization is disabled. Will post back with
results. Thanks.the>-----Original Message-----
>Michael Ralph wrote:>> Here is my new connection string:
>> <%
>> Dim SurveyConnection
>>
>> Set SurveyConnection=Server.CreateObject
>> ("ADODB.Connection")
>> SurveyConnection.Open "Provider=sqloledb;Data
>> Source=KAFB43B;Network Library=dbmssocn; Initial
>> Catalog=7LvlSurvey;User Id=sa;Password=;"
>>
>> %>
>>
>> Adding the Network Library had no effect. I crreatedit.>>> UDL on the server but I do not have direct access to the
>> machine.
>You have no hope of troubleshooting this problem withoutTry "Data>>>>I ran the UDL on my machine with no problems.
>> It seems other machines do not have a problem connecting
>> to the database just the IIS which happens to be on the
>> same machine as the SQL server.
>Curiouser and curiouser. Hmm, on the same server ...the website from>Source=(local)"
>>>>
>> Interesting side note. I tried to connect to an Access
>> database
>Was the Access database on the same box as IIS? Was it inChange permissions for>which you were attempting to access it? Did you grantIUSR_machinename account?>the folder containing the database to thedefective ADO installation>>No. That's what's so perplexing. You could have a>>just to test and had the same result. Is there
>> something that could be set on a server preventing all
>> connections to databases?
>>MDAC, or better,>on the server. Maybe have the administrator reinstall>install a newer version of MDAC.
>
>Bob Barrows
>
>
>.
>Michael Ralph Guest
-
Michael Ralph #11
Re: ADODB.Connection error '800a0046'
By the way the server it works on has a security
certificate [url]https://.[/url].. and the one it doesn't work on
does not [url]http://.[/url].. Would this have any affect?>-----Original Message-----
>Michael Ralph wrote:>>> I am receiving the following error:
>>
>> ADODB.Connection error '800a0046'
>> Permission Denied
>>
>> Here is my connection string on my web page:
>> <%
>> Dim SurveyConnection
>>
>> Set SurveyConnection=Server.CreateObject
>> ("ADODB.Connection")
>> SurveyConnection.Open "Driver={SQL
>> Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlSu rvey"
>>
>> %>
>>
>> The funny thing is it works on one IIS but not the one I
>> need it on. Any suggestions?
>You may want to see if this KB article helps:
>support.microsoft.com/?kbid=189408
>
>
>.
>Michael Ralph Guest
-
Bob Barrows #12
Re: ADODB.Connection error '800a0046'
Michael Ralph wrote:
Perhaps. I've only dealt with intranet apps so I haven't had a need to look> By the way the server it works on has a security
> certificate [url]https://.[/url].. and the one it doesn't work on
> does not [url]http://.[/url].. Would this have any affect?
into SSL. Hopefully somebody else can jump in here.
Have you tried searching the MS KB?
Bob Barrows
Bob Barrows Guest
-
Ray at #13
Re: ADODB.Connection error '800a0046'
I'll grasp at a straw here.
If it works fine on one server, but not another, is there an IPSec policy on
the SQL server only allowing communication through port 1433 from the other
server's IP?
Ray at work
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:O24YKe2hDHA.2212@TK2MSFTNGP09.phx.gbl...look> Michael Ralph wrote:>> > By the way the server it works on has a security
> > certificate [url]https://.[/url].. and the one it doesn't work on
> > does not [url]http://.[/url].. Would this have any affect?
> Perhaps. I've only dealt with intranet apps so I haven't had a need to> into SSL. Hopefully somebody else can jump in here.
>
> Have you tried searching the MS KB?
>
> Bob Barrows
>
>
Ray at Guest
-
Mark Schupp #14
Re: ADODB.Connection error '800a0046'
Sounds like an NTFS permission problem on the web server. Is the error
occurring on the Server.CreateObject call or the Open call?
Try changing the anonymous user account for the web site to the local
Administrator account (may need to restart web services). Does that correct
the problem? If so, your anon account is missing access rights to something
it needs. You should be able to track it down by enabling file auditing and
looking for access failures.
About the SA account. You should never use that account for production
applications. It has far too many privileges. Create a SQLServer login for
the application and give it only the access rights and privileges required
by the application.
--
Mark Schupp
Head of Development
Integrity eLearning
[url]www.ielearning.com[/url]
"Michael Ralph" <ralph@141.com> wrote in message
news:1b4401c3874c$79d8a010$a101280a@phx.gbl...> Here is my new connection string:
> <%
> Dim SurveyConnection
>
> Set SurveyConnection=Server.CreateObject
> ("ADODB.Connection")
> SurveyConnection.Open "Provider=sqloledb;Data
> Source=KAFB43B;Network Library=dbmssocn; Initial
> Catalog=7LvlSurvey;User Id=sa;Password=;"
>
> %>
>
> Adding the Network Library had no effect. I crreated the
> UDL on the server but I do not have direct access to the
> machine. I ran the UDL on my machine with no problems.
> It seems other machines do not have a problem connecting
> to the database just the IIS which happens to be on the
> same machine as the SQL server.
>
> Interesting side note. I tried to connect to an Access
> database just to test and had the same result. Is there
> something that could be set on a server preventing all
> connections to databases?
>> Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlSu rvey"> >-----Original Message-----
> >Michael Ralph wrote:> >> I did not want to post the sa password. I changed the
> >> connection string (thanks for the suggestion), but still
> >> get the error. The error is on the .open line.
> >>
> >>> -----Original Message-----
> >>> Responses inline:
> >>>> -----Original Message-----
> >>>> I am receiving the following error:
> >>>>
> >>>> ADODB.Connection error '800a0046'
> >>>> Permission Denied
> >>>>
> >>>> Here is my connection string on my web page:
> >>>> <%
> >>>> Dim SurveyConnection
> >>>>
> >>>> Set SurveyConnection=Server.CreateObject
> >>>> ("ADODB.Connection")
> >>>> SurveyConnection.Open "Driver={SQL
> >>>>> Security, I would have> >Frankly, I'm at a loss. If you were using Integrated> >>>> should work (show> >an answer. But with SQL Security, this connection string> this is a security> >us your revised connection string.). I really don't think> a "login rejected"> >issue with SQL itself. If it was, you would be getting> file permission> >message coming from the SQL provider. This is more of a> connects to this> >issue ...
> >
> >Can you create a udl file on the non-working server that> extension and save it.> >database? Just create a text file and give it a .udl> create a> >When you double-click it, you should be given a chance to> the connection> >connection. Just enter the requested information and test> connecting via named> >when you are finished.
> >
> >I wonder if it's a network library issue: you may be> connection by adding> >pipes on the machine that fails. Try forcing a tcp/ip> >"Network Library = dbmssocn" to your connection string.
> >
> >Bob Barrows
> >
> >
> >
> >.
> >
Mark Schupp Guest
-
Michael Ralph #15
Re: ADODB.Connection error '800a0046'
Turns out the IIS administrator had both Windows
Integrated Security and Anonymous Logins enabled.Is the error>-----Original Message-----
>Sounds like an NTFS permission problem on the web server.call?>occurring on the Server.CreateObject call or the Opento the local>
>Try changing the anonymous user account for the web siteDoes that correct>Administrator account (may need to restart web services).rights to something>the problem? If so, your anon account is missing accessfile auditing and>it needs. You should be able to track it down by enablingfor production>looking for access failures.
>
>About the SA account. You should never use that accountSQLServer login for>applications. It has far too many privileges. Create aprivileges required>the application and give it only the access rights andthe>by the application.
>
>--
>Mark Schupp
>Head of Development
>Integrity eLearning
>[url]www.ielearning.com[/url]
>
>
>"Michael Ralph" <ralph@141.com> wrote in message
>news:1b4401c3874c$79d8a010$a101280a@phx.gbl...>> Here is my new connection string:
>> <%
>> Dim SurveyConnection
>>
>> Set SurveyConnection=Server.CreateObject
>> ("ADODB.Connection")
>> SurveyConnection.Open "Provider=sqloledb;Data
>> Source=KAFB43B;Network Library=dbmssocn; Initial
>> Catalog=7LvlSurvey;User Id=sa;Password=;"
>>
>> %>
>>
>> Adding the Network Library had no effect. I crreatedthe>> UDL on the server but I do not have direct access to the
>> machine. I ran the UDL on my machine with no problems.
>> It seems other machines do not have a problem connecting
>> to the database just the IIS which happens to be on the
>> same machine as the SQL server.
>>
>> Interesting side note. I tried to connect to an Access
>> database just to test and had the same result. Is there
>> something that could be set on a server preventing all
>> connections to databases?
>>>> >-----Original Message-----
>> >Michael Ralph wrote:
>> >> I did not want to post the sa password. I changedstill>> >> connection string (thanks for the suggestion), butstring>> Server};SERVER=KAFB43b;UID=sa;PWD=;Database=7LvlSu rvey">> >> get the error. The error is on the .open line.
>> >>
>> >>> -----Original Message-----
>> >>> Responses inline:
>> >>>> -----Original Message-----
>> >>>> I am receiving the following error:
>> >>>>
>> >>>> ADODB.Connection error '800a0046'
>> >>>> Permission Denied
>> >>>>
>> >>>> Here is my connection string on my web page:
>> >>>> <%
>> >>>> Dim SurveyConnection
>> >>>>
>> >>>> Set SurveyConnection=Server.CreateObject
>> >>>> ("ADODB.Connection")
>> >>>> SurveyConnection.Open "Driver={SQL
>> >>>>>> Security, I would have>> >>>
>> >Frankly, I'm at a loss. If you were using Integrated>> >an answer. But with SQL Security, this connectionthink>> should work (show>> >us your revised connection string.). I really don'tthat>> this is a security>> a "login rejected">> >issue with SQL itself. If it was, you would be getting>> file permission>> >message coming from the SQL provider. This is more of a>> >issue ...
>> >
>> >Can you create a udl file on the non-working serverto>> connects to this>> extension and save it.>> >database? Just create a text file and give it a .udl>> >When you double-click it, you should be given a chancetest>> create a>> >connection. Just enter the requested information and>>> the connection>> connecting via named>> >when you are finished.
>> >
>> >I wonder if it's a network library issue: you may be>> connection by adding>> >pipes on the machine that fails. Try forcing a tcp/ip>> >"Network Library = dbmssocn" to your connection string.
>> >
>> >Bob Barrows
>> >
>> >
>> >
>> >.
>> >
>
>.
>Michael Ralph Guest
-
Michael Ralph #16
Re: ADODB.Connection error '800a0046'
Turns out the IIS administrator had both Windows
Integrated Security and Anonymous logins enabled.
an IPSec policy on>-----Original Message-----
>I'll grasp at a straw here.
>
>If it works fine on one server, but not another, is there1433 from the other>the SQL server only allowing communication through porthaven't had a need to>server's IP?
>
>Ray at work
>
>"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
>news:O24YKe2hDHA.2212@TK2MSFTNGP09.phx.gbl...>> Michael Ralph wrote:>>>> > By the way the server it works on has a security
>> > certificate [url]https://.[/url].. and the one it doesn't work on
>> > does not [url]http://.[/url].. Would this have any affect?
>> Perhaps. I've only dealt with intranet apps so I>look>>> into SSL. Hopefully somebody else can jump in here.
>>
>> Have you tried searching the MS KB?
>>
>> Bob Barrows
>>
>>
>
>.
>Michael Ralph Guest



Reply With Quote

