ACC2000: Can't Use ADOX Views Collection with SQL Server or MSDEID: Q225939
|
When you try to examine properties of the ADOX Views collection connected to SQL Server or Microsoft Data Engine (MSDE) via the OLE DB Provider for SQL Server (SQLOLEDB), you may receive the following error message:
Run-time error '3251':
The operation requested by the application is not supported by the provider.
The OLE DB Provider for SQL Server does not support the VIEWS schema rowset, which is necessary to provide ActiveX Data Objects (ADO) with information on views that exist in a database that resides on SQL Server or MSDE.
In a Microsoft Access project connected to the database that you want to query, and use the AllViews collection of the CurrentData property to return basic information about views in your database. There currently is no way to examine remote views via ADO from a Microsoft Access database.
Debug.Print CurrentData.AllViews.Count
Sub TestCountViews()
Dim cat As New ADOX.Catalog
Set cat.ActiveConnection = CurrentProject.Connection
Debug.Print cat.Views.Count
End Sub
For more information about the AllViews collection, click Microsoft Access Help on the
Help menu, type "AllViews property" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: prb
Keywords : kberrmsg kbdta AccessCS
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999