
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AmyNxDx</title>
	<atom:link href="http://amynxdx.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://amynxdx.net</link>
	<description>too young to reason, too grown up to dream</description>
	<lastBuildDate>Wed, 07 Mar 2012 19:11:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Pet CPR</title>
		<link>http://amynxdx.net/pets/pet-cpr/</link>
		<comments>http://amynxdx.net/pets/pet-cpr/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 16:06:06 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Pets]]></category>
		<category><![CDATA[CPR]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=192</guid>
		<description><![CDATA[Found this on Facebook: Ban Stupid People Not Pitbulls]]></description>
			<content:encoded><![CDATA[<p>Found this on Facebook: <a href="https://www.facebook.com/pages/Ban-stupid-people-not-Pitbulls/145166128886113" target="_new">Ban Stupid People Not Pitbulls</a></p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/pet-cpr.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/pet-cpr.jpg" alt="" title="pet-cpr" width="500" height="689" class="aligncenter size-full wp-image-193" /></a></p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fpets%2Fpet-cpr%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/pets/pet-cpr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSIS: Import Excel File Into SQL Database</title>
		<link>http://amynxdx.net/work/ssis-import-excel-file-into-sql-database/</link>
		<comments>http://amynxdx.net/work/ssis-import-excel-file-into-sql-database/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 20:52:27 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server Integration Services]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=178</guid>
		<description><![CDATA[I need to import data from a single Excel (.xls) file into a SQL database table. A simple way to import the data is by using SSIS (SQL Server Integration Services). Here is my file (Company2.xls): My Excel file looks like: *I created this tutorial while also making another one, hence the Excel Loop SSIS [...]]]></description>
			<content:encoded><![CDATA[<p>I need to import data from a single <strong>Excel</strong> (.xls) file into a SQL database table. A simple way to import the data is by using <strong>SSIS </strong>(SQL Server Integration Services).</p>
<p>Here is my file <em>(Company2.xls)</em>:<br />
<a href="http://amynxdx.net/wp-content/uploads/2012/02/1-folder-oneexcel.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/1-folder-oneexcel-300x144.jpg" alt="" title="1-folder-oneexcel" width="300" height="144" class="aligncenter size-medium wp-image-179" /></a></p>
<p>My <strong>Excel </strong>file looks like:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/2-excel-files.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/2-excel-files-300x166.jpg" alt="" title="2-excel-files" width="300" height="166" class="aligncenter size-medium wp-image-160" /></a></p>
<p><em>*I created this tutorial while also making another one, hence the Excel Loop SSIS everywhere. You can check out that tutorial here: <a href="http://amynxdx.net/work/ssis-excel-loop-into-sql/" target="_new">Excel Loop Into SQL</a></em></p>
<p>I&#8217;m using <strong>Microsoft Visual Studio 2008</strong></p>
<p><strong>1.</strong> Open up <strong>Visual Studio</strong>.</p>
<p><strong>2.</strong> Under <strong>Project Types</strong> select <strong>Business Intelligence Projects</strong>.</p>
<p><strong>3.</strong> Under <strong>Templates </strong>select <strong>Integration Services Project</strong>.</p>
<p><strong>4.</strong> Select a <strong>Name </strong>&#038; <strong>Location</strong> at the bottom. You can also add a <strong>Solution Name</strong>. <em>(I didn&#8217;t)</em>.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/3-NewProject.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/3-NewProject-300x202.jpg" alt="" title="3-NewProject" width="300" height="202" class="aligncenter size-medium wp-image-161" /></a></p>
<p><strong>5.</strong> Click <strong>OK</strong>.</p>
<p><em>*I like to be a little lazy and just use the Wizard. So for this tutorial, that&#8217;s what I am showing.</em></p>
<p><strong>6.</strong> Inside of <strong>Solution Explorer</strong>, right-click on <strong>SSIS Packages</strong> and select <strong>SSIS Import and Export Wizard</strong> from the pop-out menu.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/4-Wizard.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/4-Wizard-247x300.jpg" alt="" title="4-Wizard" width="247" height="300" class="aligncenter size-medium wp-image-162" /></a></p>
<p><strong>7.</strong> The <strong>SQL Server Import and Export Wizard</strong> window will pop up next.</p>
<p><strong>8.</strong> <strong>Choose a Data Source:</strong><br />
&nbsp; &nbsp;<strong>a.</strong> Data Source: <strong>Microsoft Excel</strong><br />
&nbsp; &nbsp;<strong>b.</strong> Excel file path: select your <strong>.xls</strong> file. <em>(Mine is Company2.xls)</em><br />
&nbsp; &nbsp;<strong>c.</strong> Be sure to check <strong>First row has column names</strong>, if your file has the column names in the first row!</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/5-excelsource-Company2.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/5-excelsource-Company2-293x300.jpg" alt="" title="5-excelsource-Company2" width="293" height="300" class="aligncenter size-medium wp-image-181" /></a></p>
<p><strong>9.</strong> Click <strong>Next</strong>.</p>
<p><strong>10.</strong> <strong>Choose a Destination:</strong><br />
&nbsp; &nbsp;<strong>a.</strong> Destination: <strong>SQL Server Native Client 10.0</strong><br />
&nbsp; &nbsp;<strong>b.</strong> Server name: select your server name <em>(I&#8217;m using localhost)</em><br />
&nbsp; &nbsp;<strong>c.</strong> Authentication: You can either use <strong>Windows Authentication</strong> or <strong>SQL Authentication</strong>. If you use <strong>SQL Authentication</strong>, you must enter your <strong>User name</strong> and <strong>Password</strong>. <em>(I&#8217;m using Windows Authentication)</em><br />
&nbsp; &nbsp;<strong>d.</strong> Database: select your database name here. <em>(I&#8217;m using one called Amys)</em></p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/6-sqldestination.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/6-sqldestination-293x300.jpg" alt="" title="6 - sqldestination" width="293" height="300" class="aligncenter size-medium wp-image-164" /></a></p>
<p><strong>11.</strong> Click <strong>Next</strong>.</p>
<p><strong>12.</strong> <strong>Specify Table Copy or Query</strong> window is next. Select <strong>Copy data from one or more tables or views</strong>:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/7-copytables.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/7-copytables-293x300.jpg" alt="" title="7-copytables" width="293" height="300" class="aligncenter size-medium wp-image-165" /></a></p>
<p><strong>13.</strong> Click <strong>Next</strong>.</p>
<p><strong>14.</strong> <strong>Select Source Tables and Views</strong> comes up next.<br />
&nbsp; &nbsp;<strong>a.</strong> Select your <strong>Source </strong>(the <strong>Excel </strong>sheet name). <em>Mine is simply &#8216;Sheet1$&#8217;</em> (the default sheet name from Excel)<br />
&nbsp; &nbsp;<strong>b.</strong> Select your <strong>Destination </strong>(the <strong>SQL </strong>table name you want the excel data entered into). In my case, I haven&#8217;t made a table yet, so I&#8217;m going to type in: <em>[dbo].[Tut-SSISExcelLoop]</em></p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/8-Destination1.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/8-Destination1-293x300.jpg" alt="" title="8-Destination1" width="293" height="300" class="aligncenter size-medium wp-image-166" /></a></p>
<p>&nbsp; &nbsp;<strong>c.</strong> Click on <strong>Edit Mappings</strong>. Here you can match up your Excel &#038; SQL column names. Since I don&#8217;t have a table made already, I have <strong>Create destination table</strong> selected and the the wizard automatically matched up my columns for me. If I wanted, I can change the SQL column types under <strong>Mappings:</strong> then <strong>Type</strong>. If you already have a table recreated you can select <strong>Delete rows in destination table</strong> or <strong>Append rows to the destination table</strong>. Depends if you just need to delete everything and add new or if you want to add additional information to the table.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/9-DestinationMappings.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/9-DestinationMappings-300x239.jpg" alt="" title="9-DestinationMappings" width="300" height="239" class="aligncenter size-medium wp-image-167" /></a></p>
<p><strong>15.</strong> Click <strong>OK</strong>.</p>
<p><strong>16.</strong> This returns you to the <strong>Select Source Tables and Views</strong> window. You can click <strong>Preview </strong>to preview how your data will look. Click <strong>Next</strong>.</p>
<p><strong>17.</strong> Next the <strong>Complete the Wizard</strong> window comes up. Just click <strong>Finish</strong>.</p>
<p><strong>18.</strong> <strong>The execution was successful</strong> window comes up next. Here it will show you if you have any <strong>Errors </strong>or <strong>Warnings</strong>. If there are red x&#8217;s, you have a problem. Since the wizard is creating a new destination table for me, and it picked out my column types, I have no Errors or Warnings, just green Success checks. Click <strong>Close</strong>.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/10-ExecuteSuccess.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/10-ExecuteSuccess-293x300.jpg" alt="" title="10-ExecuteSuccess" width="293" height="300" class="aligncenter size-medium wp-image-168" /></a></p>
<p><strong>19.</strong> Once you click Close you will be brought back to <strong>Control Flow</strong>.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/11-Package.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/11-Package-300x221.jpg" alt="" title="11-Package" width="300" height="221" class="aligncenter size-medium wp-image-169" /></a></p>
<p><strong>20.</strong> Right-click <strong>Preparation SQL Task 1</strong> and select <strong>Edit</strong>, the <strong>Execute SQL Task Editor</strong> window will pop up:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/12-PrepareSQL.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/12-PrepareSQL-300x254.jpg" alt="" title="12-PrepareSQL" width="300" height="254" class="aligncenter size-medium wp-image-170" /></a></p>
<p><em>*This only shows up if you chose <strong>Create destination table</strong> in step 14. c.</em></p>
<p>&nbsp; &nbsp;<strong>a.</strong> This <strong>SQL Task</strong> is creating a new table using the <strong>Connection </strong>DestinationConnectionOLEDB that we made in step 10. </p>
<p><strong>21.</strong> Right-click on <strong>Data Flow Task 1</strong> and select <strong>Edit</strong>. This will take you to the <strong>Data Flow</strong> tab. This shows your Source inserting into your Destination</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/13-DataFlow.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/13-DataFlow-300x184.jpg" alt="" title="13-DataFlow" width="300" height="184" class="aligncenter size-medium wp-image-171" /></a></p>
<p>22. Right-click on your <strong>Source</strong> <em>(Mine is called: Source &#8211; Sheet1$)</em> and click <strong>Edit</strong>.<br />
&nbsp; &nbsp;a. <strong>Connection Manager</strong> shows your <strong>OLE DB connection name</strong>, the <strong>Data access mode</strong> and the <strong>Name of the Excel sheet</strong>.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/14-DataFlowSource1.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/14-DataFlowSource1-300x259.jpg" alt="" title="14-DataFlowSource1" width="300" height="259" class="aligncenter size-medium wp-image-172" /></a></p>
<p>&nbsp; &nbsp;b. <strong>Columns </strong>shows the column names from you Excel sheet and the Output Column names.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/15-DataFlowSource2.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/15-DataFlowSource2-300x259.jpg" alt="" title="15-DataFlowSource2" width="300" height="259" class="aligncenter size-medium wp-image-173" /></a></p>
<p>&nbsp; &nbsp;c. <strong>Error Output</strong> shows what to do on errors. You can change the <strong>Error </strong>type and <strong>Truncation</strong>.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/16-DataFlowSource3.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/16-DataFlowSource3-300x259.jpg" alt="" title="16-DataFlowSource3" width="300" height="259" class="aligncenter size-medium wp-image-174" /></a></p>
<p><strong>23.</strong> Click <strong>OK </strong>to save changes or <strong>Cancel </strong>to exit.</p>
<p><strong>24.</strong> Click <strong>Run </strong> to Execute your package.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/17-run.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/17-run-300x187.jpg" alt="" title="17-run" width="300" height="187" class="aligncenter size-medium wp-image-175" /></a></p>
<p><strong>25.</strong> Both<strong> Preparation SQL Task 1</strong> and <strong>Data Flow Task 1</strong> should turn green, indicating Success. (If yours turns red, check the Output tab at the bottom for errors).</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/18-SuccessfulBuild.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/18-SuccessfulBuild-300x184.jpg" alt="" title="18-SuccessfulBuild" width="300" height="184" class="aligncenter size-medium wp-image-176" /></a></p>
<p><strong>26.</strong> Now open up <strong>Microsoft SQL Server Management Studio</strong>, Select your database and then select all files in your table. The excel file data you just imported should show up:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/19-sql.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/19-sql-300x158.jpg" alt="" title="19-sql" width="300" height="158" class="aligncenter size-medium wp-image-177" /></a></p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fwork%2Fssis-import-excel-file-into-sql-database%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/work/ssis-import-excel-file-into-sql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSIS: How To Strip Double Quotes &#8221; From .csv File on Import</title>
		<link>http://amynxdx.net/work/ssis-how-to-strip-double-quotes-from-csv-file-on-import/</link>
		<comments>http://amynxdx.net/work/ssis-how-to-strip-double-quotes-from-csv-file-on-import/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 15:14:08 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[.csv]]></category>
		<category><![CDATA[SQL Server Integration Services]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=149</guid>
		<description><![CDATA[This is a quick tutorial to show you how to strip/remove the double quotes &#8221; from columns in a .csv file when importing with SSIS (SQL Server Integration Services). I like to use the wizard, since it&#8217;s quick and easy. 1. Right-click SSIS Packages in your Solution Explorer. 2. Select SSIS Import and Export Wizard. [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick tutorial to show you how to strip/remove the double quotes &#8221; from columns in a .csv file when importing with SSIS (SQL Server Integration Services).</p>
<p>I like to use the wizard, since it&#8217;s quick and easy.</p>
<p>1. Right-click <strong>SSIS Packages</strong> in your <strong>Solution Explorer</strong>.<br />
2. Select <strong>SSIS Import and Export Wizard</strong>.<br />
<a href="http://amynxdx.net/wp-content/uploads/2012/02/1-Wizard.jpg"><img class="aligncenter size-medium wp-image-150" title="1-Wizard" src="http://amynxdx.net/wp-content/uploads/2012/02/1-Wizard-300x261.jpg" alt="" width="300" height="261" /></a></p>
<p>3. When the <strong>SQL Server Import and Export Wizard</strong> comes up change the <strong>Data Source</strong> to <strong>Flat File Source</strong>.<br />
4. Select your <strong>file name</strong> by hitting <strong>Browse</strong>.<br />
5. Under <strong>Format</strong> you need to change the <strong>Text qualifier</strong> from &lt;none&gt;  to <strong>&#8220;</strong> (double quotes):<br />
<a href="http://amynxdx.net/wp-content/uploads/2012/02/2-FlatFileSource12.jpg"><img class="aligncenter size-medium wp-image-153" title="2-FlatFileSource1" src="http://amynxdx.net/wp-content/uploads/2012/02/2-FlatFileSource12-293x300.jpg" alt="" width="293" height="300" /></a><br />
<small>(Note: I have checked <strong>Column names in the first data row</strong> because my .csv file has the column names. Do not check this if your file does not have the column names)</small></p>
<p>6. Now if you click on <strong>Preview</strong> you will see your columns without the <strong>&#8220;</strong> (double quotes):<br />
<a href="http://amynxdx.net/wp-content/uploads/2012/02/3-FlatFileSource2.jpg"><img class="aligncenter size-medium wp-image-154" title="3-FlatFileSource2" src="http://amynxdx.net/wp-content/uploads/2012/02/3-FlatFileSource2-293x300.jpg" alt="" width="293" height="300" /></a></p>
<p>7. Now you can hit <strong>Next </strong>on the wizard and choose your<strong> Destination Connection</strong> and follow through how you normally would.</p>
<p>It&#8217;s really just that simple!</p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fwork%2Fssis-how-to-strip-double-quotes-from-csv-file-on-import%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/work/ssis-how-to-strip-double-quotes-from-csv-file-on-import/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SSIS ManagedDTS .dll Assembly</title>
		<link>http://amynxdx.net/work/ssis-manageddts-dll-assembly/</link>
		<comments>http://amynxdx.net/work/ssis-manageddts-dll-assembly/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 17:28:37 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DTS]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=135</guid>
		<description><![CDATA[1. Run C:\Windows\assembly\gac_msil in the Run box from Start 2. Find the dll in folder Microsoft.SqlServer.ManagedDTS 3. Copy the dll To add assembly .dll reference to code]]></description>
			<content:encoded><![CDATA[<p>1. Run C:\Windows\assembly\gac_msil in the Run box from Start</p>
<p>2. Find the dll in folder Microsoft.SqlServer.ManagedDTS</p>
<p>3. Copy the dll</p>
<p>To add assembly .dll reference to code</p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fwork%2Fssis-manageddts-dll-assembly%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/work/ssis-manageddts-dll-assembly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSIS Excel Loop Into SQL</title>
		<link>http://amynxdx.net/work/ssis-excel-loop-into-sql/</link>
		<comments>http://amynxdx.net/work/ssis-excel-loop-into-sql/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 20:07:19 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server Integration Services]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=134</guid>
		<description><![CDATA[If you don&#8217;t know how to import an Excel file into a SQL database, check out my tutorial here: SSIS: Import Excel File Into SQL Database I have a folder with multiple Excel files (.xls) that I need SSIS (SQL Server Integration Services) to loop through and insert into a SQL table. Here are my [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t know how to import an Excel file into a SQL database, check out my tutorial here: <a href="http://amynxdx.net/work/ssis-import-excel-file-into-sql-database/" target="_new">SSIS: Import Excel File Into SQL Database</a></p>
<p>I have a folder with multiple <strong>Excel </strong>files (.xls) that I need <strong>SSIS </strong>(SQL Server Integration Services) to loop through and insert into a <strong>SQL </strong>table.</p>
<p>Here are my files:<br />
<a href="http://amynxdx.net/wp-content/uploads/2012/02/1-folder.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/1-folder-300x163.jpg" alt="" title="1-folder" width="300" height="163" class="aligncenter size-medium wp-image-159" /></a></p>
<p>Each file is setup like this:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/2-excel-files.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/2-excel-files-300x166.jpg" alt="" title="2-excel-files" width="300" height="166" class="aligncenter size-medium wp-image-160" /></a></p>
<p>Note: It doesn&#8217;t matter what your file names are, as long as they are <strong>.xls</strong> extension. Make sure all the headers (row 1) are identical through out each file.</p>
<p>I&#8217;m using <strong>Microsoft Visual Studio 2008</strong></p>
<p><strong>1.</strong> Use the <strong>SQL Server Import and Export Wizard</strong> to import excel into sql. (pick any one of the .xls files in the folder you want.)</p>
<p><strong>2.</strong> Drag a <strong>Foreach Loop Container</strong> to the workspace.</p>
<p><strong>3.</strong> Drag the <strong>Data Flow Task 1</strong> we just created into the <strong>Foreach Loop Container</strong>.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step3.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step3-300x221.jpg" alt="" title="01-step3" width="300" height="221" class="aligncenter size-medium wp-image-182" /></a></p>
<p><strong>4.</strong> Right-click on the <strong>Foreach Loop Container</strong> and select <strong>Edit </strong>.</p>
<p><strong>5.</strong> This brings up the <strong>Foreach Loop Editor</strong></p>
<p><strong>6.</strong> Go to the <strong>Collection </strong>tab:<br />
&nbsp;&nbsp; <strong>a.</strong><strong>Enumerator:</strong> Click on <strong>Foreach File Enumerator</strong><br />
&nbsp;&nbsp; <strong>b.</strong><strong>Folder:</strong> where the files are contained<br />
&nbsp;&nbsp; <strong>c.</strong><strong>Files:</strong> *.xls<br />
&nbsp;&nbsp; <strong>d.</strong><strong>Retrieve file name:</strong> Fully qualified</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step5a.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step5a-300x254.jpg" alt="" title="01-step5a" width="300" height="254" class="aligncenter size-medium wp-image-183" /></a></p>
<p><strong>7.</strong> Select the <strong>Variable Mappings</strong> tab:<br />
&nbsp;&nbsp; <strong>a.</strong>Click under <strong>Variable</strong>, on drop down choose <strong>New Variable</strong>. Leave everything but change name to: <strong>FileWeJustFound</strong>. (Note Package2 is what my package name is)</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step7a.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step7a-300x238.jpg" alt="" title="01-step7a" width="300" height="238" class="aligncenter size-medium wp-image-184" /></a><br />
&nbsp;&nbsp; <strong>b.</strong>Click <strong>OK</strong>.<br />
&nbsp;&nbsp; <strong>c.</strong>Index should be set to 0 (default)</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step7c.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step7c-300x254.jpg" alt="" title="01-step7c" width="300" height="254" class="aligncenter size-medium wp-image-185" /></a></p>
<p>&nbsp;&nbsp; <strong>b.</strong>Click <strong>OK</strong>. </p>
<p>REST OF UPDATE COMING SOON: </p>
<p><strong>8.</strong>Right-click the <strong>Foreach Loop Container</strong> and select <strong>properies</strong><br />
&nbsp;&nbsp; <strong>a.</strong> Find <strong>DelayValidation</strong> and set to <strong>True</strong></p>
<p><strong>9.</strong> Right-click on the <strong>SourceConnectionFile</strong> which is located inside of <strong>Connection Managers</strong><br />
&nbsp;&nbsp; <strong>a.</strong> Locate <strong>Expressions</strong> and click the ellipsis (&#8230;) next to it.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step9a.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step9a-223x300.jpg" alt="" title="01-step9a" width="223" height="300" class="aligncenter size-medium wp-image-186" /></a></p>
<p>&nbsp;&nbsp; <strong>b.</strong> Property: <strong>Connection String</strong><br />
&nbsp;&nbsp; <strong>c.</strong> Expression: &#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#8221; + @[User::FileWeJustFound] + &#8220;;Extended Properties=\&#8221;Excel 8.0;HDR=Yes\&#8221;" You can also click the ellipsis (&#8230;) next to it to open up the <strong>Expression Builder</strong>: <small>(if copying &#038; pasting from here, replace the &#8221; with real ones)</small></p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step9c.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step9c-300x267.jpg" alt="" title="01-step9c" width="300" height="267" class="aligncenter size-medium wp-image-187" /></a></p>
<p>&nbsp;&nbsp; <strong>d.</strong> Click <strong>OK</strong>.</p>
<p><strong>10.</strong> Now you should be able to run the package:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step10run.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step10run.jpg" alt="" title="01-step10run" width="179" height="126" class="aligncenter size-full wp-image-188" /></a></p>
<p><strong>11.</strong> The package will loop through all your <strong>.xls</strong> files and import them into <strong>SQL</strong>. You should get a screen that looks like the one below. If your package is red instead of green, be sure to check the <strong>Output</strong> to see what errors may have happened.</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step11.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step11-300x201.jpg" alt="" title="01-step11" width="300" height="201" class="aligncenter size-medium wp-image-189" /></a></p>
<p><strong>12.</strong> Now open up <strong>Microsoft SQL Server Management Studio</strong>, Select your database and then select all files in your table. The excel file data you just imported should show up:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2012/02/01-step12results.jpg"><img src="http://amynxdx.net/wp-content/uploads/2012/02/01-step12results-300x189.jpg" alt="" title="01-step12results" width="300" height="189" class="aligncenter size-medium wp-image-190" /></a></p>
<p>I learned from: <a href="http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx" title="http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx" target="_blank">http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx</a></p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fwork%2Fssis-excel-loop-into-sql%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/work/ssis-excel-loop-into-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL &#8211; Shorten Date Remove Time</title>
		<link>http://amynxdx.net/work/sql-shorten-date/</link>
		<comments>http://amynxdx.net/work/sql-shorten-date/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 16:46:08 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[DateTime]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=131</guid>
		<description><![CDATA[CONVERT(VARCHAR(10), [myDateColumnName], 101) AS [myDateColumnName] Make datetime shorter, show only date not time before: 2012-01-31 00:00:00.000 after: 01/31/2012]]></description>
			<content:encoded><![CDATA[<p>CONVERT(VARCHAR(10), [myDateColumnName], 101) AS [myDateColumnName] </p>
<p>Make datetime shorter, show only date not time</p>
<p><strong>before:</strong><br />
2012-01-31 00:00:00.000</p>
<p><strong>after:</strong><br />
01/31/2012</p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fwork%2Fsql-shorten-date%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/work/sql-shorten-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ellie Goulding &#8211; Starry Eyed</title>
		<link>http://amynxdx.net/music/ellie-goulding-starry-eyed/</link>
		<comments>http://amynxdx.net/music/ellie-goulding-starry-eyed/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 14:48:27 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Ellie Goulding]]></category>
		<category><![CDATA[Lights]]></category>
		<category><![CDATA[Starry Eyed]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=66</guid>
		<description><![CDATA[So Steve @ work introduced me to Ellie Goulding. I gotta say, she&#8217;s pretty awesome! This song will get stuck in your head &#8211; BEWARE!! Her whole album, Lights, is really good! I highly recommend it &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>So Steve @ work introduced me to <strong>Ellie Goulding</strong>. I gotta say, she&#8217;s pretty awesome! This song will get stuck in your head &#8211; BEWARE!! Her whole album, <em>Lights</em>, is really good! I highly recommend it <img src='http://amynxdx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><iframe src="http://www.youtube.com/embed/fBf2v4mLM8k" frameborder="0" width="560" height="349"></iframe></p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fmusic%2Fellie-goulding-starry-eyed%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/music/ellie-goulding-starry-eyed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>July 2011 Birchbox</title>
		<link>http://amynxdx.net/birchbox/july-2011-birchbox/</link>
		<comments>http://amynxdx.net/birchbox/july-2011-birchbox/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 02:55:23 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Birchbox]]></category>
		<category><![CDATA[AHAVA]]></category>
		<category><![CDATA[KIND]]></category>
		<category><![CDATA[philosophy]]></category>
		<category><![CDATA[Redken]]></category>
		<category><![CDATA[Zoya]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=60</guid>
		<description><![CDATA[I got my very first Birchbox today! I was really excited to open it up and see what was inside. I have to say, first off, their packaging was really pretty and wrapped up like a present! Love it! Birchbox teamed up with Cynthia Rowley, an American fashion designer, for this box. So far I [...]]]></description>
			<content:encoded><![CDATA[<p>I got my very first <a href="http://www.birchbox.com">Birchbox</a> today! I was really excited to open it up and see what was inside. I have to say, first off, their packaging was really pretty and wrapped up like a present! Love it! <a href="http://www.birchbox.com">Birchbox</a> teamed up with <a href="http://www.cynthiarowley.com/">Cynthia Rowley</a>, an American fashion designer, for this box. So far I haven&#8217;t tried anything but the nail polish. I like the nude, pinkish color of it, very different from what I usually get. Here are the pictures &amp; description:</p>
<p><a href="http://amynxdx.net/wp-content/uploads/2011/07/DSC06295.jpg"><img title="BirchboxBox" src="http://amynxdx.net/wp-content/uploads/2011/07/DSC06295-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://amynxdx.net/wp-content/uploads/2011/07/DSC06300.jpg"><img title="Birchbox1" src="http://amynxdx.net/wp-content/uploads/2011/07/DSC06300-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p><a href="http://amynxdx.net/wp-content/uploads/2011/07/DSC06301.jpg"><img title="birchboxstuff" src="http://amynxdx.net/wp-content/uploads/2011/07/DSC06301-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><strong>1. AHAVA &#8211; Mineral Hand Cream</strong> (3.4oz $20)<br />
Loaded with Dead Sea minerals, this fast-absorbing cream heals dry hands without a smidge of residue.</p>
<p><strong>2. philosophy® &#8211; purity made simple one-step facial cleanser™</strong> (8oz $20/ 16oz $32)<br />
This perennial award-winner is pH-balanced to gently clear away dirt, oil, and makeup without drying out skin.</p>
<p><strong>3. Redken &#8211; shine flash™ 02</strong> (4.4oz $17)<br />
A must for all Cynthia&#8217;s runway shows, this weightless spray gives hair a brilliant finish.</p>
<p><strong>4. Zoya &#8211; Touch Collection Nail Polish in Shay</strong> (0.5 flz oz $8)<br />
Neutral gets a sexy makeover in this creamy, slightly metallic nude. The perfect accessory to summer&#8217;s bright fashions.</p>
<p><strong>EXTRA KIND &#8211; Almond &amp; Apricot</strong><br />
Snack right with this wholesome bar &#8211; no preservatives or hard-to-pronounce ingredients.</p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fbirchbox%2Fjuly-2011-birchbox%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/birchbox/july-2011-birchbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frank&#8217;s Red Hot Chicken Dip Recipe</title>
		<link>http://amynxdx.net/recipes/franks-red-hot-chicken-dip-recipe/</link>
		<comments>http://amynxdx.net/recipes/franks-red-hot-chicken-dip-recipe/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 22:16:43 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Recipes]]></category>
		<category><![CDATA[Appetizer]]></category>
		<category><![CDATA[Blue Cheese]]></category>
		<category><![CDATA[Chicken]]></category>
		<category><![CDATA[Crackers]]></category>
		<category><![CDATA[Dip]]></category>
		<category><![CDATA[Franks Red Hot]]></category>
		<category><![CDATA[Hot Sauce]]></category>
		<category><![CDATA[Party Food]]></category>
		<category><![CDATA[Pot Luck]]></category>
		<category><![CDATA[Spicy]]></category>
		<category><![CDATA[Tortilla Chips]]></category>
		<category><![CDATA[Vegetables]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=57</guid>
		<description><![CDATA[I found this recipe in the sunday newspaper. Every time I make it, it&#8217;s a huge hit and people request the recipe 5/5 stars Ingredients: 1 pkg (8 oz.) cream cheese, softened 1/2 cup any flavor Frank&#8217;s RedHot sauce 1/2 cup blue cheese salad dressing 1/2 cup crumbled blue cheese 2 cans (12.5 oz each) [...]]]></description>
			<content:encoded><![CDATA[<p>I found this recipe in the sunday newspaper. Every time I make it, it&#8217;s a huge hit and people request the recipe <img src='http://amynxdx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>5/5 stars</strong></p>
<p><a href="http://amynxdx.net/wp-content/uploads/2011/07/redhotbuffalochickendip.jpg"><img title="redhotbuffalochickendip" src="http://amynxdx.net/wp-content/uploads/2011/07/redhotbuffalochickendip-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p><strong>Ingredients:</strong><br />
1 pkg (8 oz.) cream cheese, softened<br />
1/2 cup any flavor Frank&#8217;s RedHot sauce<br />
1/2 cup blue cheese salad dressing<br />
1/2 cup crumbled blue cheese<br />
2 cans (12.5 oz each) Swanson Premium Chunk Chicken Breast, drained<br />
Assorted fresh vegetables and/or crackers, and/or tortilla chips for dipping.</p>
<p><strong>Directions:</strong><br />
1. Stir cream cheese in 9&#8243; deep dish pie plate with fork until smooth. Stir in dressing, hot sauce and blue cheese. Stir in chicken.</p>
<p>2. Bake at 350°F for 20 minutes until hot and bubbling. Stir. Serve with veggies, crackers and/or tortilla chips</p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Frecipes%2Ffranks-red-hot-chicken-dip-recipe%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/recipes/franks-red-hot-chicken-dip-recipe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Rounded Corners</title>
		<link>http://amynxdx.net/web-design/css-rounded-corners/</link>
		<comments>http://amynxdx.net/web-design/css-rounded-corners/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 20:13:02 +0000</pubDate>
		<dc:creator>Amy</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Generator]]></category>
		<category><![CDATA[Rounded Corners]]></category>

		<guid isPermaLink="false">http://amynxdx.net/?p=56</guid>
		<description><![CDATA[Check out this awesome website of CSS code for rounded corners: CSS Border Radius Generator It seems to work great in Chrome &#038; Firefox&#8230; not so much IE, but then again are you surprised?]]></description>
			<content:encoded><![CDATA[<p>Check out this awesome website of CSS code for rounded corners: <a href="http://border-radius.com/" title="CSS Border Radius Generator">CSS Border Radius Generator</a></p>
<p>It seems to work great in Chrome &#038; Firefox&#8230; not so much IE, but then again are you surprised?</p>
<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Famynxdx.net%2Fweb-design%2Fcss-rounded-corners%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:450px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://amynxdx.net/web-design/css-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

