Skip to main content

Blue icon with a stream-like object flowing into a database. Strumento Flusso di dati in entrata

Requisiti dei ruoli utente

Ruolo utente*

Accesso a strumento/funzione

Utente completo

Utente base

X

*Si applica ai clienti che utilizzano le edizioni Professional ed Enterprise di Alteryx One con Designer versione 2025.1 o successiva.

Utilizza Flusso di dati in entrata per trasferire i dati da Alteryx Designer nel flusso di lavoro In-DB.

In-Database consente la combinazione e l'analisi di grandi set di dati senza spostarli da un database e può offrire significativi miglioramenti delle prestazioni rispetto ai metodi di analisi tradizionali. Per ulteriori informazioni sulla categoria dello strumento In-Database, consulta Panoramica di In-Database.

Configurazione dello strumento

Connection Name

Nome connessione : consente di selezionare il menu a discesa per creare una nuova connessione, gestire una connessione esistente o selezionarne una dall'elenco di connessioni impostate.

  • Gestisci connessioni : consente di creare, modificare o eliminare una connessione.

  • Apri connessione file : consente di accedere a un file di connessione al database salvato.

Creation Mode

Modalità creazione : consente di selezionare l'opzione appropriata per la scrittura dei dati. Le opzioni disponibili includono:

  • Crea tabella temporanea : consente di scrivere in una tabella temporanea disponibile fino alla fine della sessione. Questa opzione è utile per la creazione di macro predittive In-DB, poiché contiene temporaneamente i metadati in uso. Se questa opzione è selezionata, il campo Nome tabella è disattivato e visualizza "[un nome tabella temporaneo univoco è generato a ogni esecuzione]".

  • Crea nuova tabella : consente di creare una nuova tabella. Non sovrascrive una tabella esistente. Se è selezionata un'opzione HDFS Avro, avro.schema.literal restituisce un errore a 4000 caratteri e si verifica un errore durante la creazione della tabella. Prova a ridurre la lunghezza dei nomi delle colonne o a selezionare un numero inferiore di colonne.

  • Sovrascrivi tabella (rilascia) : consente di rimuovere completamente la tabella esistente e di crearne una nuova.

Table Name

Nome tabella : immetti il nome della tabella del database da creare o aggiornare. Se l'opzione Crea tabella temporanea è selezionata, il campo Nome tabella è disattivato e mostra "[viene generato un nome tabella temporaneo univoco a ogni esecuzione]".

Advanced Query Options

Use this section to define a Pre-SQL statement to execute before the In-DB execution. This option is compatible with all of the above creation modes.

  • If your workflow includes a Data Stream In tool, this is the best place to put session variables in Pre-SQL. If there is no Data Stream In tool, then the Write Data In-DB tool is a good alternative. However, note that Write Data In-DB runs after any Data Stream In tools, if they exist.Blue icon with floppy disk. Strumento Scrivi dati In-DB

  • Pre-SQL calls in Data Stream In should be primarily used for calls that need to be done before the creation of the Stream In table.

  • Pre-SQL statements are compatible with Bulk Loaders, OCI, ODBC, and OLE DB technologies.

To configure your Pre-SQL statements...

  1. Use the 3-dot menu associated with the Pre-SQL Statement field to launch the Configure Pre-SQL Statements window, which includes the SQL Editor and Stored Procedures tabs.

  2. Next, define your SQL statement

    • Use the SQL Editor tab to define a SQL statement to execute before the In-DB execution. When the workflow runs, the Results window displays messages to show that the tool is executing SQL statements, along with a label (PreSQL). All SQL statements are sent directly to the database.

      • Pre-SQL statements do not return data. While SQL can return data, Designer doesn't do anything with it.

      • If there are multiple streams of In-DB tools, there is no guaranteed order of execution between different streams. The Results window displays the order.

    • Use the Stored Procedures tab to select and configure a stored procedure call for your database. You can select a Parameter and set a Value for your stored procedures if needed. All stored procedures are sent directly to the database.

      • If a stored procedure is executed successfully, it returns any necessary status messages or warnings in the Results window.

      • If a stored procedure returns data, Designer does not return it anywhere. The data is not displayed in the Results window.

      Importante

      Stored procedures are supported for these connections:

      • SQL Server for ODBC and Bulk Writer

      • Oracle for ODBC Only

  3. Select OK when you're finished or Cancel to return to the tool configuration window.

Notes

Nota

Per utilizzare questo strumento con Oracle, è necessario disporre delle autorizzazioni per scrivere nello spazio temporale assegnato a GLOBAL TEMPORARY (TEMPORANEO GLOBALE). Contatta l'amministratore del database Oracle.

Per ulteriori informazioni, consulta la sezione Strumento Connetti In-DB .