laptop and a wrench

Erro

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

Última Publicação: August 25, 2014 No Product Found
Número de ID do Erro NIM004186
EnviadoSeptember 13, 2006
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.1
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM004186

Software:

  • No Product Found

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download