Web design and hosting, database, cloud and social media solutions that deliver business results
  • Soluzioni aziendali
    • automazione dei processi robotici
    • Software
    • Servizi database
      • Aggiornamento del server e servizi DBA
      • Integrazione dei dati
      • Power BI
      • Servizi di Datawarehouse
    • Sito Web Design
      • Design del logo
      • Gateway di pagamento
      • Localizzazione e traduzione web
      • Ottimizzazione del sito web
      • Sicurezza del sito
      • Strumenti tecnici
    • Servizi per gli affari
      • Microsoft Azure
      • Servizi Google Cloud
      • Servizi Web Amazon
    • Microsoft Office
    • Servizi di consulenza e gestione dei social media
  • Accademia
    • Il nostro ambiente di prova
    • Imparare a usare i database
      • Le basi
      • Ottieni una query aperta
      • Piano di manutenzione di SQL Server 2008
      • Utilizzo dei dati di SQL Server
      • Utilizzo delle date di SQL Server
      • Utilizzo delle funzioni di SQL Server
      • Utilizzo di SQL Server Pivot-Unpivot
      • Strumenti
    • Imparare il web design
      • Costruire il sistema di gestione dei contenuti di Ousia
      • ASP-NET
      • CSS
      • Utilizzo di JavaScript
    • Usando i social media
      • Chiedere una recensione su Google
      • Dimensioni delle immagini dei social media
      • Modifica di un account Facebook da personale a aziendale
      • Scegliere dove concentrare lo sforzo sui social media
      • Utilizzo dei metadati per impostare le immagini dei social media
    • Imparare a usare il cloud e i servizi informatici
      • Errore dell'utilità di pianificazione 2147943645
      • Richiesta SSL e generazione di file PFX in OpenSSL Simple Steps
  • Chi Siamo
    • Carriere
      • Traduttore inglese-portoghese
      • Traduttore inglese-spagnolo
    • Portfolio
    • Squadra
      • Adrian Anandan
      • Alì Al Amine
      • Ayse Hur
      • Chester Copperpot
      • Gavin Clayton
      • Sai Gangu
      • Suneel Kumar
      • Surya Mukkamala
عربى (AR)čeština (CS)Deutsch (DE)English (EN-GB)English (EN-US)Español (ES)فارسی (FA)Français (FR)हिंदी (HI)italiano (IT)日本語 (JA)polski (PL)Português (PT)русский (RU)Türk (TR)中国的 (ZH)

SSIS, Creazione di un file excel dinamico con nomi dinamici

Creazione di un file excel dinamico Dynamic Sheet Names in SSIS. Ho trovato questo uno dei metodi piu' facili per creare file dinamici su excel con variabili dinamiche.

Step 1

SaiExcel1.png

Select SQL Task Editor and then in General -> Connection Type -> Select Excel

SaiExcel2.png
And then just below Connection Type in the “Connection” tab select “New Connection” and you will get the image to the right.

Step 3

Create a blank excel file or a dummy File to select the file for the above screen.

Need not worry about headers etc.

Step 4

Select SQL Source Type as “Direct Input”

Step 5

SaiExcel3.png
This is the Key part.

In the SQL Statement tab, write the code just the way we do for creating a table in SQL.

One can create the columns depending on the nature of column types like Varchar, INT, DECIMAL etc.

Here, in the above figure, “” refers to the Sheet name and the rest refers to the columns within the sheet.

Then Click “OK”.

If you want to have multiple sheets, then follow the above steps with multiple SQL Task Editors.

Now, all set for dynamic sheet names
SaiExcel4.png
If you want to have multiple sheets, then follow the above steps with multiple SQL Task Editors.

Now, all set for dynamic sheet names

Step 6

Now if you want to create the excel files dynamically

Select the Excel Connection Manager that is created in the Connection Managers pane and then go to Properties

Step 7

SaiExcel5.png
Click on the navigation pane of Expressions tab and you will be directed to Property Expression Editor Window.

Select “Excel File Path” from the drop down list of the Property tab in the Property Expression Window and click on “Expression” navigation pane.

Step 8

Now you will be directed to Expression builder window where you can build up your expression for the file path and file name for the excel sheet like below.

Check the expression by using “Evaluate Expression” in the bottom and when you are happy click “OK”.

That’s all you are done.

Now when you execute the package, you will see the desired sheet names with desired File name in the desired file path.

Step 9

SaiExcel6.png
Now you will be directed to Expression builder window where you can build up your expression for the file path and file name for the excel sheet like below.

Check the expression by using “Evaluate Expression” in the bottom and when you are happy click “OK”.

That’s all you are done.

Now when you execute the package, you will see the desired sheet names with desired File name in the desired file path.

Author

Helpful?

Please note, this commenting system is still in final testing.
Copyright Claytabase Ltd 2020

Registered in England and Wales 08985867

Site Links

RSSLoginLink Cookie PolicyMappa del sito

Social Media

facebook.com/Claytabaseinstagram.com/claytabase/twitter.com/Claytabaselinkedin.com/company/claytabase-ltd

Get in Touch

+442392064871info@claytabase.comClaytabase Ltd, Unit 3d, Rink Road Industrial Estate, PO33 2LT, United Kingdom

Partnered With

Le impostazioni di questo sito sono impostate per consentire tutti i cookie. Questi possono essere modificati sulla nostra pagina politica e le impostazioni dei cookie. Continuando a utilizzare questo sito l'utente accetta l'utilizzo dei cookie.
Ousia Logo
Logout
Ousia CMS Loader