I'm using the ADO Ext. 2.1 object to determine if a query exists in a Jet DB
using the Microsoft.Jet.OLEDB.4.0 provider from VB6.0. I am also using ths
application to create and delete views in SQL Server 7.0 but when I try to
use the code that works in Jet I get the error "The Operation requested by
the application is not supported by the provider". Is this a know limitation
for the "sqloledb" provider. Is there a work around or a better way to this.
Sample Code:
Dim cat As New ADOX.Catalog
Set cat.ActiveConnection = cnn
ViewCnt = cat.Views.Count - 1
For i = 0 To ViewCnt
Set objView = cat.Views.Item(i)
If objView.Name = SelectedSiteID & "M" Then
cat.Views.Delete objView.Name
Exit For
End If
Next
Thanks,