FIX: Ad Hoc Access Incorrectly Permitted If DisallowAdhocAccess Registry Key Is Missing (328569)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
- Microsoft SQL Server 7.0
This article was previously published under Q328569 BUG #: 361943 (SHILOH_BUGS)
BUG #: 102857
(SQLBUG_70) SYMPTOMS When you configure an OLE DB provider for use for SQL
Server distributed queries, a number of registry keys are available that
control how SQL Server tries to use the provider. These options are documented
in the following section of SQL Server Books Online: - Configuring OLE DB Providers for Distributed
Queries
One of these options, DisallowAdhocAccess, controls whether a non-sysadmin user is permitted to use the
OPENROWSET or the OPENDATASOURCE function. If an OLE DB provider is available
on the computer but there is no corresponding registry key specified for this
provider, then SQL Server incorrectly permits a non-sysadmin user to access the
provider with the OPENROWSET or the OPENDATASOURCE function. In the absence of
any registry key, the default behavior should be to deny access.
After you install the fix that is described in this article, when the DisallowAdhocAccess value does not exist for the specified provider, non-sysadmin
requests to use OPENROWSET or OPENDATASOURCE fail with the following error
message: Server: Msg 7415, Level 16, State 1, Line
1 Ad hoc access to OLE DB provider 'CustomOLEDBProvider' has been denied.
You must access this provider through a linked server. RESOLUTION To resolve this problem, obtain the latest
service pack for Microsoft SQL Server 2000. For additional information, click
the following article number to view the article in the Microsoft Knowledge
Base: 290211 INF: How To Obtain the Latest SQL Server 2000 Service Pack STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
SQL Server 2000 This problem was first corrected in Microsoft SQL Server
2000 Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 9/27/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbbug kbfix kbSQLServ2000preSP3fix kbSQLServ2000sp3fix KB328569 |
---|
|