laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM004186
EnvoiSeptember 13, 2006
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.1
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM004186

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement