{"id":213,"date":"2012-10-02T22:25:55","date_gmt":"2012-10-02T22:25:55","guid":{"rendered":"http:\/\/www.sqlfreelancer.com\/blog\/?p=213"},"modified":"2014-03-06T15:41:04","modified_gmt":"2014-03-06T15:41:04","slug":"using-ssis-to-automatically-populate-a-sharepoint-list","status":"publish","type":"post","link":"https:\/\/www.sqlfreelancer.com\/blog\/using-ssis-to-automatically-populate-a-sharepoint-list\/","title":{"rendered":"Using SSIS to Automatically Populate a SharePoint List"},"content":{"rendered":"<p>In my opinion, the best (and easiest) way to accomplish this goal is using SSIS packages and a component from Codeplex called <a href=\"http:\/\/sqlsrvintegrationsrv.codeplex.com\/releases\/view\/17652\" target=\"_blank\">Sharepoint List Source and Destination<\/a>. Ray Barley wrote a <a href=\"http:\/\/www.mssqltips.com\/sqlservertip\/1733\/accessing-sharepoint-lists-with-sql-server-integration-services-ssis-2005\/\">tip<\/a> regarding this component a while back and he explained how to extract data from Sharepoint. I encourage everyone to check out his tip as it explains how to install the component and has some very good tips regarding the Sharepoint Source task. In this post, we&#8217;ll go over the Destination task in more detail.<\/p>\n<h3><strong>Setup a Sharepoint List<\/strong><\/h3>\n<p>For this tip, I&#8217;m just going to set up a quick custom list. This example is done in Sharepoint 2007, but Sharepoint 2010 should be close to the same.<\/p>\n<p>Go to Site Actions, Create:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-214\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List.png\" width=\"257\" height=\"163\" \/><\/a><br \/>\nCustom Lists, Custom List:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-215\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-1.png\" width=\"192\" height=\"75\" \/><\/a><br \/>\nFor this example, I&#8217;ll create a list called SQL Versions:<br \/>\n<a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-216\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-2.png\" width=\"276\" height=\"81\" \/><\/a><br \/>\nOnce I have a list created, I need to create a view with custom columns that match my SQL query. For this example I need Server Name, Instance Name, and Build. To create a view click Settings, Create View:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-217\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-3.png\" width=\"254\" height=\"173\" \/><\/a><br \/>\nChoose Standard View:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-218\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-4.png\" width=\"413\" height=\"86\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-4.png 413w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-4-300x62.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/a><br \/>\nName the View (for this example, I&#8217;ll name it SQLVersionView and make it my default view):<br \/>\n<a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-219\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-5.png\" width=\"259\" height=\"122\" \/><\/a><br \/>\nNext we&#8217;ll need to create custom columns. Go to Settings, List Settings:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-220\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-6.png\" width=\"250\" height=\"172\" \/><\/a><br \/>\nTo create the first column click Title and rename it to Server Name:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-221\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-7.png\" width=\"192\" height=\"160\" \/><\/a><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-222\" alt=\"SQL Freelancer SQL Server Sharepoint Populate List\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-8.png\" width=\"301\" height=\"364\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-8.png 301w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Populate-Sharepoint-List-8-248x300.png 248w\" sizes=\"auto, (max-width: 301px) 100vw, 301px\" \/><\/a><br \/>\n<a href=\"http:\/\/www.mssqltips.com\/sqlservertip\/2763\/using-ssis-to-automatically-populate-a-sharepoint-list\/\" target=\"_blank\">Click here to view the rest of this post.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my opinion, the best (and easiest) way to accomplish this goal is using SSIS packages and a component from Codeplex called Sharepoint List Source and Destination. Ray Barley wrote a tip regarding this component a while back and he explained how to extract data from Sharepoint. I encourage everyone to check out his tip [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,49,48],"tags":[35,106,108,60,50],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-business-intelligence","category-integration-services-ssis","category-sharepoint","tag-bi","tag-business-intelligence","tag-sharepoint","tag-sql-server-integration-services","tag-ssis"],"_links":{"self":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":1,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}