---
title: Export Data from SQL Server to Azure Based Snowflake
description: Read this blog to understand how to extract and interpret data from Microsoft SQL Server, prepare and load Microsoft SQL Server data into Snowflake, and keep it up-to-date?
image: https://blog.e-zest.com/hubfs/blog-files/Export%20data%20from%20SQL%20server%20to%20Azure%20based%20Snowflake-181220.png
---

[![e-Zest logo\_An accion lab company\_Colour](https://blog.e-zest.com/hubfs/images/Logos%20with%20Tagline/Corporate/SVG/e-Zest%20logo_An%20accion%20lab%20company_Colour.svg "e-Zest logo_An accion lab company_Colour")](https://www.e-zest.com/)

- [WORK](https://www.e-zest.com/our-work)
- [SERVICES](https://www.e-zest.com/our-services) 
    - [Product Engineering](https://www.e-zest.com/digital-product-engineering-services)
    - [Enterprise Data Services](https://www.e-zest.com/enterprise-data-services)
    - [Digital Commerce](https://www.e-zest.com/digital-commerce-services)
    - [Digital Operations](https://www.e-zest.com/digital-operations)
    - [Digital Consulting](https://www.e-zest.com/digital-transformation-consulting-services)
    - [Digital Experience Design](https://www.e-zest.com/digital-experience-design)
- [INSIGHTS](https://blog.e-zest.com/)
- [CAREERS](https://www.e-zest.com/careers)
- [ENTERPRISE DATA SERVICES](https://www.e-zest.com/enterprise-data-services)
- [GENERATIVE AI](https://www.e-zest.com/generative-ai)
- [Healthcare](https://healthcare.e-zest.com)
- [Contact Us](https://www.e-zest.com/contact-us)

- ![Elevating Product Engineering with AI and ML](https://blog.e-zest.com/hubfs/Elevating%20Product%20Engineering%20with%20AI%20and%20ML.jpg)

  [BLOGS](https://blog.e-zest.com)
  
  #### Elevating Product Engineering with AI and ML

  As technology evolves and customer choices broaden, there is an increasing ...

  [Read more](https://blog.e-zest.com/elevating-product-engineering-with-ai-and-ml)
- ![e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024](https://blog.e-zest.com/hubfs/e-Zest%20%E2%80%93%20An%20Accion%20Labs%20Company%20-%20Gets%20Recognition%20as%20a%20Contender%20in%20the%20ISG%20Provider%20LensTM%20Study%20on%20Digital%20Engineering%20Services%202024.jpg)

  [NEWS](https://blog.e-zest.com/news)
  
  #### e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024

  We are delighted to announce that e-Zest – An Accion Labs Company has been ...

  [Read more](https://blog.e-zest.com/news/e-zest-an-accion-labs-company-gets-recognition-as-a-contender-in-the-isg-provider-lens-study-on-digital-engineering-services-2024)
- ![e-Zest Solutions supports Digital Pune Mission](https://blog.e-zest.com/hubfs/blog-files/Digital%20Literacy%20Bus%20e-Zest.png)

  [CSR](https://blog.e-zest.com/csr)
  
  #### e-Zest Solutions supports Digital Pune Mission

  **Pune, India:** e-Zest Solutions, a leading digital technology innovation ...

  [Read more](https://blog.e-zest.com/csr/e-zest-solutions-supports-digital-pune-mission)

- [Work](https://www.e-zest.com/our-work)
- [Services](https://www.e-zest.com/our-services)
- [Insights](https://blog.e-zest.com)
- [Careers](https://www.e-zest.com/careers)
- [Enterprise Data](https://www.e-zest.com/enterprise-data-services)
- [Generative AI](https://www.e-zest.com/generative-ai)
- [Innovations](https://www.e-zest.com/innovations)
- [Healthcare](https://healthcare.e-zest.com)
- [About](https://www.e-zest.com/about-us)
- [Contact](https://www.e-zest.com/contact-us)

- [Blog](https://blog.e-zest.com/)
- [News](https://blog.e-zest.com/news)
- [CSR](https://blog.e-zest.com/csr)

- [![Linkedin Icon](https://blog.e-zest.com/hubfs/icons/linkedin_icon_white.svg)](https://www.linkedin.com/company/e-zest-solutions/)
- [![Twitter Icon](https://blog.e-zest.com/hubfs/twitter-logo-silhouette%20(5).svg)](https://twitter.com/ezest)
- [![Facebook Icon](https://blog.e-zest.com/hubfs/facebook-app-logo%20(4).svg)](https://www.facebook.com/61259256638)
- [![Instagram Icon](https://blog.e-zest.com/hubfs/instagram-logo%20(4).svg)](https://www.instagram.com/ezestsolutions/)
- [![Youtube Icon](https://blog.e-zest.com/hubfs/icons/youtube_icon_white.svg)](https://www.youtube.com/user/ezestcorporate)

[![Go to top icon](https://blog.e-zest.com/hubfs/AA%20Assets/top%20button.svg)](https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake#top)

Hit enter to search or ESC to close

Insights

e-Zest members share technology ideas to foster digital transformation.

- [Blog](https://blog.e-zest.com)
- [Whitepaper](https://blog.e-zest.com/whitepaper)
- [Playbook](https://blog.e-zest.com/playbook)
- [News](https://blog.e-zest.com/news)
- [Innovation](https://blog.e-zest.com/innovation)
- [Media Kit](https://www.e-zest.com/media-kit)

# Export Data from SQL Server to Azure Based Snowflake

[Nitin Gupta](https://blog.e-zest.com/author/nitin-gupta)  Dec 11, 2018

- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake&title=&summary=&source=>
- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake&text=Export%20Data%20from%20SQL%20Server%20to%20Azure%20Based%20Snowflake>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake>
- <https://www.instagram.com/ezestsolutions/?u=https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake>

The data export process can broadly be divided into 2 steps:

Step 1: Export the data from SQL Server to Azure Blob

Step 2: Bulk load the data from Azure Blob to Snowflake using the COPY command

**Step 1: Export the data from SQL Server to Azure Blob**

**Configure SQL Server Management Studio to export data to Azure blob storage**

The Export wizard provided by SQL Server Management Studio can be used to export the SQL Server tables. SSMS by default doesn’t provide the option to use Azure blob as the destination for the exported data.

To use the Azure Blob as the destination you need to install the [Microsoft SQL Server Integration Services Feature pack for Azure](https://www.microsoft.com/en-us/download/details.aspx?id=49492).

**Export the data to Azure blob in Avro format**

- Create a blob container on Azure where the exported files will be stored.
- Select Azure Blob Destination as the destination for the export in SSMS.
- Provide the Storage account name and account key for connecting to Azure Blob
- Choose the blob container as the export location.
- **Choose AVRO as the blob file format.**  
  If data is exported in delimited files there can be challenges around the delimited field being present in the data, NULL data values being exported as empty fields etc.  
  Snowflake COPY command provides support for AVRO files, so it is recommended to export the data in AVRO format to avoid these challenges.
- Select the table to be exported or write a custom query to export the data.

![sql-server-import-and-export-wizard](https://blog.e-zest.com/hs-fs/hubfs/blog-files/sql-server-import-and-export-wizard.png?width=600&name=sql-server-import-and-export-wizard.png)  
**Step 2: Bulk load the data from Azure to Snowflake using the COPY command**

Once the data is exported to Azure blob, the data can be copied from Azure blob to Snowflake using the COPY command. Below are the steps to use the COPY command

- Create the corresponding tables in the Snowflake database
- [Create a file format that uses all the default AVRO format options](https://docs.snowflake.net/manuals/sql-reference/sql/create-file-format.html):  
  CREATE OR REPLACE FILE FORMAT my\_avro\_format TYPE = AVRO;
- [Create an external stage](https://docs.snowflake.net/manuals/user-guide/data-load-azure-create-stage.html):  
  CREATE OR REPLACE STAGE my\_azure\_stage  
  URL='azure://myaccount.blob.core.windows.net/mycontainer/load/files'  
  CREDENTIALS=(AZURE\_SAS\_TOKEN='MY SAS token')FILE\_FORMAT = my\_avro\_format;
- [Copy the data from Azure stage to Snowflake using the Avro parsing capabilities provided by Snowflake:](https://docs.snowflake.net/manuals/user-guide/data-load-azure-copy.html)  
  COPY INTO mytable  
  FROM (select  
  $1:column1,  
  $1:column2,  
  …  
  $1:columnN  
  From @my\_azure\_stage) FILE\_FORMAT = (FORMAT\_NAME = my\_avro\_format);

 *Make sure the order of the columns in the ‘select from stage’ statement matches the order of the columns in the target Snowflake table.*

**Recommendations**

- Use AVRO as the file format for the Azure blob to avoid data problems during import.
- The performance of other queries may be impacted if the volume of data is too large. To avoid any impact of production queries, it is better to create a backup of the database on a separate machine and use this backup for the export.
- Use nolock while exporting the data. This will avoid lock on the tables while the data is being exported and will also result in faster export of the data.
- Install SSMS either on the same machine which has the SQL Server instance or on a machine which is in the same network of the SQL Server.
- If the data volume is too large, export data in batches using custom SQL queries.

- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake&text=Export%20Data%20from%20SQL%20Server%20to%20Azure%20Based%20Snowflake>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake>
- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/export-data-from-sql-server-to-azure-based-snowflake&title=&summary=&source=>

### Similar Blog

## [![REST Authentication using OAUTH 2.0 Resource Owner Password Flow protocol](https://blog.e-zest.com/hs-fs/file-3586009710-jpg/blog-files/resource-owner-password-flow.jpg) REST Authentication using OAUTH 2.0 Resource Owner Password Flow protocol Introduction In this blog we will look at how to perform authentication for an application exposing its functionalities as Rest ... By Nitin Gupta Oct 08, 2013](https://blog.e-zest.com/rest-authentication-using-oauth-2-0-resource-owner-password-flow-protocol/)

<https://blog.e-zest.com/ahead-of-time-compilation-for-javafx-2-0-applications/>

[Ahead of Time Compilation for JavaFX 2.0 applications](https://blog.e-zest.com/ahead-of-time-compilation-for-javafx-2-0-applications/)

[We at e-Zest are working on](https://blog.e-zest.com/ahead-of-time-compilation-for-javafx-2-0-applications/)[JavaFX](https://blog.e-zest.com/javafx/) 2.0 for more than a year and are amongst the few early adopters of the technology. Based on ...

By Nitin Gupta May 07, 2012

[JavaFX 2.0 Resizing of UI Controls **Resizing of the Root** By Nitin Gupta Feb 15, 2012](https://blog.e-zest.com/javafx-20-resizing-of-ui-controls/)

<https://blog.e-zest.com/osgi-in-practice-part-2-spring-dm-server-2/>

[OSGi in Practice - Part 2 (Spring DM Server )](https://blog.e-zest.com/osgi-in-practice-part-2-spring-dm-server-2/)

[This Blog is in continuation of my](https://blog.e-zest.com/osgi-in-practice-part-2-spring-dm-server-2/)[first blog on OSGi](https://blog.e-zest.com/Blog/post/OSGi-Java-architects-musings-practice-part1.aspx).

By Nitin Gupta Sep 20, 2010

## Helping Organizations Thrive in the Digital Age

[Contact Us](https://www.e-zest.com/contact-us)

- [About](https://www.e-zest.com/about-us)
- [Services](https://www.e-zest.com/our-services)
- [Work](https://www.e-zest.com/our-work)
- [Insights](https://blog.e-zest.com/)
- [Healthcare](https://healthcare.e-zest.com/)
- [Accion Labs](https://www.accionlabs.com/)

- <https://www.linkedin.com/company/e-zest-solutions/>
- <https://twitter.com/ezest>
- <https://www.facebook.com/eZest/>
- <https://www.instagram.com/ezestsolutions/>
- <https://www.youtube.com/user/ezestcorporate>

- Dallas
- Detroit
- Hannover
- Vienna
- London
- Pune

 © 2025 e-Zest Solutions

- [Privacy Policy](https://www.e-zest.com/privacypolicy)
- [Cookie Policy](https://www.e-zest.com/cookie-policy)

 Contact us

 Contact us

e-Zest is a leading digital innovation partner for enterprises and technology companies that utilizes emerging technologies for creating engaging customers experiences. Being a customer-focused and technology-driven company, it always helps clients in crafting holistic business value for their software development efforts. It offers software development and consulting services for cloud computing, enterprise mobility, big data and analytics, user experience and digital commerce.