Ask a Question related to ASP Database, Design and Development.
-
K. Lobe #1
OPENROWSET() fails 'Ad Hoc Access..denied' ADO
I'm tring the the following where strDBtoOpen is the UNC path to an Access
Database:
..ASP page ADO Connection object Source property.
cn.Source = "SELECT DD.* FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','" &
strDBtoOpen & "';'admin';'', DueDiligence) as DD WHERE ReviewedBy IS NOT
NULL"
The error I get is:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has been denied.
You must access this provider through a linked server.
/PreBoarding/DueDiligence/ddUploadFileSelProc2.asp, line 71
The issue is: it works on our development server and there is no linked
server. Anyone know what could be causing this? I'm stumped as I can't find
a difference between the two SQL servers. SQL 2000.
Thanks,
Kevin
K. Lobe Guest
-
One With Access Denied, Another With Access, But NotFull
I'm suddenly having access denied/permission problems through Contribute on every page after the templates and their related pages were updated with... -
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Access denied when creating Access application object
In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the... -
access denied on data access pages
I have created data access pages that worked well when I tried them on two separate computer simutaneously, but when we went into production we got... -
access denied!
right click on the file. go to properties->sharing and security->give yourself the full access to file->click ok and now you can read that file. ... -
Steve Kass #2
Re: OPENROWSET() fails 'Ad Hoc Access..denied' ADO
Kevin,
See if the linke below helps. This is more or less the opposite
situation from yours, but it explains what governs whether ad hoc access
is allowed..
[url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;328569[/url]
Steve Kass
Drew University
K. Lobe wrote:
>I'm tring the the following where strDBtoOpen is the UNC path to an Access
>Database:
>
>.ASP page ADO Connection object Source property.
>cn.Source = "SELECT DD.* FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','" &
>strDBtoOpen & "';'admin';'', DueDiligence) as DD WHERE ReviewedBy IS NOT
>NULL"
>
>
>
>The error I get is:
>
>Error Type:
>Microsoft OLE DB Provider for SQL Server (0x80040E14)
>Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has been denied.
>You must access this provider through a linked server.
>/PreBoarding/DueDiligence/ddUploadFileSelProc2.asp, line 71
>
>
>The issue is: it works on our development server and there is no linked
>server. Anyone know what could be causing this? I'm stumped as I can't find
>a difference between the two SQL servers. SQL 2000.
>
>Thanks,
>
>Kevin
>
>
>
>Steve Kass Guest
-
Andy Ball #3
Re: OPENROWSET() fails 'Ad Hoc Access..denied' ADO
might be that the registry has been set with the DisAllowAdHocAccess key in
the registry for the OLEDB provider for Jet as per link below (look towards
bottom for ad hoc access explanation )
look at key key below to see if its there. I have a nagging feeling that
some patch / MDAC release changed this behaviour but can't find any info on
this. Might be worth comparing MDAC versions between boxes using the
Component Checker
([url]http://www.microsoft.com/downloads/details.aspx?familyid=8f0a8df6-4a21-4b43[/url]
-bf53-14332ef092c9&displaylang=en)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\ Providers\Microsoft.Jet.OL
EDB.4.0
[url]http://support.microsoft.com/default.aspx?scid=kb;en-us;327489[/url]
Andy.
"K. Lobe" <nospamKLoeb@snsc.com> wrote in message
news:eFjmc6hXEHA.2408@tk2msftngp13.phx.gbl...denied.> I'm tring the the following where strDBtoOpen is the UNC path to an Access
> Database:
>
> .ASP page ADO Connection object Source property.
> cn.Source = "SELECT DD.* FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','" &
> strDBtoOpen & "';'admin';'', DueDiligence) as DD WHERE ReviewedBy IS NOT
> NULL"
>
>
>
> The error I get is:
>
> Error Type:
> Microsoft OLE DB Provider for SQL Server (0x80040E14)
> Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has beenfind> You must access this provider through a linked server.
> /PreBoarding/DueDiligence/ddUploadFileSelProc2.asp, line 71
>
>
> The issue is: it works on our development server and there is no linked
> server. Anyone know what could be causing this? I'm stumped as I can't> a difference between the two SQL servers. SQL 2000.
>
> Thanks,
>
> Kevin
>
>
Andy Ball Guest



Reply With Quote

