[Sql] - Creare tabelle nascoste

di Anonimizzato1980 il
5 risposte
Qualcuno sa dirmi come creare tabelle nascoste(invisibili come quelle di sistema) usando sql (tipo create table ... e qualche clausola del cacchio)???
Help me please.

5 Risposte

  • Con sql non lo so fare, io uso visual basic e le nascondo e dopo devi impedire la creazione di query in quanto vengono richiamate
  • Con vb si potrebbe fare.
    Potresti dirmi come???
    Postami un po di codice.
    Tnks...
  • Forse agendo sui profili delgi utenti?
  • Profili degli utenti????
    E come??
  • Usa questa funzione altrimenti crei due database un con una password uno con le tabelle uno con un link

    Function HideTbl(strTable As String, intHide As Integer) As Integer
    'Nasconde o Mostra una tabella
    'Accetta: intHide: True (-1) nasconde, False (0) rende visibile
    'Ritorna: True se OK, False se errore
    On Error GoTo HT_ERR

    Dim TDef As TableDef, dbs As Database
    Set dbs = CurrentDb
    Set TDef = dbs.TableDefs(strTable)
    'Set TDef = dbs.Connection(strTable)


    Select Case intHide
    Case True
    If Not (TDef.Attributes And DB_HIDDENOBJECT) Then
    TDef.Attributes = TDef.Attributes + DB_HIDDENOBJECT
    End If
    Case Else
    If (TDef.Attributes And DB_HIDDENOBJECT) Then
    TDef.Attributes = TDef.Attributes - DB_HIDDENOBJECT
    End If
    End Select

    HideTbl = True

    EXIT_HT:
    Exit Function
    HT_ERR:
    HideTbl = False
    MsgBox "Error: " & Err & " " & Error, 48
    Resume EXIT_HT
    End Function
Devi accedere o registrarti per scrivere nel forum
5 risposte