MATHEMATICA LINK FOR EXCEL Features: ExcelLink The ExcelLink component of Mathematica Link for Excel lets Mathematica users efficiently exchange data between Excel and Mathematica, and easily create Excel interfaces for Mathematica-based applications. To use ExcelLink from Mathematica, simply load the ExcelLink package. Functions ExcelLink provides over 50 functions that allow you to access Excel functionality directly from within Mathematica. Display several of the new suite of Excel functions. Interactivity ExcelLink helps create a seamless working environment between Mathematica and Excel to perform sophisticated data analysis and visualization. Read and write data to open Excel workbooks directly from within Mathematica. Automation Automated updates to Excel workbooks from within Mathematica enable you to build powerful modular applications using Mathematica Link for Excel. Automatically open, modify, save and close existing Excel workbooks. Clipboard Intelligent clipboard functionality allows you to easily move data from Mathematica to Excel, and vice versa. Use the clipboard to copy and paste data between programs. Attention, Internet Explorer User Announcement: Jive has discontinued support for Internet Explorer 7 and below. In order to provide the best platform for continued innovation, Jive no longer supports Internet Explorer 7. Jive will not function with this version of Internet Explorer. Please consider upgrading to a more recent version of Internet Explorer, or trying another browser such as Firefox, Safari, or Google Chrome. Introduction Overview Mathematica Link for Excel consists of two main components: The ExcelLink package. The MathematicaLink add-in. These components work together to. (Please remember to honor your company's IT policies before installing new software!) • • • •. In questo argomento si applica a: SQL Server Database SQL di Azure Azure SQL Data Warehouse Parallel Data Warehouse THIS TOPIC APPLIES TO: SQL Server Azure SQL Database Azure SQL Data Warehouse Parallel Data Warehouse Sono disponibili vari modi per importare dati da file di Excel a SQL Server o al database SQL di Azure. There are several ways to import data from Excel files to SQL Server or to Azure SQL Database. Questo articolo contiene un riepilogo di ogni opzione e collegamenti a istruzioni più dettagliate. This article summarizes each of these options and provides links to more detailed instructions. Importante Una descrizione completa di strumenti e servizi complessi come Azure Data Factory o SSIS esula dagli scopi di questa panoramica. A complete description of complex tools and services like SSIS or Azure Data Factory is beyond the scope of this overview. Per altre informazioni sulla soluzione a cui si è interessati, seguire i collegamenti indicati. To learn more about the solution that interests you, follow the links provided for more info. Importazione/Esportazione guidata SQL Server SQL Server Import and Export Wizard È possibile importare i dati direttamente dai file di Excel scorrendo le pagine dell'Importazione/Esportazione guidata SQL Server. Import data directly from Excel files by stepping through the pages of the SQL Server Import and Export Wizard. Facoltativamente, è possibile salvare le impostazioni di importazione/esportazione come pacchetto di SQL Server Integration Services (SSIS) che è possibile personalizzare e riutilizzare. Optionally, save the import/export settings as a SQL Server Integration Services (SSIS) package that you can customize and reuse. Per un esempio di come usare la procedura guidata per l'importazione da Excel a SQL Server, vedere (Iniziare con un semplice esempio dell'Importazione/Esportazione guidata). For an example of using the wizard to import from Excel to SQL Server, see. SQL Server Integration Services (SSIS) SQL Server Integration Services (SSIS) Se si ha familiarità con SSIS e si preferisce non eseguire l'Importazione/Esportazione guidata di SQL Server, creare un pacchetto SSIS che usa Excel come origine e SQL Server come destinazione nel flusso di dati. If you're familiar with SSIS and don't want to run the SQL Server Import and Export Wizard, create an SSIS package that uses the Excel Source and the SQL Server Destination in the data flow. 9 likes 1 talking about this. この資料では、Microsoft Excel ワークシートから Microsoft SQL Server データベースにデータをインポートするさまざまな方法. Per altre informazioni su questi componenti di SSIS, vedere gli argomenti seguenti: For more info about these SSIS components, see the following topics: • • Per istruzioni su come creare pacchetti SSIS, vedere l'esercitazione. To start learning how to build SSIS packages, see the tutorial. OPENROWSET e server collegati OPENROWSET and linked servers. Nota Il provider ACE (in precedenza provider Jet) che si connette alle origini dati di Excel è destinato all'uso interattivo sul lato client. The ACE provider (formerly the Jet provider) that connects to Excel data sources is intended for interactive client-side use. Se si usa il provider ACE nel server, in particolare in processi automatizzati o processi in esecuzione in parallelo, si possono ottenere risultati imprevisti. If you use the ACE provider on the server, especially in automated processes or processes running in parallel, you may see unexpected results. Query distribuite Distributed queries Importare i dati direttamente dai file di Excel usando la funzione OPENROWSET o OPENDATASOURCE di Transact-SQL. Import data directly from Excel files by using the Transact-SQL OPENROWSET or OPENDATASOURCE function. Questo utilizzo è noto come query distribuita. This usage is called a distributed query. Prima di eseguire una query distribuita, è necessario abilitare l'opzione di configurazione del server ad hoc distributed queries, come illustrato nell'esempio seguente. Before you can run a distributed query, you have to enable the ad hoc distributed queries server configuration option, as shown in the following example. Per altre informazioni, vedere. For more info, see. Sp_configure 'show advanced options', 1; RECONFIGURE; GO sp_configure 'Ad Hoc Distributed Queries', 1; RECONFIGURE; GO L'esempio di codice seguente usa OPENROWSET per importare i dati dal foglio di lavoro di Excel Data in una nuova tabella di database. The following code sample uses OPENROWSET to import the data from the Excel Data worksheet into a new database table. USE ImportFromExcel; GO SELECT * INTO Data_dq FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0; Database=D: Desktop Data.xlsx', [Data$]); GO Ecco lo stesso esempio con OPENDATASOURCE. Here's the same example with OPENDATASOURCE. USE ImportFromExcel; GO SELECT * INTO Data_dq FROM OPENDATASOURCE('Microsoft.ACE.OLEDB.12.0', 'Data Source=D: Desktop Data.xlsx;Extended Properties=Excel 12.0').[Data$]; GO Per aggiungere i dati importati a una tabella esistente invece di creare una nuova tabella, usare la sintassi INSERT INTO. Al posto della sintassi SELECT. Usata negli esempi precedenti. To append the imported data to an existing table instead of creating a new table, use the INSERT INTO. Syntax instead of the SELECT. Syntax used in the preceding examples. Per eseguire una query sui dati di Excel senza eseguirne l'importazione, usare la sintassi standard SELECT. To query the Excel data without importing it, just use the standard SELECT. Per altre informazioni sulle query distribuite, vedere gli argomenti seguenti: For more info about distributed queries, see the following topics: •. (Le query distribuite sono ancora supportate in SQL Server 2016, ma la documentazione relativa a questa funzionalità non è stata aggiornata.) (Distributed queries are still supported in SQL Server 2016, but the documentation for this feature has not been updated.) • • Server collegati Linked servers È anche possibile configurare una connessione permanente al file di Excel come server collegato. You can also configure a persistent connection to the Excel file as a linked server. L'esempio seguente importa i dati dal foglio di lavoro Data nel server collegato di Excel esistente EXCELLINK in una nuova tabella di database denominata Data_ls. The following example imports the data from the Data worksheet on the existing Excel linked server EXCELLINK into a new database table named Data_ls. USE ImportFromExcel; GO SELECT * INTO Data_ls FROM EXCELLINK.[Data$]; GO È possibile creare un server collegato da SQL Server Management Studio o eseguendo la stored procedure di sistema sp_addlinkedserver, come illustrato nell'esempio seguente. You can create a linked server from SQL Server Management Studio, or by running the system stored procedure sp_addlinkedserver, as shown in the following example. Suggerimento Per ottenere risultati ottimali con gli strumenti per l'importazione dei dati, salvare fogli che contengono solo le intestazioni di colonna e le righe di dati. For best results with data importing tools, save sheets that contain only the column headers and the rows of data. Se i dati salvati contengono titoli di pagina, righe vuote, note e così via, possono verificarsi risultati imprevisti in un secondo momento quando si importano i dati. If the saved data contains page titles, blank lines, notes, and so forth, you may see unexpected results later when you import the data. Comando BULK INSERT BULK INSERT command BULK INSERT è un comando Transact-SQL che è possibile eseguire da SQL Server Management Studio. BULK INSERT is a Transact-SQL command that you can run from SQL Server Management Studio. L'esempio seguente carica i dati dal file con valori delimitati da virgole Data.csv in una tabella di database esistente. The following example loads the data from the Data.csv comma-delimited file into an existing database table. USE ImportFromExcel; GO BULK INSERT Data_bi FROM 'D: Desktop data.csv' WITH ( FIELDTERMINATOR = ',', ROWTERMINATOR = ' n' ); GO Per altre informazioni, vedere gli argomenti seguenti: For more info, see the following topics: • • Strumento BCP BCP tool BCP è un programma eseguibile dal prompt dei comandi. BCP is a program that you run from the command prompt. L'esempio seguente carica i dati dal file con valori delimitati da virgole Data.csv nella tabella di database Data_bcp esistente. The following example loads the data from the Data.csv comma-delimited file into the existing Data_bcp database table. Bcp.exe ImportFromExcel.Data_bcp in 'D: Desktop data.csv' -T -c -t, Per altre informazioni su BCP, vedere gli argomenti seguenti: For more info about BCP, see the following topics: • • • Copia guidata (Azure Data Factory) Copy Wizard (Azure Data Factory) È possibile importare i dati salvati come file di testo scorrendo le pagine della Copia guidata. Import data saved as text files by stepping through the pages of the Copy Wizard. Per altre informazioni sulla Copia guidata, vedere gli argomenti seguenti: For more info about the Copy Wizard, see the following topics: • •.. Azure Data Factory Azure Data Factory Se si ha familiarità con Azure Data Factory e si preferisce non eseguire la Copia guidata, creare una pipeline con un'attività di copia dal file di testo a SQL Server o al database SQL di Azure. If you're familiar with Azure Data Factory and don't want to run the Copy Wizard, create a pipeline with a Copy activity that copies from the text file to SQL Server or to Azure SQL Database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2018
Categories |