laptop and a wrench

Bug

Changing privileges for a RasterDataset using ISQLPrivilege::Grant returns an Automation Error.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM004186
SubmittedSeptember 13, 2006
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.1
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

You can work around this problem by using the code given below:Public Sub GrantPrivilege(pDataset As IDataset, pUserName As String, pPriv As Long, pWithGrant As Boolean) If Not pDataset Is Nothing Then Dim pSQLPrivilege As ISQLPrivilege If pDataset.Type = esriDTRasterDataset Then Dim pTable As ITable Dim pFeatWork As IFeatureWorkspace Dim pTableName As ITableName Set pFeatWork = pDataset.workspace Set pTable = pFeatWork.OpenTable(<a href="http://pDataset.Name" target="_blank">pDataset.Name</a>) Dim prDataset As IDataset Set prDataset = pTable Set pSQLPrivilege = prDataset.FullName pSQLPrivilege.Grant pUserName, pPriv, pWithGrant End If End If End Sub

Steps to Reproduce

Bug ID: NIM004186

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options