{"id":12103,"date":"2022-09-05T06:53:00","date_gmt":"2022-09-05T04:53:00","guid":{"rendered":"https:\/\/expert-only.com\/?p=12103"},"modified":"2022-10-11T14:46:40","modified_gmt":"2022-10-11T12:46:40","slug":"ssis-connection-string-to-load-excel-files","status":"publish","type":"post","link":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/","title":{"rendered":"SSIS connection string to load Excel files"},"content":{"rendered":"\n<h4 class=\"has-text-align-center wp-block-heading\" id=\"h-how-to-build-an-ssis-connection-string-to-connect-to-excel-files-and-load-data-into-a-database\"><strong><em>How to build an SSIS connection string to connect to Excel files and load data into a database?<\/em><\/strong><\/h4>\n\n\n\n<p>To connect, read and load data from Excel files with SSIS, it is necessary to build an OLEDB connection string. There are several ways to do this, a connection with the Excel Connection component of SSIS, using an ADO driver, or using an OLEDB connection.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for an OLEDB connection string to load Excel files with SSIS<\/h2>\n\n\n\n<p>Some settings are mandatory to build the OLEDB connection string for Excel. So here is how to build an OLEDB connection string to load Excel files from an SSIS package. First, to build an Excel connection string, use this example and adapt it to the project context. The OLEDB connection string for a Microsoft Excel file is therefore of the following type:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"visualbasic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Data Source=C:\\Dossier\\file.xlsx;Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1\u2033;<\/pre>\n\n\n\n<p>The ConnectionString property in English contains the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><em>Data Source<\/em>: for an Excel workbook this is the file path<\/li><li><em>Provider<\/em>: type of connection, here it is an OLEDB 12.0 connection<\/li><li><em>Extended Properties<\/em>: to add additional options<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Classic Excel connection error<\/h3>\n\n\n\n<p>Secondly, if the following Excel file connection error is displayed, the Excel Access Database Engine 2016 driver is not installed on the machine running the SSIS package.<\/p>\n\n\n\n<p>The error in English: The &#8216;Microsoft.ACE.OLEDB.12.0&#8217; provider is not registered on the local machine. The installation file is called AccessDatabaseEngine.exe, it is mandatory to install the Office components on the local machine or on the server to connect to the Office file. Here is a complete <a href=\"https:\/\/expert-only.com\/en\/ssis\/access-database-engine-2016-excel-driver\/\">tutorial to download and install the Excel 2016 driver for SSIS<\/a> on your machine. After installation, reboot the machine to avoid configuration errors.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-expert-only wp-block-embed-expert-only\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"9FXheQ7VIj\"><a href=\"https:\/\/expert-only.com\/en\/ssis\/access-database-engine-2016-excel-driver\/\">Access Database Engine 2016 Excel driver for SSIS<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Access Database Engine 2016 Excel driver for SSIS&#8221; &#8212; SQL and IT Tutorials\" src=\"https:\/\/expert-only.com\/en\/ssis\/access-database-engine-2016-excel-driver\/embed\/#?secret=Y5CtT3Olq5#?secret=9FXheQ7VIj\" data-secret=\"9FXheQ7VIj\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>For your information, the driver is also called Microsoft Access 2016 Database Engine redistributable. Furthermore, this version of the driver is compatible with the following Microsoft operating systems, older systems are not listed here:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Windows Server 2012 R2, Windows Server 2008 (Service Pack 2 and R2 versions), Windows Server 2003 R2 (in 32-bit and 64-bit versions).<\/li><li>Windows 10, Windows 8 and Windows 7.<\/li><\/ul>\n\n\n\n<p>Finally, to get more information, visit directly the <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=54920\" target=\"_blank\" rel=\"noreferrer noopener\">official driver download page<\/a> on Microsoft.com.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>How to build an SSIS connection string to connect to Excel files and load data into a database? To connect, read and load data from Excel files with SSIS, it is necessary to build an OLEDB connection string. There <a class=\"mh-excerpt-more\" href=\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\" title=\"SSIS connection string to load Excel files\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":10744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[516],"tags":[],"class_list":{"0":"post-12103","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ssis"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.7 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SSIS connection string to load Excel files - Integration Services<\/title>\n<meta name=\"description\" content=\"SSIS connection string example to load Excel files into a SQL Server database with the OLEDB driver and the ConnectionString property.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SSIS connection string to load Excel files\" \/>\n<meta property=\"og:description\" content=\"SSIS connection string example to load Excel files into a SQL Server database with the OLEDB driver and the ConnectionString property.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL and IT Tutorials\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-05T04:53:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-11T12:46:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Expert-Only\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@expert_only\" \/>\n<meta name=\"twitter:site\" content=\"@expert_only\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Expert-Only\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\"},\"author\":{\"name\":\"Expert-Only\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\"},\"headline\":\"SSIS connection string to load Excel files\",\"datePublished\":\"2022-09-05T04:53:00+00:00\",\"dateModified\":\"2022-10-11T12:46:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\"},\"wordCount\":357,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg\",\"articleSection\":[\"SSIS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\",\"url\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\",\"name\":\"SSIS connection string to load Excel files - Integration Services\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg\",\"datePublished\":\"2022-09-05T04:53:00+00:00\",\"dateModified\":\"2022-10-11T12:46:40+00:00\",\"description\":\"SSIS connection string example to load Excel files into a SQL Server database with the OLEDB driver and the ConnectionString property.\",\"breadcrumb\":{\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"en\",\"item\":\"https:\/\/expert-only.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SSIS connection string to load Excel files\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/expert-only.com\/en\/#website\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"name\":\"SQL and IT Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/expert-only.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/expert-only.com\/en\/#organization\",\"name\":\"Expert-Only\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"width\":381,\"height\":174,\"caption\":\"Expert-Only\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\",\"https:\/\/x.com\/expert_only\",\"https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\",\"name\":\"Expert-Only\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"caption\":\"Expert-Only\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SSIS connection string to load Excel files - Integration Services","description":"SSIS connection string example to load Excel files into a SQL Server database with the OLEDB driver and the ConnectionString property.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/","og_locale":"en_US","og_type":"article","og_title":"SSIS connection string to load Excel files","og_description":"SSIS connection string example to load Excel files into a SQL Server database with the OLEDB driver and the ConnectionString property.","og_url":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/","og_site_name":"SQL and IT Tutorials","article_publisher":"https:\/\/www.facebook.com\/ExpertOnlyCom\/","article_published_time":"2022-09-05T04:53:00+00:00","article_modified_time":"2022-10-11T12:46:40+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg","type":"image\/jpeg"}],"author":"Expert-Only","twitter_card":"summary_large_image","twitter_creator":"@expert_only","twitter_site":"@expert_only","twitter_misc":{"Written by":"Expert-Only","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#article","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/"},"author":{"name":"Expert-Only","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef"},"headline":"SSIS connection string to load Excel files","datePublished":"2022-09-05T04:53:00+00:00","dateModified":"2022-10-11T12:46:40+00:00","mainEntityOfPage":{"@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/"},"wordCount":357,"commentCount":0,"publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"image":{"@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg","articleSection":["SSIS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/","url":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/","name":"SSIS connection string to load Excel files - Integration Services","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage"},"image":{"@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg","datePublished":"2022-09-05T04:53:00+00:00","dateModified":"2022-10-11T12:46:40+00:00","description":"SSIS connection string example to load Excel files into a SQL Server database with the OLEDB driver and the ConnectionString property.","breadcrumb":{"@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#primaryimage","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/09\/macro-1452987_1920x1080.jpg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/expert-only.com\/en\/ssis\/ssis-connection-string-to-load-excel-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"en","item":"https:\/\/expert-only.com\/en\/"},{"@type":"ListItem","position":2,"name":"SSIS connection string to load Excel files"}]},{"@type":"WebSite","@id":"https:\/\/expert-only.com\/en\/#website","url":"https:\/\/expert-only.com\/en\/","name":"SQL and IT Tutorials","description":"","publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/expert-only.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/expert-only.com\/en\/#organization","name":"Expert-Only","url":"https:\/\/expert-only.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","width":381,"height":174,"caption":"Expert-Only"},"image":{"@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ExpertOnlyCom\/","https:\/\/x.com\/expert_only","https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA"]},{"@type":"Person","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef","name":"Expert-Only","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","caption":"Expert-Only"}}]}},"_links":{"self":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/12103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/comments?post=12103"}],"version-history":[{"count":0,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/12103\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media\/10744"}],"wp:attachment":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media?parent=12103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/categories?post=12103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/tags?post=12103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}