<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1378979608157429060</id><updated>2012-02-24T12:58:00.607-05:00</updated><category term='VS 2008'/><category term='Self-Advancement'/><category term='Sybase'/><category term='Windows'/><category term='T-SQL'/><category term='Other'/><category term='SSIS'/><category term='SQL 2012'/><category term='SSAS'/><category term='SSMS'/><category term='SSRS'/><title type='text'>Another SQL Blog - Jason Yousef</title><subtitle type='html'>Sharing my daily SQL and BI thoughts.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>88</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1875266829042580797</id><published>2012-02-23T12:15:00.000-05:00</published><updated>2012-02-23T18:18:30.630-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SSIS iterate to update a blob column</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A recent question in EE about how to update a blob column using SSIS, so I decided to create a blog on it as it's a lot of steps and I'll need to send hi a lot of screen shots.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You have file names such as 04-191-388086.jpg &amp;amp; 04-191-388087.jpg and the 388086 &amp;amp; 388087 corresponds to the ID column on that table and you need to update these 2 IDs.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Preparations:&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;  &lt;/span&gt;&lt;strong&gt;&lt;span style="background-color: #fff2cc; font-family: Arial, Helvetica, sans-serif;"&gt;CREATE TABLE [Files](&lt;br /&gt;&amp;nbsp;[ID] [int] NOT NULL,&lt;br /&gt;&amp;nbsp;[FilePath] [varbinary](max) NULL)&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Insert test records with no&amp;nbsp;filePath...&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;br /&gt;&lt;span style="background-color: #fff2cc; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;strong&gt;INSERT INTO [Files](ID) VALUES (388086), (388087)&lt;/strong&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-l6TuaBkQIDY/T0ZywSC8BfI/AAAAAAAAAS8/_VFW-KtaRhQ/s1600/table.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="137" src="http://1.bp.blogspot.com/-l6TuaBkQIDY/T0ZywSC8BfI/AAAAAAAAAS8/_VFW-KtaRhQ/s320/table.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;So I thought about using 3 variables:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1-String to hold the file name and path.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;2-Int to hold the ID, An Expression of the FileNameLocation variable.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;3-String to hold the update statement, and EXPRESSION&amp;nbsp;using the ID and the FileNameLocation variable&amp;nbsp;(Optional you could use a direct&amp;nbsp;T-SQL in the execute SQL Task) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-zhdW_FjsB8w/T0Zztue-YCI/AAAAAAAAATU/aq7R_tQKL9U/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="65" src="http://4.bp.blogspot.com/-zhdW_FjsB8w/T0Zztue-YCI/AAAAAAAAATU/aq7R_tQKL9U/s400/1.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I've added a value to the FileNameLocation or SSIS will yell and gives you errors.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;And constructed my package as follow:&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1-Foreach Loop Container to iterate over the files.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;2-Execute SQL Task to run the update statement.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-07T0o7U_LgM/T0ZttTw8NRI/AAAAAAAAASU/YS78Z8FoN34/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="140" src="http://1.bp.blogspot.com/-07T0o7U_LgM/T0ZttTw8NRI/AAAAAAAAASU/YS78Z8FoN34/s400/2.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The steps:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1-will configure the Foreach Loop Container to iterate over the folder and get me the file names into the STRING variable "FileNameLocation".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-mt7jlCK9GJk/T0Zu009NUhI/AAAAAAAAASk/kRfi_H1YOQ8/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="338" src="http://4.bp.blogspot.com/-mt7jlCK9GJk/T0Zu009NUhI/AAAAAAAAASk/kRfi_H1YOQ8/s400/4.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-uo1lPAxdT2c/T0ZuzdLIPyI/AAAAAAAAASc/LwAguMvKRCk/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="338" src="http://1.bp.blogspot.com/-uo1lPAxdT2c/T0ZuzdLIPyI/AAAAAAAAASc/LwAguMvKRCk/s400/3.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;2-Configure the Execute SQL Task to use my database connection, and the Query variable to update the table.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-zt1nWJmWx3k/T0ZvM8L6CkI/AAAAAAAAAS0/gJhVJLrzJDQ/s1600/5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="338" src="http://3.bp.blogspot.com/-zt1nWJmWx3k/T0ZvM8L6CkI/AAAAAAAAAS0/gJhVJLrzJDQ/s400/5.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;3- &lt;a href="http://asqlb.blogspot.com/2012/01/ssis-expressions-in-variablesdynamic.html" target="_blank"&gt;Add that expression&lt;/a&gt;* on the ID variable, to shred the ID out of the file name.&lt;/span&gt;&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-color: #fff2cc; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Reverse(Substring(Reverse(right(@[User::StrFileNameLocation],&amp;nbsp; FINDSTRING( REVERSE( @[User::StrFileNameLocation] ), "-",1) -1 ) ) ,5,20))&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;4-&lt;a href="http://asqlb.blogspot.com/2012/01/ssis-expressions-in-variablesdynamic.html" target="_blank"&gt;Add that expression&lt;/a&gt;* on the StrUpdate variable, which will be used as our query.&lt;/span&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;&lt;span style="background-color: #fff2cc; color: black;"&gt;"Update Files set FilePath =( SELECT * FROM OPENROWSET (BULK '"+ @[User::StrFileNameLocation] +"',&amp;nbsp; SINGLE_BLOB) FilePath) where ID =" + @[User::IntID]&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="background-color: #d0e0e3; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;To add expressions to the variables, check that post &lt;/span&gt;&lt;a href="http://asqlb.blogspot.com/2012/01/ssis-expressions-in-variablesdynamic.html"&gt;&lt;span style="background-color: #d0e0e3; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;http://asqlb.blogspot.com/2012/01/ssis-expressions-in-variablesdynamic.html&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;5-Run the package and check your table...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-EtyKLtrkIqs/T0ZzrFPlCXI/AAAAAAAAATE/TXHUmjjXvRg/s1600/AfterTable.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="151" src="http://4.bp.blogspot.com/-EtyKLtrkIqs/T0ZzrFPlCXI/AAAAAAAAATE/TXHUmjjXvRg/s400/AfterTable.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ZOBSyYYl0hY/T0ZzsAyQkXI/AAAAAAAAATM/e8edgLZzIoA/s1600/afterPackage.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="112" src="http://1.bp.blogspot.com/-ZOBSyYYl0hY/T0ZzsAyQkXI/AAAAAAAAATM/e8edgLZzIoA/s400/afterPackage.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;﻿&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1875266829042580797?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1875266829042580797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/ssis-iterate-to-update-blob-column.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1875266829042580797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1875266829042580797'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/ssis-iterate-to-update-blob-column.html' title='SSIS iterate to update a blob column'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-l6TuaBkQIDY/T0ZywSC8BfI/AAAAAAAAAS8/_VFW-KtaRhQ/s72-c/table.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-7515853175940894491</id><published>2012-02-22T19:38:00.000-05:00</published><updated>2012-02-22T19:38:00.095-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2012'/><title type='text'>You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;While installing SQL server 2012 RC0 on a Windows server 2008 R2 machine You might get an error telling you to install .Net 3.5 SP1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-z5dxOSMM-Lo/TzMU0r8D4KI/AAAAAAAAAPs/7eY3NzDGmt0/s1600/0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="239" src="http://4.bp.blogspot.com/-z5dxOSMM-Lo/TzMU0r8D4KI/AAAAAAAAAPs/7eY3NzDGmt0/s320/0.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Although I see it installed and did all the windows updates and .NET 4.0 is even installed.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;So when you go to the download site and try to install it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/download/en/confirmation.aspx?id=22"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.microsoft.com/download/en/confirmation.aspx?id=22&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You get another error....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-QIx36OBrrZg/TzMU1Y6I-vI/AAAAAAAAAP0/49lmSDBxmno/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="116" src="http://4.bp.blogspot.com/-QIx36OBrrZg/TzMU1Y6I-vI/AAAAAAAAAP0/49lmSDBxmno/s320/1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;It seems that Windows server 2008 R2 comes pre-installed but not configured or enabled.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You just need to go to Sever Manager ---&amp;gt; Features---&amp;gt;Add a feature .&amp;nbsp; and enable it...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-rCcqtoW6Wnc/TzMU2lMBVQI/AAAAAAAAAP8/Wa2zLRoeE4k/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-rCcqtoW6Wnc/TzMU2lMBVQI/AAAAAAAAAP8/Wa2zLRoeE4k/s320/2.jpg" width="283" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eg1KBcZEWXo/TzMU3Z5dF2I/AAAAAAAAAQE/DfTodJDN9Mw/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="232" src="http://3.bp.blogspot.com/-eg1KBcZEWXo/TzMU3Z5dF2I/AAAAAAAAAQE/DfTodJDN9Mw/s320/3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Y_Y8ziGM1XM/TzMU4Blb5tI/AAAAAAAAAQM/nfvH-qRllHk/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="143" src="http://1.bp.blogspot.com/-Y_Y8ziGM1XM/TzMU4Blb5tI/AAAAAAAAAQM/nfvH-qRllHk/s320/4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Or&amp;nbsp;run that command... &lt;strong&gt;%windir%\system32\ocsetup.exe NetFx3&lt;/strong&gt;&amp;nbsp; to configure it too.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial;"&gt;Hope that helps someone...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-7515853175940894491?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/7515853175940894491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/you-must-use-role-management-tool-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7515853175940894491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7515853175940894491'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/you-must-use-role-management-tool-to.html' title='You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-z5dxOSMM-Lo/TzMU0r8D4KI/AAAAAAAAAPs/7eY3NzDGmt0/s72-c/0.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-4073226892104571961</id><published>2012-02-13T21:52:00.002-05:00</published><updated>2012-02-13T21:53:08.773-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SSIS send e-mail from a SQL table</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hi, This is simple but people ask about it all the time...instead of keep writing the steps, I finally decided to blog about it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;you have a table that holds some names along with their e-mail addresses.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You'll need 2 variables, one of type OBJECT, one of type STRING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1-Add a "Execute SQL Task"&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Add the connection&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Add your query that brings the e-mail addresses&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Get back the FULL RESULT SET&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-HiBqwJMwLmk/TznKFcgULfI/AAAAAAAAAQc/7QSEWP-k6Zw/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="295" src="http://3.bp.blogspot.com/-HiBqwJMwLmk/TznKFcgULfI/AAAAAAAAAQc/7QSEWP-k6Zw/s400/1.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;In the result set, use your OBJECT type variable, to hold the result set&lt;/span&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Eh6UtgwKj4I/TznKGYv4FUI/AAAAAAAAAQk/0SATwJfmBzg/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="338" src="http://2.bp.blogspot.com/-Eh6UtgwKj4I/TznKGYv4FUI/AAAAAAAAAQk/0SATwJfmBzg/s400/2.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;2- Add Foreach Loop Container&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Use Foreach ADO &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Select your OBJECT variable&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Rows in the first table&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-i8p2bjQn04A/TznKH3CnqOI/AAAAAAAAAQo/njGBhFjZ6Bs/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="338" src="http://1.bp.blogspot.com/-i8p2bjQn04A/TznKH3CnqOI/AAAAAAAAAQo/njGBhFjZ6Bs/s400/3.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In the variables mapping, map your STRING variable.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Now the container will iterate over the OBJECT variable and shred the contents into the STRING variable.﻿&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-rSbqcpTi4IY/TznKI73pytI/AAAAAAAAAQ0/hkBonl5DaQ8/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="338" src="http://3.bp.blogspot.com/-rSbqcpTi4IY/TznKI73pytI/AAAAAAAAAQ0/hkBonl5DaQ8/s400/4.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Now add your SEND MAIL TASK, configure it, then on the expressions, select To LINE and click on the ellipsis, add your STRING variable...&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Now it'll iterate over the rows and send a mail one by one to the TO LINE from the string variable.﻿&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-RdBrJgmr93U/TznKJdXk6-I/AAAAAAAAAQ8/wxLzsYXnqdo/s1600/5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="231" src="http://4.bp.blogspot.com/-RdBrJgmr93U/TznKJdXk6-I/AAAAAAAAAQ8/wxLzsYXnqdo/s400/5.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope that helps someone..&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-4073226892104571961?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/4073226892104571961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/ssis-send-e-mail-from-sql-table.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4073226892104571961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4073226892104571961'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/ssis-send-e-mail-from-sql-table.html' title='SSIS send e-mail from a SQL table'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-HiBqwJMwLmk/TznKFcgULfI/AAAAAAAAAQc/7QSEWP-k6Zw/s72-c/1.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1353727061986879125</id><published>2012-02-12T12:16:00.000-05:00</published><updated>2012-02-12T12:16:00.056-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Get a folder's file list to SQL table using VB.net</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A Recent challenge about how to get the folder's list of files int oa SQL table for file comparision.&lt;br /&gt;&lt;br /&gt;I create a table called "FileList" under my test database called "Admin"&lt;br /&gt;&lt;br /&gt;Use&amp;nbsp;[Admin]&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;CREATE TABLE [dbo].[FileList](&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ListID] [int] IDENTITY(1,1) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DateTime] [datetime] NOT NULL ,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Folder] [varchar](100) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FileName] [varchar](100) NOT NULL)&lt;br /&gt;&lt;br /&gt;I'll use the below script in a script task in SSIS.&lt;br /&gt;&lt;br /&gt;Make sure to&amp;nbsp;change the scripting language to Visual Basic 2008&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;br /&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports System.IO&lt;br /&gt;Imports System.Data.SqlClient&lt;br /&gt;&amp;lt;System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")&amp;gt; _&lt;br /&gt;&amp;lt;System.CLSCompliantAttribute(False)&amp;gt; _&lt;br /&gt;Partial Public Class ScriptMain&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Enum ScriptResults&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Enum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub Main()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SQLStr As String&amp;nbsp;&amp;nbsp;&amp;nbsp; 'SQL string to hold the root query&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ConnString As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'SQL server connection to "Localhost" and my Database called "Admin"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnString = "Data Source=localhost;Initial Catalog=Admin;Integrated Security=SSPI;"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SQLConn As New SqlConnection()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SQLCmd As New SqlCommand()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLConn.ConnectionString = ConnString&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLConn.Open() 'open connection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.Connection = SQLConn&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'write root file list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim di As New IO.DirectoryInfo("c:\")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fi As IO.FileInfo() = di.GetFiles()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim f As IO.FileInfo&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'list the names of all files in the specified directory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each f In fi&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLStr = "INSERT into FileList(DateTime,Folder,FileName) VALUES ('" + Now() + "','" + di.ToString + "','" + f.ToString.Trim + "')"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.CommandText = SQLStr&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.ExecuteNonQuery()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLConn.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = ScriptResults.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The results...&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ZYshx_pbVPw/Tyl0W8QUhuI/AAAAAAAAAPE/ZwITcMZcYJc/s1600/DirToSql.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="218" src="http://4.bp.blogspot.com/-ZYshx_pbVPw/Tyl0W8QUhuI/AAAAAAAAAPE/ZwITcMZcYJc/s320/DirToSql.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&amp;nbsp;Hope that helps someone...&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1353727061986879125?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1353727061986879125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/get-folders-file-list-to-sql-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1353727061986879125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1353727061986879125'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/get-folders-file-list-to-sql-table.html' title='Get a folder&apos;s file list to SQL table using VB.net'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-ZYshx_pbVPw/Tyl0W8QUhuI/AAAAAAAAAPE/ZwITcMZcYJc/s72-c/DirToSql.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-7634244981464660372</id><published>2012-02-11T23:27:00.000-05:00</published><updated>2012-02-12T15:13:06.730-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL'/><title type='text'>Prevent a certain text string from being entered in a SQL Server database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A weired requirement about how to prevent a string value at the database level...at &lt;/span&gt;&lt;a href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SQL_Server_2008/Q_27580630.html?cid=2035" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;EE&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; I advised to use a cursor to iterate over the tables, grab all the string data types and add a check constraint to that column.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Aiz0WH36YVg/Tzc_QtuW-EI/AAAAAAAAAQU/YYIVqL2v7Nk/s1600/string.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="211" src="http://2.bp.blogspot.com/-Aiz0WH36YVg/Tzc_QtuW-EI/AAAAAAAAAQU/YYIVqL2v7Nk/s400/string.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;&lt;em&gt;&lt;u&gt;Test:&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;pre class="code "&gt;&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;code id="questionCommentsViewCode20-37578030-8249387"&gt;  CREATE TABLE help&lt;br /&gt; (id INT IDENTITY(1,1),&lt;br /&gt; Fname VARCHAR(100) )&lt;br /&gt;&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&lt;pre class="code "&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;code id="questionCommentsViewCode20-37578030-8249387"&gt;&lt;span style="background-color: white;"&gt; &lt;br /&gt; ALTER TABLE help&lt;br /&gt; ADD CONSTRAINT ckname CHECK (Fname not LIKE '%sauerkraut%' )&lt;br /&gt;  &lt;br /&gt;  INSERT  help SELECT  ('sau')&lt;br /&gt;  INSERT  help SELECT  ('I love sauerkraut very much')&lt;br /&gt;  INSERT  help SELECT  ('sauerkrautttttt')&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;                                            &lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;&lt;em&gt;&lt;u&gt;Cursor Script:&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;pre class="code "&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;code id="questionCommentsViewCode20-37578117-8249388"&gt;DECLARE @Stmt         NVARCHAR(4000),&lt;br /&gt;        @DBName       SYSNAME&lt;br /&gt;&lt;br /&gt;SET @DBName = DB_NAME()&lt;br /&gt;&lt;br /&gt;DECLARE @CName    VARCHAR(255),&lt;br /&gt;        @TName    SYSNAME,&lt;br /&gt;        @OName    SYSNAME,&lt;br /&gt;        @Sql      VARCHAR(8000)&lt;br /&gt;       &lt;br /&gt;DECLARE curcolumns CURSOR READ_ONLY FORWARD_ONLY LOCAL FOR&lt;br /&gt;&lt;br /&gt;SELECT C.Name AS Colname&lt;br /&gt;  , T.Name AS DType&lt;br /&gt;  , QUOTENAME(U.Name) + '.' + QUOTENAME(O.Name) AS Tbl&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FROM&lt;br /&gt; syscolumns C&lt;br /&gt; INNER JOIN systypes T&lt;br /&gt;  ON C.xtype = T.xtype&lt;br /&gt; INNER JOIN sysobjects O&lt;br /&gt;  ON C.ID = O.ID&lt;br /&gt; INNER JOIN sysusers u&lt;br /&gt;  ON O.uid = u.uid&lt;br /&gt;&lt;br /&gt;WHERE&lt;br /&gt; T.Name IN ('varchar', 'char', 'text', 'nchar', 'nvarchar', 'ntext')&lt;br /&gt; AND O.xtype IN ('U')&lt;br /&gt; AND objectProperty(O.ID, 'ismsshipped') = 0&lt;br /&gt;&lt;br /&gt;ORDER BY&lt;br /&gt; 3&lt;br /&gt;  , 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OPEN curcolumns&lt;br /&gt;&lt;br /&gt;SET XACT_ABORT ON&lt;br /&gt;&lt;br /&gt;BEGIN TRAN&lt;br /&gt;&lt;br /&gt;FETCH curcolumns INTO @CName, @TName, @OName&lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt; SET @Sql = 'ALTER TABLE ' + @OName + &lt;br /&gt; ' ADD CONSTRAINT chk_' + @CName +' Check ( '+  @CName +' Not like ''%sauerkraut%'' )'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; --EXEC (@Sql) -- change this to print if you need only the script, not the action&lt;br /&gt;PRINT @Sql&lt;br /&gt;&lt;br /&gt; FETCH curcolumns INTO @CName, @TName, @OName&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;CLOSE curcolumns&lt;br /&gt;&lt;br /&gt;DEALLOCATE curcolumns&lt;br /&gt;&lt;br /&gt;COMMIT TRAN&lt;/code&gt;&lt;br /&gt;                                            &lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-7634244981464660372?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/7634244981464660372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/prevent-certain-text-string-from-being.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7634244981464660372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7634244981464660372'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/prevent-certain-text-string-from-being.html' title='Prevent a certain text string from being entered in a SQL Server database'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Aiz0WH36YVg/Tzc_QtuW-EI/AAAAAAAAAQU/YYIVqL2v7Nk/s72-c/string.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2889193444601565993</id><published>2012-02-08T12:15:00.000-05:00</published><updated>2012-02-08T12:15:31.199-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2012'/><title type='text'>There was a failure to validate setting CTLRUSERS in validaton function ValidateUsers.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You might get that error while installing SQL server 2012, it's when you select a non domain user while in the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff878183%28v=sql.110%29.aspx" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Distributed Replay Controller&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; step.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You need to choose a domain user or no user at all...Hopefully they improve that error MSG to a meaning error in future releases :)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;TITLE: SQL Server Setup failure.&lt;br /&gt;------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;SQL Server Setup has encountered the following error:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;There was a failure to validate setting CTLRUSERS in validaton function ValidateUsers.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Error code 0x85640004.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;For help, click: &lt;/span&gt;&lt;a href="http://go.microsoft.com/fwlink?LinkID=20476&amp;amp;ProdName=Microsoft%20SQL%20Server&amp;amp;EvtSrc=setup.rll&amp;amp;EvtID=50000&amp;amp;EvtType=0xFB87BFDA%25400x601E39D7"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://go.microsoft.com/fwlink?LinkID=20476&amp;amp;ProdName=Microsoft%20SQL%20Server&amp;amp;EvtSrc=setup.rll&amp;amp;EvtID=50000&amp;amp;EvtType=0xFB87BFDA%25400x601E39D7&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;------------------------------&lt;br /&gt;BUTTONS:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;OK&lt;br /&gt;------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2889193444601565993?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2889193444601565993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/there-was-failure-to-validate-setting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2889193444601565993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2889193444601565993'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/there-was-failure-to-validate-setting.html' title='There was a failure to validate setting CTLRUSERS in validaton function ValidateUsers.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-8140032799918963901</id><published>2012-02-07T12:11:00.000-05:00</published><updated>2012-02-07T12:11:00.511-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL'/><title type='text'>T-Sql Combine date and 6 digits time</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A recent challenge about how to combine 2 columns; The date column has 2011-08-24 00:00:00.000 and the Time column has 120622&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;DECLARE @D datetime, @T INT&lt;br /&gt;select @D ='2011-08-24 00:00:00.000 ', @t = 120622&lt;br /&gt; &lt;br /&gt;SELECT @D + CAST(DATEADD(SECOND, @T %100 + (60*( @T %10000 / 100)) + 3600*(@T /10000),0) AS time)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And that gives you:&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;2011-08-24 12:06:22.000&lt;/blockquote&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-8140032799918963901?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/8140032799918963901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/t-sql-combine-date-and-6-digits-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8140032799918963901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8140032799918963901'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/t-sql-combine-date-and-6-digits-time.html' title='T-Sql Combine date and 6 digits time'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-6796345202625489778</id><published>2012-02-07T08:27:00.000-05:00</published><updated>2012-02-07T08:27:05.534-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL'/><title type='text'>SQL Agent Account Through T-SQL</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I had recently a weired requirement to get the SQL server AGENT Account from multiple servers, so I'm sharing how to get it through T-SQL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;DECLARE @SrvAccount varchar(100)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;set @SrvAccount =''&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;EXECUTE master.dbo.xp_instance_regread&lt;br /&gt;N'HKEY_LOCAL_MACHINE',&lt;br /&gt;N'SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT',&lt;br /&gt;N'ObjectName',&lt;br /&gt;@SrvAccount OUTPUT,&lt;br /&gt;N'no_output'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;SELECT @SrvAccount as SQLAgent_ServiceAccount&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;And the location the registry would be at ...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-UVyhhd5D5-M/TzEmdteIdnI/AAAAAAAAAPk/tOXyd4ILQMc/s1600/sqlAgent.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="323" src="http://4.bp.blogspot.com/-UVyhhd5D5-M/TzEmdteIdnI/AAAAAAAAAPk/tOXyd4ILQMc/s400/sqlAgent.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;﻿&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-6796345202625489778?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/6796345202625489778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/sql-agent-account-through-t-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6796345202625489778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6796345202625489778'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/sql-agent-account-through-t-sql.html' title='SQL Agent Account Through T-SQL'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-UVyhhd5D5-M/TzEmdteIdnI/AAAAAAAAAPk/tOXyd4ILQMc/s72-c/sqlAgent.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-5659236650198543582</id><published>2012-02-04T09:44:00.000-05:00</published><updated>2012-02-04T09:45:21.204-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>Don't send that empty SSRS report.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Some of us has a daily or weekly process that puts some data in the tables and has some reports that report on top of these data, part of the daily process in any business it schedule report subscriptions ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Sometime you get empty reports if the data is missing or no data for that day and you need to filter and not to send these reports....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;There's are many ways to do it...but the most easiest one is to schedule your report normally, SSRS will create a new&amp;nbsp;SQL agent job with a GUID numbers and later, just edit this job, go to the steps and add your protection code.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The simplest code will check if therefore any rows or not, you can also get notified using DBMail if no data, instead of sending empty reports to your boss!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xPhcURof3yY/Tynv_lx5PgI/AAAAAAAAAPM/snJJauo4Zio/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="259" src="http://1.bp.blogspot.com/-xPhcURof3yY/Tynv_lx5PgI/AAAAAAAAAPM/snJJauo4Zio/s320/1.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;You can alter this step, or add a step before... Up to you.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-CDIASnWrCZw/TynwAao7LZI/AAAAAAAAAPU/fFm7GQpaq1s/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="481" src="http://2.bp.blogspot.com/-CDIASnWrCZw/TynwAao7LZI/AAAAAAAAAPU/fFm7GQpaq1s/s640/2.jpg" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Well I'm lazy, i'll alter this one and add a simple code to check if the table has rows or not !!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You can also use your own query based on a date and time column that you have !! to check for new data that you'll report on.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If exists (select * from tableA where Date_Column = getdate() )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; Begin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Exec ......&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; End&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Send yourself an E-mail....&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-RxsKTHAAH54/TynwBE-V1UI/AAAAAAAAAPc/Wjda-Ze0WD8/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="368" src="http://3.bp.blogspot.com/-RxsKTHAAH54/TynwBE-V1UI/AAAAAAAAAPc/Wjda-Ze0WD8/s640/3.jpg" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Just be creative...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You can also use &lt;strong&gt;sp_send_dbmail&lt;/strong&gt;&amp;nbsp; and send yourself an e-mail if it's empty.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope that helps..&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-5659236650198543582?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/5659236650198543582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/dont-send-that-empty-ssrs-report.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5659236650198543582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5659236650198543582'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/dont-send-that-empty-ssrs-report.html' title='Don&apos;t send that empty SSRS report.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-xPhcURof3yY/Tynv_lx5PgI/AAAAAAAAAPM/snJJauo4Zio/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-7797369315146531222</id><published>2012-02-01T12:03:00.002-05:00</published><updated>2012-02-01T12:08:11.039-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Get file names using Vb.net</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A recent question about how to check the value of a STRING variable in SSIS 2008 ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If you need to check for file existence on the disk...use that&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1-Imports System.IO&amp;nbsp; &lt;br /&gt;2- assuming your var holds a string of full pat ,ex:&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\file.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Public Sub Main()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim varCollection As Variables = Nothing&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForRead("User::FilePath")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.GetVariables(varCollection)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If File.Exists(varCollection("User::FilePath").Value.ToString()) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("File found.")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("File not found.")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;Dts.TaskResult = ScriptResults.Success&lt;br /&gt;&amp;nbsp;End Sub&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You could pass 0 or 1 and use the 'Precedence&amp;nbsp;constraints' to evaluate your next step.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope that helps someone.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-7797369315146531222?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/7797369315146531222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/02/get-file-names-using-vbnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7797369315146531222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7797369315146531222'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/02/get-file-names-using-vbnet.html' title='Get file names using Vb.net'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-697553507353437590</id><published>2012-01-27T11:33:00.001-05:00</published><updated>2012-01-27T11:33:45.734-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>Add SSRS 2008 named instance to the same server.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A recent questions about how to add another instance of SSRS, couldn't find any that talking about 2008, anyway I decided to help by creating some screen shots.&lt;br /&gt;&lt;br /&gt;The installation is straightforward, you just pop the CD, run the installer, select Reporting services from the "Feature Selections", then select "Named Instance", configure and you're done !&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-7pwmAThQ2XY/TyLNX9fv_KI/AAAAAAAAAMk/PHvTCryJQoA/s1600/0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="272" src="http://4.bp.blogspot.com/-7pwmAThQ2XY/TyLNX9fv_KI/AAAAAAAAAMk/PHvTCryJQoA/s640/0.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;The installation files and additional checks.&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-4gNqzTPXhck/TyLNZbyQctI/AAAAAAAAAMs/BCBRGSxtchI/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="482" src="http://4.bp.blogspot.com/-4gNqzTPXhck/TyLNZbyQctI/AAAAAAAAAMs/BCBRGSxtchI/s640/1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Perform a new installation....&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zU_uZbFud3w/TyLNaaKop7I/AAAAAAAAAM0/UvtANpAwd-s/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="478" src="http://1.bp.blogspot.com/-zU_uZbFud3w/TyLNaaKop7I/AAAAAAAAAM0/UvtANpAwd-s/s640/2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;Select only Reporting Services ...﻿&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-70WglJoaWXs/TyLNbXl9DmI/AAAAAAAAAM8/bx6IXsnAM6M/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="474" src="http://2.bp.blogspot.com/-70WglJoaWXs/TyLNbXl9DmI/AAAAAAAAAM8/bx6IXsnAM6M/s640/3.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;named instance or you'll get an error !&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Hz1zj8dPpcw/TyLNcRuueSI/AAAAAAAAANE/_SNgn2AQ4o4/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="476" src="http://2.bp.blogspot.com/-Hz1zj8dPpcw/TyLNcRuueSI/AAAAAAAAANE/_SNgn2AQ4o4/s640/4.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;Confirmation...﻿&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-VVjH6nrLP0g/TyLNdd1MO6I/AAAAAAAAANM/ESciVGuzR-g/s1600/5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="478" src="http://1.bp.blogspot.com/-VVjH6nrLP0g/TyLNdd1MO6I/AAAAAAAAANM/ESciVGuzR-g/s640/5.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;Service account configuration...can be changed later..﻿&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-gLuyMHWQKqA/TyLNdpFh8cI/AAAAAAAAANU/bDcW1qucBuI/s1600/6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="428" src="http://4.bp.blogspot.com/-gLuyMHWQKqA/TyLNdpFh8cI/AAAAAAAAANU/bDcW1qucBuI/s640/6.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;Installation...&amp;amp; Completion...﻿&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-7zW3mkLkAAE/TyLNeTQ92gI/AAAAAAAAANc/jZYr734ryss/s1600/7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="434" src="http://1.bp.blogspot.com/-7zW3mkLkAAE/TyLNeTQ92gI/AAAAAAAAANc/jZYr734ryss/s640/7.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;Reporting Services Configuration Manager.&lt;/div&gt;&lt;div align="center"&gt;All Programs---&amp;gt; Microsoft SQL server 2008---&amp;gt; Configuration Tools&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-xn9m9tzN-sM/TyLNfahpGsI/AAAAAAAAANk/gKKqn5_sgkk/s1600/8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="486" src="http://4.bp.blogspot.com/-xn9m9tzN-sM/TyLNfahpGsI/AAAAAAAAANk/gKKqn5_sgkk/s640/8.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;Selecting the new instance to configure... Hop to the database tab to install or point to an existing DB.&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-5dRZ4SKxX7Y/TyLNga9078I/AAAAAAAAANs/BPkreSesC40/s1600/9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="488" src="http://4.bp.blogspot.com/-5dRZ4SKxX7Y/TyLNga9078I/AAAAAAAAANs/BPkreSesC40/s640/9.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&amp;nbsp;I'm already using ReportServer default DB for the first instance, so I'll need to come up with a new name for the new instance to use !&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-qhHkNn4lC0k/TyLNhELCQ6I/AAAAAAAAAN0/XM5t8Js4Yi8/s1600/9-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="492" src="http://1.bp.blogspot.com/-qhHkNn4lC0k/TyLNhELCQ6I/AAAAAAAAAN0/XM5t8Js4Yi8/s640/9-1.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&amp;nbsp;I'll create a new DB.&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-uy3Xbz3ZHaU/TyLNiHhsjaI/AAAAAAAAAN8/25b9RWS8b5U/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="466" src="http://4.bp.blogspot.com/-uy3Xbz3ZHaU/TyLNiHhsjaI/AAAAAAAAAN8/25b9RWS8b5U/s640/10.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&amp;nbsp;On which SQL server the DB will be created in !&lt;/div&gt;&lt;div style="text-align: center;"&gt;and which account the wizard will use to connect to that SQL box.&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-m8ivQiRff6g/TyLNj4tCxTI/AAAAAAAAAOE/rEpuXWfdE9Y/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="470" src="http://1.bp.blogspot.com/-m8ivQiRff6g/TyLNj4tCxTI/AAAAAAAAAOE/rEpuXWfdE9Y/s640/11.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;Name of the new DB.&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-G3HpL4Gd9J4/TyLNkyved-I/AAAAAAAAAOM/Xnh8_W55RkU/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="464" src="http://2.bp.blogspot.com/-G3HpL4Gd9J4/TyLNkyved-I/AAAAAAAAAOM/Xnh8_W55RkU/s640/12.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;Credentials for the new DB.&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ZoxRCiP9Elc/TyLNll2o-pI/AAAAAAAAAOU/V0ruonPAveU/s1600/13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="468" src="http://3.bp.blogspot.com/-ZoxRCiP9Elc/TyLNll2o-pI/AAAAAAAAAOU/V0ruonPAveU/s640/13.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&amp;nbsp;Summary...&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-JRPgiVZKXYs/TyLNm-jKDZI/AAAAAAAAAOc/Qz4zzyELtu4/s1600/14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="468" src="http://4.bp.blogspot.com/-JRPgiVZKXYs/TyLNm-jKDZI/AAAAAAAAAOc/Qz4zzyELtu4/s640/14.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;2 Mins and you're done.&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-h19K09jI1nI/TyLNn2jeMFI/AAAAAAAAAOk/oz9Lou1kDoc/s1600/15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="468" src="http://2.bp.blogspot.com/-h19K09jI1nI/TyLNn2jeMFI/AAAAAAAAAOk/oz9Lou1kDoc/s640/15.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&amp;nbsp;Initialize the web service URL, which port and which virtual directory..&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-4uRu_tzofGg/TyLNpCMYl1I/AAAAAAAAAOs/dm6kuascuqM/s1600/16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="482" src="http://2.bp.blogspot.com/-4uRu_tzofGg/TyLNpCMYl1I/AAAAAAAAAOs/dm6kuascuqM/s640/16.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;Report server URL to view the reports..for user access.&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-TBMhQ5vGKqc/TyLNqJvrJuI/AAAAAAAAAO0/SIWZtBJS828/s1600/17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="484" src="http://3.bp.blogspot.com/-TBMhQ5vGKqc/TyLNqJvrJuI/AAAAAAAAAO0/SIWZtBJS828/s640/17.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="center"&gt;the 2 instances and the SSRS URLs.&lt;/div&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://jyousef-3cce217/Reports_TESTINST"&gt;http://jyousef-3cce217/Reports_TESTINST&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;---Newly added instance URL&lt;br /&gt;&lt;a href="http://jyousef-3cce217/Reports"&gt;http://jyousef-3cce217/Reports&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;---Default installed one.&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-csMBlz4zW1g/TyLNrBL-MoI/AAAAAAAAAO8/GPqp42ZxXO4/s1600/18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="374" src="http://2.bp.blogspot.com/-csMBlz4zW1g/TyLNrBL-MoI/AAAAAAAAAO8/GPqp42ZxXO4/s640/18.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;That's it...&lt;br /&gt;Hope that helps someone.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-697553507353437590?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/697553507353437590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/add-ssrs-2008-named-instance-to-same.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/697553507353437590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/697553507353437590'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/add-ssrs-2008-named-instance-to-same.html' title='Add SSRS 2008 named instance to the same server.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-7pwmAThQ2XY/TyLNX9fv_KI/AAAAAAAAAMk/PHvTCryJQoA/s72-c/0.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2376188578353229780</id><published>2012-01-25T12:59:00.000-05:00</published><updated>2012-02-09T08:56:32.740-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Self-Advancement'/><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>SQL Server 2012 Developer Training Kit</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Ms just released 2 days ago the SQL Server 2012 Developer Training Kit includes technical content designed to help you learn how to develop SQL Server 2012 database and BI solutions.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You'll need to have the &lt;strong&gt;Microsoft Web Platform Installer 3.0 &lt;/strong&gt;installed before downloading&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/web/downloads/platform.aspx"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.microsoft.com/web/downloads/platform.aspx&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Then download the KIT from here... it'll need 269 MB space to download all the sets of LABS, Presentations and Demos.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=27721"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=27721&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In the system requirments, they listed windows 7, windows server 2008.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial;"&gt;During the installation, it'll give you an options t odownload and install VS2010,SQL 2012 and such required S/W.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2376188578353229780?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2376188578353229780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/sql-server-2012-developer-training-kit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2376188578353229780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2376188578353229780'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/sql-server-2012-developer-training-kit.html' title='SQL Server 2012 Developer Training Kit'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2275888372100223485</id><published>2012-01-23T00:17:00.002-05:00</published><updated>2012-02-18T22:41:37.591-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Self-Advancement'/><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>Microsoft Virtual Academy - Free Online Training!</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Aperantly MS has&amp;nbsp;some goodies for the new year, I posted before a link to the new E-book, and now&amp;nbsp;I just discovered this new GEM... &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt; text-align: center;"&gt;&lt;a href="https://www.microsoftvirtualacademy.com/Home.aspx" target="_blank"&gt;&lt;b&gt;&lt;span lang="EN-CA" style="line-height: 115%;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;Microsoft Virtual Academy&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="margin-bottom: 0pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Improve your IT skill set and help advance your career with a free, easy to access training portal. Learn at your own pace, focusing on Microsoft technologies, gain points and get recognition.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2275888372100223485?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2275888372100223485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/microsoft-virtual-academy-free-online.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2275888372100223485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2275888372100223485'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/microsoft-virtual-academy-free-online.html' title='Microsoft Virtual Academy - Free Online Training!'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-482396024001277551</id><published>2012-01-22T10:03:00.000-05:00</published><updated>2012-02-10T14:19:44.264-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Self-Advancement'/><title type='text'>MVP Nominations!</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;This is big, this tells me that someone is appreciating what I do and giving me the chance to do more under their recognition umbrella.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Tells me that Microsoft’s cares...&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The Microsoft Most Valued Professional award recognizes the community activists who speaks, participate in forums activities, attends seminars and has influence in the technical community..&lt;/span&gt;&lt;br /&gt;&lt;a href="https://mvp.support.microsoft.com/"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;https://mvp.support.microsoft.com/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I started helping and blogging by the end of 2009 to help others, didn't even know about this MVP thing, when I started answering and participating in Experts Exchange due to feeling the pain of these people, when they're behind a dead line, when they have a boss on their shoulders...I've been there...done that...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Really more points on EE means "more contribution"&amp;nbsp;but not "more knowledge", but of course, "more knowledge" is needed to provide "more answers"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I was looking for info just like you...I was struggling to get a silly easy query to work like you...and still a lot to learn.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I started doing what I’m doing to share the knowledge, I believe that you'll never learn unless you teach or feel the live experience, and here I’m seeing other's live examples and gaining even more experience by helping them!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If you want to help the community, just do it.&amp;nbsp; Helping is rewarding in many ways, at least to your knowledge.&lt;br /&gt;&lt;br /&gt;If the MVP program didn't select me, I'll still continue to help more and more, knowing that I’m not valuable the way I’m doing it and need to put more effort in helping others and sharing my knowledge.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If the MVP selects me, that means that I'll even have more responsibility to even do more, need to focus on the quality of my contributions and not the quantity, need to speak more as know I could have better chances to talk, before nobody gave me the opportunity to talk other than my work mates and my works place.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-482396024001277551?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/482396024001277551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/mvp-nominations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/482396024001277551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/482396024001277551'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/mvp-nominations.html' title='MVP Nominations!'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-340126051685091742</id><published>2012-01-21T10:59:00.002-05:00</published><updated>2012-02-18T22:41:54.053-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>SSRS Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report, the link is no longer valid.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Have you ever got this message? "Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report, the link is no longer valid."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;It's simply as it says, just go back to your report and make sure to save the user credintials that runs the report, or go to Datasets under ReportServer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Also you can refer to this MS 'How to'&amp;nbsp;article.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms159736.aspx"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://msdn.microsoft.com/en-us/library/ms159736.aspx&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-340126051685091742?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/340126051685091742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/ssrs-subscriptions-cannot-be-created.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/340126051685091742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/340126051685091742'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/ssrs-subscriptions-cannot-be-created.html' title='SSRS Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report, the link is no longer valid.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1765124262441670412</id><published>2012-01-19T14:07:00.003-05:00</published><updated>2012-02-07T10:04:47.613-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Self-Advancement'/><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>Free ebook: Introducing Microsoft SQL Server Code Name “Denali” (DRAFT Preview)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Microsoft Press Today, via their &lt;/span&gt;&lt;a href="http://twitter.com/MicrosoftPress" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Twitter&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;account,&amp;nbsp;Tossed&amp;nbsp;a link to their new E-book Introducing Microsoft SQL Server Code Name “Denali”.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.msdn.com/b/microsoft_press/archive/2011/10/11/free-ebook-introducing-microsoft-sql-server-code-name-denali-draft-preview.aspx?CommentPosted=true#commentmessage"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://blogs.msdn.com/b/microsoft_press/archive/2011/10/11/free-ebook-introducing-microsoft-sql-server-code-name-denali-draft-preview.aspx?CommentPosted=true#commentmessage&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/0844.9780735665156_5F00_17494D25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="320" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-17-44-metablogapi/0844.9780735665156_5F00_17494D25.jpg" width="262" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;﻿&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1765124262441670412?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1765124262441670412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/free-ebook-introducing-microsoft-sql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1765124262441670412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1765124262441670412'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/free-ebook-introducing-microsoft-sql.html' title='Free ebook: Introducing Microsoft SQL Server Code Name “Denali” (DRAFT Preview)'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-501073975193519398</id><published>2012-01-11T18:24:00.000-05:00</published><updated>2012-02-01T21:01:03.133-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Check for file existance, copy or skip using script taks</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A recent question about how to check for file existance, skip or copy using script taks. from 2 different&amp;nbsp;locations.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;Here I'll ge ta list of files that needs to be copied from C:\Media, check if it exists in U:Media or not and act accordingly.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports System.IO&lt;br /&gt;&amp;lt;System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")&amp;gt; _&lt;br /&gt;&amp;lt;System.CLSCompliantAttribute(False)&amp;gt; _&lt;br /&gt;Partial Public Class ScriptMain&lt;br /&gt;&amp;nbsp;Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase&lt;br /&gt;&amp;nbsp;Enum ScriptResults&lt;br /&gt;&amp;nbsp;&amp;nbsp;Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure&lt;br /&gt;&amp;nbsp;End Enum&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub Main()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FileToCopy As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim NewCopy As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim di As New IO.DirectoryInfo("C:\Media")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fi As IO.FileInfo() = di.GetFiles()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim f As IO.FileInfo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each f In fi&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileToCopy = "C:\Media\" + f.ToString&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewCopy = "U:\Media\" + f.ToString&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If File.Exists(NewCopy) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(NewCopy + "File Exists")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.File.Copy(FileToCopy, NewCopy)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(NewCopy + "File Copied")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = ScriptResults.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope that helps....&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-501073975193519398?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/501073975193519398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/check-for-file-existance-copy-or-skip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/501073975193519398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/501073975193519398'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/check-for-file-existance-copy-or-skip.html' title='Check for file existance, copy or skip using script taks'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-3787815131474421212</id><published>2012-01-10T18:14:00.000-05:00</published><updated>2012-02-23T18:15:01.340-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SSIS expressions in variables...dynamic variables</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A recent question about how to create dynamic variables using expressions in SSIS, well that's pretty easy, you just need to highlight the desired variable, press F4 to pull the properties window.&lt;/span&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Ds84IwdvC1s/T0bHtxy_nMI/AAAAAAAAATc/LwAw7Jvcwus/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="97" src="http://4.bp.blogspot.com/-Ds84IwdvC1s/T0bHtxy_nMI/AAAAAAAAATc/LwAw7Jvcwus/s320/1.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;Then set "EvaluateAsExpression" to TRUE, then click on ellipsis to set the expression....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-l6Gy66UWESU/T0bHusWXK6I/AAAAAAAAATk/YrdZF31yrUI/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="202" src="http://2.bp.blogspot.com/-l6Gy66UWESU/T0bHusWXK6I/AAAAAAAAATk/YrdZF31yrUI/s320/2.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope that helps...&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-3787815131474421212?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/3787815131474421212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/ssis-expressions-in-variablesdynamic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3787815131474421212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3787815131474421212'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/ssis-expressions-in-variablesdynamic.html' title='SSIS expressions in variables...dynamic variables'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-Ds84IwdvC1s/T0bHtxy_nMI/AAAAAAAAATc/LwAw7Jvcwus/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-9090897028915019313</id><published>2012-01-01T10:46:00.005-05:00</published><updated>2012-01-01T10:46:59.343-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSMS'/><title type='text'>SQL Agnet  Job Categories</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I'm excited to write my first blog post in 2012 with a new year resolution, 99% of the times when I create a SQL agent job I forget to set the category of the job to a meaning category instead of the default [&lt;span style="color: red;"&gt;Uncategorized - (Local) ]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Does your jobs looks like this?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-QQowc_XoXQ4/TwB_a-f7QxI/AAAAAAAAALg/M76VgxklxDo/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="358" src="http://2.bp.blogspot.com/-QQowc_XoXQ4/TwB_a-f7QxI/AAAAAAAAALg/M76VgxklxDo/s400/1.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Make it a habit and add the category..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;To add more categories to the list...(Right-click &lt;span class="label"&gt;Jobs&lt;/span&gt;, select &lt;span class="label"&gt;Manage Job Categories, then Add)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-yaJ9KIWD2qY/TwB_gJGfw8I/AAAAAAAAALs/b-br6W7wPh8/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-yaJ9KIWD2qY/TwB_gJGfw8I/AAAAAAAAALs/b-br6W7wPh8/s400/2.jpg" width="310" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope that helps you to get your server more organized !&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-9090897028915019313?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/9090897028915019313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2012/01/sql-agnet-job-categories.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/9090897028915019313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/9090897028915019313'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2012/01/sql-agnet-job-categories.html' title='SQL Agnet  Job Categories'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-QQowc_XoXQ4/TwB_a-f7QxI/AAAAAAAAALg/M76VgxklxDo/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-6658474867017777999</id><published>2011-12-05T15:44:00.001-05:00</published><updated>2011-12-06T17:55:15.532-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>SSRS check for NULL or Empty String</title><content type='html'>Alright..I have a column called "Comments" and need to hide that column if it's NULL or empty or have spaces!&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-y73wepUGGvI/Tt0uHqk_H8I/AAAAAAAAALA/5tkYJfiXrzI/s1600/visibality.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-y73wepUGGvI/Tt0uHqk_H8I/AAAAAAAAALA/5tkYJfiXrzI/s400/visibality.jpg" width="385" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Just set the visibility expression to:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;=IIF(Fields!Comments.Value = "", IIF(Fields!Comments.Value is nothing, IIF(Len(Trim(Fields!Comments.Value)) = 0,True, False), False), False)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-6658474867017777999?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/6658474867017777999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/12/ssrs-check-for-null-or-empty-string.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6658474867017777999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6658474867017777999'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/12/ssrs-check-for-null-or-empty-string.html' title='SSRS check for NULL or Empty String'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-y73wepUGGvI/Tt0uHqk_H8I/AAAAAAAAALA/5tkYJfiXrzI/s72-c/visibality.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-3385788820851941107</id><published>2011-12-05T12:55:00.000-05:00</published><updated>2012-02-18T22:44:11.258-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Self-Advancement'/><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>Submitted a SQL Tribal Knowledge abstract</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Jen McCown&amp;nbsp;( &lt;/span&gt;&lt;a href="https://twitter.com/#!/MidnightDBA"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Twitter&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; | &lt;/span&gt;&lt;a href="http://www.midnightdba.com/"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Blog&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;) is calling all the unpublished SQL Server folk and non MVPs!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;She has&amp;nbsp;this brilliant idea about a community-written book of tribal SQL Server knowledge.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.midnightdba.com/Jen/2011/11/sql-tribal-knowledge/"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.midnightdba.com/Jen/2011/11/sql-tribal-knowledge/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Anyway I've managed to contact her and she was generous to accpet my 3 abstracts after she closed the submition timeline.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I'm So excited that I could write for the SQL community and share the knowledge,These are actually what came to my mind back then, but really regret not sending anything about SQL 2012 as it would be more suitable.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Title: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;SSIS notifications, using “SEND MAILTASK”. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Category:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; Advanced SSIS &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Level:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; 300&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Goal: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Learn about the various ways and the capabilitiesof SSIS notifications.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Abstract: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Examiningthe common and the possible ways to send e-mail notifications for variousscenarios, on error, on success using the built in “Send Mail Task” andlearning abut it’s limitations, the ways to extend it using a script component utilizinga .NET code, sending HTML e-mails, sending Table results to E-mail, usingexpressions in description and e-mail body, addressing the way to minimize creatingnotifications by creating a portable template that could be plugged to any packageusing child / parent variables.&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A-Overview,usage and its limitations&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;B-Using.NET in a Script Component.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;C-Usingadd-on community tasks.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;D-SendingHTML E-mail notifications.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E-HTMLTable Results.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;F-Expressiondriven dynamic notifications.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;G-Creatingportable notification templates using variables.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Title:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;SSIS Dynamiccapability, using variables and expressions.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Category:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; Advanced SSIS &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Level:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; 400&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Goal: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Learn about the power of dynamic SSISusing expressions and the ways to pass values across components using variables.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Abstract: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Learningabout moving your package to the next level and leverage the usage by utilizingvariables and the impressively expressions that can change and configure itselfat runtime.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Get to know the best naming conventions for your variables, how variablesare being created, it’s scope and its various data types.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Using variables in your script task, using dispensers, passing variablesto a child package.&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A-Overview,usage and scope.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;B-Variables data Types.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;C-Namingbest practices.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;D-VariablesUsing .NET in Script Task.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E-Expressionsand Dynamic SSIS&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;F-Usingthe expressions builder and the Expression Tester App.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;G-Operators,Functions, Literals and Casting.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;H-CommonsSting, Numeric, NULL, Conditional and Date &amp;amp; Time examples.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Title: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;SSIS SMO Tasks (SQL Server Management Objects)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Category:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; Advanced SSIS &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Level:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt; 200&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Goal: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Do you know how many times you’ve usedSSIS and you’re not aware! While using the import and export wizard withinSSMS, while scheduling maintenance plans within SSMS. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Learnabout the various tasks that could help the DBA to make their work faster,Move, copy, detach databases, logins and SQL agent jobs between servers.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Move,copy database objects such as tables, views and stored procedures withintables.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;A-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Transfer Database Task.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;B-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Transfer Error Messages Task&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;C-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Transfer Jobs Task&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;D-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Transfer Logins Task&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;E-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Transfer Master Stored Procedures Task&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background-color: #ffffcc; line-height: normal;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;F-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;Transfer SQL Server Objects Task&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-3385788820851941107?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/3385788820851941107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/12/submitted-sql-tribal-knowledge-abstract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3385788820851941107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3385788820851941107'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/12/submitted-sql-tribal-knowledge-abstract.html' title='Submitted a SQL Tribal Knowledge abstract'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-5893758406402068527</id><published>2011-12-02T12:56:00.001-05:00</published><updated>2011-12-03T19:02:03.988-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>SSRS can be also used for user inputs!</title><content type='html'>A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028"&gt;http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Of course it’s not the best way to use SSRS as it’s a presentation layer and so limited in doing that using Parameters and sub-Reports which will fire a code or a stored procedure to update or delete a record…but IT COULD BE DONE!!&lt;br /&gt;&lt;br /&gt;And that’s what I was bargaining about…&lt;br /&gt;&lt;br /&gt;1-I started by creating a new project in VS 2008, “Report Server Project” type.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-TuOcp27hYHU/TtkRy0SgNlI/AAAAAAAAAI4/KvTLbrF1qBE/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="297" src="http://1.bp.blogspot.com/-TuOcp27hYHU/TtkRy0SgNlI/AAAAAAAAAI4/KvTLbrF1qBE/s400/1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;2-I’m using SQL 2008 R2 as my testing platform…I’ve created a test DB called “Admin”&lt;br /&gt;CREATE DATABASE [Admin]&lt;br /&gt;3-I created a test table called “Employees”&amp;nbsp; contains only 3 columns.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;Create TABLE Employees&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID int IDENTITY (1,1),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name varchar(50),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Comments varchar(MAX)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;4- Inserted 4 test records…&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;blockquote class="tr_bq"&gt;Insert Employees VALUES('Jason', 'Lazy Employee')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,('Yousef', NULL)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,('John', 'Anything Goes')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,('Smith', NULL)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-YkSLEAr5ROk/TtkSATNmXgI/AAAAAAAAAK4/s-Mh-hBFaLM/s1600/table.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-YkSLEAr5ROk/TtkSATNmXgI/AAAAAAAAAK4/s-Mh-hBFaLM/s1600/table.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5-back to VS, Created a Shared Data Source to my Admin DB&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-oPDGVlqKbhk/TtkRzgMFzVI/AAAAAAAAAJA/3tsD0fkll80/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="196" src="http://1.bp.blogspot.com/-oPDGVlqKbhk/TtkRzgMFzVI/AAAAAAAAAJA/3tsD0fkll80/s400/2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;6-created 3 Blank reports, using the shared Data Source.&lt;br /&gt;1-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To display the records which in the table.&lt;br /&gt;2-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A user summary and confirm screen of which record will be updated and with what.&lt;br /&gt;3-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A done screen, which will call a stored procedure or just have a simple inline T-SQL query.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-svHv60mKShs/TtkR9YVZOrI/AAAAAAAAAKY/nfhrRpoO27Q/s1600/datasources.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="537" src="http://1.bp.blogspot.com/-svHv60mKShs/TtkR9YVZOrI/AAAAAAAAAKY/nfhrRpoO27Q/s640/datasources.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That’s the trick in the second report, you need to hide the ID and keep the Comments Parameter visible and allow it to accept NULL Value, so it display the record before you need to enter the value.&amp;nbsp; And also if you need an empty comment, such as to clear the comments field or whatever.&lt;br /&gt;&lt;br /&gt;7-The design…&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Report1: 1ReportsToDB.rdl&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Just a basic table, drag the 3 fields to the table, added an extra field with an expression of&amp;nbsp; =CHR(0254) and Font of: Wingdings&amp;nbsp; Just to display a shape without using an image.&lt;br /&gt;Please refer to my article for shapes in&lt;br /&gt;&lt;br /&gt;SSRS &lt;a href="http://asqlb.blogspot.com/2011/06/ever-wanted-shapes-and-check-boxes-in.html"&gt;http://asqlb.blogspot.com/2011/06/ever-wanted-shapes-and-check-boxes-in.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-PaDJ-c9_zMg/TtkR12mA0EI/AAAAAAAAAJQ/qAXkWwfi9Lo/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="77" src="http://2.bp.blogspot.com/-PaDJ-c9_zMg/TtkR12mA0EI/AAAAAAAAAJQ/qAXkWwfi9Lo/s400/4.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Also I added an action to that text field to go to report 2 and pass the ID.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-M3YyNa5sjgY/TtkR0_f16AI/AAAAAAAAAJI/tpoSOXFzSVQ/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="363" src="http://4.bp.blogspot.com/-M3YyNa5sjgY/TtkR0_f16AI/AAAAAAAAAJI/tpoSOXFzSVQ/s400/3.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;strong&gt;Report2: 2ReportsToDB-Confirm.rdl&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Again a simple table with the basic 3 fields and added another field for the new Comments value which is using an expression of:&amp;nbsp; =Parameters!Comments.Value and a field for a confirmation symbol, yes again using my favorite shapes font WINGDINGS , with action to run the 3rd report and pass the ID and the new comments.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7CGxU5chvVk/TtkR2tD13hI/AAAAAAAAAJY/TNiPDMu7mJ0/s1600/5.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="88" src="http://2.bp.blogspot.com/-7CGxU5chvVk/TtkR2tD13hI/AAAAAAAAAJY/TNiPDMu7mJ0/s640/5.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-cNyby-_cTD0/TtkR3cnZf_I/AAAAAAAAAJg/c7pWvgsLaic/s1600/6.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="580" src="http://3.bp.blogspot.com/-cNyby-_cTD0/TtkR3cnZf_I/AAAAAAAAAJg/c7pWvgsLaic/s640/6.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Report3: 3ReportsToDB-Done.rdl&lt;br /&gt;I added 3 text fields, but it’s all optional (for fun).&lt;br /&gt;&lt;br /&gt;Just with an action to go back to the first report and the summary or what was done!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-vL_w8xxWWng/TtkR4GWJMwI/AAAAAAAAAJo/l5_fYi4H0Dk/s1600/7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="189" src="http://2.bp.blogspot.com/-vL_w8xxWWng/TtkR4GWJMwI/AAAAAAAAAJo/l5_fYi4H0Dk/s640/7.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Lets’ run and test it….&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-xC52ofA0kao/TtkR5Iv0yvI/AAAAAAAAAJw/dh0Jluv85iI/s1600/8.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="187" src="http://2.bp.blogspot.com/-xC52ofA0kao/TtkR5Iv0yvI/AAAAAAAAAJw/dh0Jluv85iI/s640/8.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I’ll click next to my name on the check mark to update my comments…&lt;br /&gt;That’s what you get at first because we allowed the NULL, that’s the trick to see the table before the parameter gets initialized.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-bBQxdZ8rekY/TtkR6AIZXbI/AAAAAAAAAJ4/glILIQWFlyM/s1600/9.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="145" src="http://2.bp.blogspot.com/-bBQxdZ8rekY/TtkR6AIZXbI/AAAAAAAAAJ4/glILIQWFlyM/s640/9.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Remove the NULL check mark and enter the new comments….&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-j6bQ51ocqlU/TtkR66Pl8xI/AAAAAAAAAKA/Glc7FxI1F9A/s1600/10.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="158" src="http://2.bp.blogspot.com/-j6bQ51ocqlU/TtkR66Pl8xI/AAAAAAAAAKA/Glc7FxI1F9A/s640/10.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You’ll get the confirmation above…&lt;br /&gt;Now click on the check mark to confirm the change,&amp;nbsp; yes you guessed it right…it’s the wingdings shapes again ¿&lt;br /&gt;And that’s what you get..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-NEJYR8HJ4FY/TtkR7rEMeWI/AAAAAAAAAKI/EZ54Lu3gwpU/s1600/11.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://4.bp.blogspot.com/-NEJYR8HJ4FY/TtkR7rEMeWI/AAAAAAAAAKI/EZ54Lu3gwpU/s640/11.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I’ll click on my GO Back, to the first report to check the data.&lt;br /&gt;Done.. my record was updated in the DB.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-U6vb7Z-3Om0/TtkR8ZhpdtI/AAAAAAAAAKQ/cattiSvuU1I/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="188" src="http://4.bp.blogspot.com/-U6vb7Z-3Om0/TtkR8ZhpdtI/AAAAAAAAAKQ/cattiSvuU1I/s640/12.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Again that’s for the purpose of showing that SSRS is more than a presentation layer and that was the simplest part, it could get more complicated and done more professionally using Custom .NET code and functions.&lt;br /&gt;&lt;br /&gt;Hope that helps someone…&lt;br /&gt;&lt;br /&gt;The project can be downloaded from&lt;br /&gt;&lt;a href="http://www.box.com/s/sskhxfppful1l7sbytzh"&gt;http://www.box.com/s/sskhxfppful1l7sbytzh&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;a href="http://asqlb.blogspot.com/2011/06/ever-wanted-shapes-and-check-boxes-in.html"&gt;http://asqlb.blogspot.com/2011/06/ever-wanted-shapes-and-check-boxes-in.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.purplehell.com/riddletools/wingdingschart.htm"&gt;http://www.purplehell.com/riddletools/wingdingschart.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Jason Yousef&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-5893758406402068527?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/5893758406402068527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/12/ssrs-can-be-also-used-for-user-inputs.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5893758406402068527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5893758406402068527'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/12/ssrs-can-be-also-used-for-user-inputs.html' title='SSRS can be also used for user inputs!'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-TuOcp27hYHU/TtkRy0SgNlI/AAAAAAAAAI4/KvTLbrF1qBE/s72-c/1.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2049479120815905182</id><published>2011-11-17T14:42:00.001-05:00</published><updated>2011-11-17T14:45:02.037-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL'/><title type='text'>Search every table and every CHAR columns for a keyword!</title><content type='html'>I needed to search for a specific keyword and didn't have the chance to know what's the table's name or even what's the column's name!!&lt;br /&gt;&lt;br /&gt;Just replace the KEYWORD in the below query to your needs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;DECLARE @Schema varchar(3)&lt;br /&gt;DECLARE @Table Nvarchar(max)&lt;br /&gt;DECLARE @Column varchar(30)&lt;br /&gt;DECLARE @Keyword Nvarchar(30)&lt;br /&gt;&lt;br /&gt;SELECT @Keyword = &lt;span style="color: red;"&gt;'BMAC2120-01'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DECLARE Curs CURSOR FAST_FORWARD FOR&lt;br /&gt;&lt;br /&gt;SELECT&amp;nbsp; s.name As [Schema], o.Name AS [Table],c.Name AS [Column]&lt;br /&gt;FROM sys.columns c JOIN sys.objects o ON o.object_id = c.object_id &lt;br /&gt;JOIN sys.schemas s ON s.schema_id = o.schema_id&lt;br /&gt;WHERE o.type = 'U' and c.collation_name IS NOT null&lt;br /&gt;ORDER BY o.Name,c.Name &lt;br /&gt;&lt;br /&gt;OPEN Curs&amp;nbsp;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;FETCH NEXT FROM Curs&amp;nbsp; INTO @Schema,@Table, @Column&lt;br /&gt;WHILE @@FETCH_STATUS = 0&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;SELECT @Table = 'SELECT top 5 [' + @Column + '],''' + @Table + ''' as [Table Name] from ' + &lt;a href="mailto:+@Schema"&gt;+@Schema&lt;/a&gt; +'.' + @Table + ' where [' + @Column + '] LIKE ''%' &lt;a href="mailto:+@Keyword"&gt;+@Keyword&lt;/a&gt; +'%'''&lt;br /&gt;print @Table&lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM Curs&amp;nbsp; INTO @Schema,@Table, @Column&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;CLOSE Curs&lt;br /&gt;DEALLOCATE Curs&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2049479120815905182?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2049479120815905182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/11/search-every-table-and-every-char.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2049479120815905182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2049479120815905182'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/11/search-every-table-and-every-char.html' title='Search every table and every CHAR columns for a keyword!'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-7412701173511441759</id><published>2011-11-04T12:29:00.000-04:00</published><updated>2011-12-02T21:53:59.609-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL'/><title type='text'>T-SQL Combine Date with Time</title><content type='html'>I've a case where I have 2 columns, Date and Time.&lt;br /&gt;&lt;br /&gt;Date column's datatype is DATETIME&lt;br /&gt;Time Column's datatype is INT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;Date:&amp;nbsp; 2009-04-14 00:00:00.000&lt;br /&gt;Time:&amp;nbsp; can be 743&amp;nbsp; or&amp;nbsp; 0834&lt;br /&gt;&lt;br /&gt;I need to combine them in one DATETIME column.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;Select 'DTColumn' = CASE WHEN len(convert(varchar(12),Time)) = 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;THEN cast(CONVERT(char(8),Date, 112) + ' ' +&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;convert(varchar(10),Substring(convert(varchar(12),Time, 108),1,1) + ':' + right(Time, 2) + ':00'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,108) AS datetime)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHEN len(convert(varchar(12),Time)) = 4&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;THEN&amp;nbsp; cast(CONVERT(char(8),Date, 112) + ' ' +&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;convert(varchar(10),Substring(convert(varchar(12),Time),1,2) + ':' + right(Time, 2) + ':00'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,108)&amp;nbsp; AS datetime)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&lt;br /&gt;from Table&lt;/blockquote&gt;That's it...Hope it helps someone...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-7412701173511441759?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/7412701173511441759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/11/combine-date-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7412701173511441759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7412701173511441759'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/11/combine-date-time.html' title='T-SQL Combine Date with Time'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-5762263932598606220</id><published>2011-11-04T12:25:00.002-04:00</published><updated>2011-11-04T15:17:02.340-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Error rows, Code and Description in SSIS</title><content type='html'>1-double click the OLE DB destination to bring it's properties.&lt;br /&gt;&lt;br /&gt;2-go to "Error Output" as highlighted in the screenshot, "select "Redirect Row" from the drop-down menu. that will redirect the bad rows to the output.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-bysg4x0T3VI/TrQRdRK7JyI/AAAAAAAAAII/xcbwo1e2foA/s1600/error.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://1.bp.blogspot.com/-bysg4x0T3VI/TrQRdRK7JyI/AAAAAAAAAII/xcbwo1e2foA/s400/error.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3-Add a 'script Component task' , go to the input columns, select ONLY &amp;nbsp;'Error Code" and 'ErrorColumn'., add an OUTPU column to hold the error description.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-GCplu--uo7c/TrQRkn3_LxI/AAAAAAAAAIQ/40i4n84aGfQ/s1600/error2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="291" src="http://1.bp.blogspot.com/-GCplu--uo7c/TrQRkn3_LxI/AAAAAAAAAIQ/40i4n84aGfQ/s400/error2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-dHP1E9ZbGpM/TrQ6IRVtBQI/AAAAAAAAAIg/kLtTQKGXhus/s1600/error5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="297" src="http://4.bp.blogspot.com/-dHP1E9ZbGpM/TrQ6IRVtBQI/AAAAAAAAAIg/kLtTQKGXhus/s400/error5.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4-Go to the script screen, and add the following script, make sure to US VISUAL BASIC 2008 as your input language.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-PPPL-4IXz9w/TrQRuJYJ9ZI/AAAAAAAAAIY/0wOMasu7xAw/s1600/error3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="272" src="http://2.bp.blogspot.com/-PPPL-4IXz9w/TrQRuJYJ9ZI/AAAAAAAAAIY/0wOMasu7xAw/s320/error3.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;5-paste that script..&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime.Wrapper&lt;br /&gt;&amp;lt;Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute&amp;gt; _&lt;br /&gt;&amp;lt;CLSCompliant(False)&amp;gt; _&lt;br /&gt;Public Class ScriptMain&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits UserComponent&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Row.ErrorDescription = Me.ComponentMetaData.GetErrorDescription(Row.ErrorCode)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;/blockquote&gt;&lt;br /&gt;6- now you'll have 3 columns, the error code, error row and the description of the error in english.&lt;br /&gt;&lt;br /&gt;7-connect a FLAT FILE DESTINATION to the script component so you can captuure the oputput to text, or connect another OLE DB DESTINATION to collect to a database.&lt;br /&gt;&lt;br /&gt;Hope that helps someone...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-5762263932598606220?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/5762263932598606220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/11/error-rows-code-and-description-in-ssis.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5762263932598606220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5762263932598606220'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/11/error-rows-code-and-description-in-ssis.html' title='Error rows, Code and Description in SSIS'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-bysg4x0T3VI/TrQRdRK7JyI/AAAAAAAAAII/xcbwo1e2foA/s72-c/error.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-855058180658609826</id><published>2011-11-02T13:27:00.000-04:00</published><updated>2011-11-02T13:27:10.009-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SFTP in SSIS</title><content type='html'>You have couple of options...&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Free&lt;/strong&gt; option will be a script task to&amp;nbsp;an external WinSCP app, explained in detailes here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/database/SSIS_SFTP.aspx"&gt;http://www.codeproject.com/KB/database/SSIS_SFTP.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Paid&lt;/strong&gt; options:&lt;br /&gt;&lt;br /&gt;1-http://www.cozyroc.com/&amp;nbsp;&amp;nbsp; $399.95&lt;br /&gt;2-http://www.rebex.net/sftp.net/&amp;nbsp; $349.00&lt;br /&gt;3-http://www.nsoftware.com/ssis/&amp;nbsp;&amp;nbsp; $249.00&lt;br /&gt;4-http://xceed.com/FTP_NET_Features.html&amp;nbsp;&amp;nbsp; $899.95 USD&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-855058180658609826?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/855058180658609826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/11/sftp-in-ssis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/855058180658609826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/855058180658609826'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/11/sftp-in-ssis.html' title='SFTP in SSIS'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2644971030680384128</id><published>2011-10-04T11:09:00.000-04:00</published><updated>2011-10-04T11:09:09.452-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Get excel sheet names in a script taks</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;I had seen a question asking about getting all the excel sheet names in a work book, so I've created the attached example package.&lt;br /&gt;&lt;br /&gt;Basically I'll loop over a specific folder, get all the excel file names into a variable, pass it to a script task to get me the worksheet names.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-YMmnRpQXA_0/TosghWLbHRI/AAAAAAAAAG0/1jgJ4FXScwQ/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="176" src="http://2.bp.blogspot.com/-YMmnRpQXA_0/TosghWLbHRI/AAAAAAAAAG0/1jgJ4FXScwQ/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="center"&gt;﻿&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-dMfOT2zpv-c/TosgnPP9kcI/AAAAAAAAAG4/ZKq6CPMQpEM/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="542" src="http://1.bp.blogspot.com/-dMfOT2zpv-c/TosgnPP9kcI/AAAAAAAAAG4/ZKq6CPMQpEM/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-37OdVPmcBt8/TosgsF1bJdI/AAAAAAAAAG8/UF14Br79f5c/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="542" src="http://1.bp.blogspot.com/-37OdVPmcBt8/TosgsF1bJdI/AAAAAAAAAG8/UF14Br79f5c/s640/3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-1t6O6-Ysj_s/Tosg1smCl_I/AAAAAAAAAHA/ejNXHIL8EY4/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://2.bp.blogspot.com/-1t6O6-Ysj_s/Tosg1smCl_I/AAAAAAAAAHA/ejNXHIL8EY4/s320/4.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="center"&gt;﻿&lt;/div&gt;&lt;br /&gt;In the SCRIPT TASK, add a reference to&amp;nbsp; &lt;span style="color: red;"&gt;&lt;strong&gt;MICROSOFT.OFFICE.INTEROP.EXCEL&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;Then add this code block..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports Microsoft.Office.Interop&lt;br /&gt;&amp;lt;System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")&amp;gt; _&lt;br /&gt;&amp;lt;System.CLSCompliantAttribute(False)&amp;gt; _&lt;br /&gt;Partial Public Class ScriptMain&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Enum ScriptResults&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Enum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub Main()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'opening the Variables for write and read for some of them&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Vars As Variables = Nothing&amp;nbsp; 'var dispenser&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForRead("User::StrExcelFilePath")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForWrite("User::StrExcelSheetName")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.GetVariables(Vars)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objExcel As Excel.Application&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objWorkBook As Excel.Workbook&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim totalWorkSheets As Excel.Worksheet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objWorkSheets As Excel.Worksheet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ExcelSheetName As String = ""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel = CreateObject("Excel.Application")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objWorkBook = objExcel.Workbooks.Open(Vars("User::StrExcelFilePath").Value)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' this code gets the names off all the worksheets &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each totalWorkSheets In objWorkBook.Worksheets&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ExcelSheetName += totalWorkSheets.Name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vars("User::StrExcelSheetName").Value = totalWorkSheets.Name.ToString&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(totalWorkSheets.Name.ToString)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next totalWorkSheets&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = ScriptResults.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vars.Unlock()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope that helps someone....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2644971030680384128?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2644971030680384128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/10/get-excel-sheet-names-in-script-taks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2644971030680384128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2644971030680384128'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/10/get-excel-sheet-names-in-script-taks.html' title='Get excel sheet names in a script taks'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-YMmnRpQXA_0/TosghWLbHRI/AAAAAAAAAG0/1jgJ4FXScwQ/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-5911788796014592909</id><published>2011-10-01T08:34:00.003-04:00</published><updated>2011-10-01T08:34:00.523-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>Strip Time out of date SSRS</title><content type='html'>I've a column type "datetime" that reads 09/23/2011 12:00:00 AM, need to show only the month and day portion seprated by "/" or "-".&lt;br /&gt;&lt;br /&gt;There're 2 ways to do it in SSRS:&lt;br /&gt;&lt;br /&gt;1-the easiest way :) and the right one too...&lt;br /&gt;&lt;br /&gt;=Month(Fields!Tuesday.Value) &amp;amp; "/" &amp;amp; Day(Fields!Tuesday.Value)&lt;br /&gt;&lt;br /&gt;2-the long fiasco way ! I was just fooling around !!&lt;br /&gt;&lt;br /&gt;=StrReverse(Replace(StrReverse(left(Fields!Sunday.Value).ToShortDateString,5)),"/","",1,1))&lt;br /&gt;&lt;br /&gt;It's your call...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-5911788796014592909?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/5911788796014592909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/10/strip-time-out-of-date-ssrs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5911788796014592909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5911788796014592909'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/10/strip-time-out-of-date-ssrs.html' title='Strip Time out of date SSRS'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-3577813277582532979</id><published>2011-09-28T08:33:00.000-04:00</published><updated>2011-09-28T08:33:51.972-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>Visual Studio 11 Ultimate Developer Preview</title><content type='html'>I'm so excited to hear about the new VS 2011, i've downloaded and played around to create new databases and do some stuff in denali and it has the new JUNEAU featues...&lt;br /&gt;Give it a shot....&lt;a href="http://msdn.microsoft.com/en-us/windows/hardware/hh454873"&gt;HERE&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-3577813277582532979?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/3577813277582532979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/09/visual-studio-11-ultimate-developer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3577813277582532979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3577813277582532979'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/09/visual-studio-11-ultimate-developer.html' title='Visual Studio 11 Ultimate Developer Preview'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1413248461999248904</id><published>2011-09-22T11:50:00.001-04:00</published><updated>2011-09-22T11:50:44.492-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>SSRS - An item with the same key has already been added</title><content type='html'>Ever got this message and wondered what does it means?&lt;br /&gt;The query works fine in SSMS but fails to refresh and update the column names in SSRS !!&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-TJUatbYluvQ/TntY_UcyQZI/AAAAAAAAAGw/PfNiRX5WUNw/s1600/9-22-2011+11-46-40+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-TJUatbYluvQ/TntY_UcyQZI/AAAAAAAAAGw/PfNiRX5WUNw/s1600/9-22-2011+11-46-40+AM.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;It happen to be that I've used the same column names in my query, but SQL handled it as I was using a table prefix in my join.&lt;br /&gt;&lt;br /&gt;Just alias your column names !!!&amp;nbsp; and remember not to select * !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1413248461999248904?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1413248461999248904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/09/ssrs-item-with-same-key-has-already.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1413248461999248904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1413248461999248904'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/09/ssrs-item-with-same-key-has-already.html' title='SSRS - An item with the same key has already been added'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-TJUatbYluvQ/TntY_UcyQZI/AAAAAAAAAGw/PfNiRX5WUNw/s72-c/9-22-2011+11-46-40+AM.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1836062283157820871</id><published>2011-09-12T14:59:00.000-04:00</published><updated>2011-09-12T14:59:33.932-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>SQL Server 2005 Express Tools is blocking SQL 2008 R2 upgrade!!</title><content type='html'>&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I was upgrading SQL server 2008 to 2008 R2, the installtion stops with error "SQL Server 2005 Express Tools in installed"&amp;nbsp; !! please uninstall, but unfortunately I don't have that!! and can't find it under the list of installed programs in the control panel!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Tried the skip check flag "/skiprules=Sql2005SsmsExpressFacet"&amp;nbsp; with no use !!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I took a backup of the whole registry, and removed the whole "Registry Key 90" folder!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;HKEY_LOCAL_MACHINE &amp;gt; Software &amp;gt; Microsoft &amp;gt; Microsoft SQL Server &amp;gt; 90&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;It worked!!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1836062283157820871?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1836062283157820871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/09/sql-server-2005-express-tools-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1836062283157820871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1836062283157820871'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/09/sql-server-2005-express-tools-is.html' title='SQL Server 2005 Express Tools is blocking SQL 2008 R2 upgrade!!'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-5682709127342600591</id><published>2011-09-08T14:38:00.000-04:00</published><updated>2011-09-08T14:38:53.441-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>SSRS Day name of Date Time</title><content type='html'>=WeekdayName(datepart("w", Fields!packagestart.Value))&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-vcnMWr1l_00/TmkLsFvGd7I/AAAAAAAAAGs/jqyd75lbuf8/s1600/example.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="30" nba="true" src="http://1.bp.blogspot.com/-vcnMWr1l_00/TmkLsFvGd7I/AAAAAAAAAGs/jqyd75lbuf8/s640/example.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-5682709127342600591?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/5682709127342600591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/09/ssrs-day-name-of-date-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5682709127342600591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5682709127342600591'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/09/ssrs-day-name-of-date-time.html' title='SSRS Day name of Date Time'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-vcnMWr1l_00/TmkLsFvGd7I/AAAAAAAAAGs/jqyd75lbuf8/s72-c/example.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-3028608251882732639</id><published>2011-09-08T09:32:00.000-04:00</published><updated>2011-12-09T20:48:56.998-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>TypeGuessRows for excel! SSIS Excel import NULLS !</title><content type='html'>I have an Excel file that I want to import into SQL Server.&lt;br /&gt;&lt;br /&gt;The package works fine! Except it nulls out some columns. and since these columns are null, it's picking null for the rows.&lt;br /&gt;&lt;br /&gt;interesting, you could change the number of rows that's being used for guessing by the jet engine...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/54dc94c5-280b-41e5-82fe-26925f9eb95b/"&gt;http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/54dc94c5-280b-41e5-82fe-26925f9eb95b/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I never had this problem before, so I'm learning now!!&lt;br /&gt;&lt;br /&gt;Learned that a TypeGuessRows in registry which is 8 by default, and this is number of rows which Jet engine try to fetch "data type" can be changed up to 16. &lt;br /&gt;&lt;br /&gt;At&amp;nbsp;the following location.&lt;br /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\X.X\Engines\Excel&lt;br /&gt;&lt;br /&gt;Another property named IMEX which is for Mixed types in excel. actually when Jet engine mark any column as mixed type ( like columns which character and numeric together ), then IMEX=1 excel will always fetch data as text.&lt;br /&gt;&lt;br /&gt;so use IMEX=1 and set TypeGuessRows as number of rows which is appropriate.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Related MS KB:&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/189897"&gt;http://support.microsoft.com/kb/189897&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope that helps someone as it helped me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-3028608251882732639?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/3028608251882732639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/09/typeguessrows-for-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3028608251882732639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/3028608251882732639'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/09/typeguessrows-for-excel.html' title='TypeGuessRows for excel! SSIS Excel import NULLS !'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-5383483429006401613</id><published>2011-09-07T12:21:00.000-04:00</published><updated>2011-09-07T12:21:04.342-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>SSRS Formatting</title><content type='html'>SSRS is full of treasures, I recently came accross that great article and wanted to share it..&lt;br /&gt;&lt;a href="http://sqlsafety.blogspot.com/2010/02/ssrs-formatting.html"&gt;http://sqlsafety.blogspot.com/2010/02/ssrs-formatting.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-5383483429006401613?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/5383483429006401613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/09/ssrs-formatting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5383483429006401613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5383483429006401613'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/09/ssrs-formatting.html' title='SSRS Formatting'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1612457555453635226</id><published>2011-08-12T10:18:00.002-04:00</published><updated>2011-08-12T10:25:46.272-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SSIS Process files that has been downloaded in the last hour</title><content type='html'>A recent question on &lt;a href="http://www.sqlservercentral.com/Forums/Topic1158950-147-1.aspx"&gt;SQL Server Central&lt;/a&gt;&amp;nbsp;was asking about how to process the last hour downloaded files.&lt;br /&gt;&lt;br /&gt;I think it's fairly simple using a script task to get the files creation date property, and then added a constant constraint to check the difference between now and the creation date, then pass through to the data flow task to process the file.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-e_JPMW30z44/TkUzLectXeI/AAAAAAAAAGM/ArvBB64mbwU/s1600/vars.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="222" src="http://2.bp.blogspot.com/-e_JPMW30z44/TkUzLectXeI/AAAAAAAAAGM/ArvBB64mbwU/s400/vars.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;I've created 6 variables, I'm here getting more usable file properties, but you don't have to do that, I'm just here showing the concept more than doing the exact time difference.&lt;br /&gt;&lt;br /&gt;Add a "foreachloop Container" and a "script task" inside.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-CPeXpjeYfbk/TkUzfDnqSSI/AAAAAAAAAGQ/NWBVCdVKqqQ/s1600/package.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="348" src="http://4.bp.blogspot.com/-CPeXpjeYfbk/TkUzfDnqSSI/AAAAAAAAAGQ/NWBVCdVKqqQ/s400/package.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;edit the "Foreachloop Container" location to your file system location. (the one that has your files).&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-tfhM6Wsw7yg/TkUzyTY7h3I/AAAAAAAAAGU/DPvyxuC9SNc/s1600/foreachloop.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="338" src="http://3.bp.blogspot.com/-tfhM6Wsw7yg/TkUzyTY7h3I/AAAAAAAAAGU/DPvyxuC9SNc/s400/foreachloop.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Map the 'FilePath' variable to the output of the "foreachloop"&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-BxQQi1tWZ5Q/TkUz6SbqrKI/AAAAAAAAAGY/bTsohjx0EwI/s1600/foreachloop2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="338" src="http://2.bp.blogspot.com/-BxQQi1tWZ5Q/TkUz6SbqrKI/AAAAAAAAAGY/bTsohjx0EwI/s400/foreachloop2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;Edit the "Script Task" ,I'm using VB.net language here.&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ALAXluO1SHM/TkU0rpHQB6I/AAAAAAAAAGc/N0_bCpfnQuw/s1600/script0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="338" src="http://2.bp.blogspot.com/-ALAXluO1SHM/TkU0rpHQB6I/AAAAAAAAAGc/N0_bCpfnQuw/s400/script0.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;blockquote&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports System.IO.File&lt;br /&gt;Imports System.IO.FileInfo&lt;br /&gt;&amp;lt;System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")&amp;gt; _&lt;br /&gt;&amp;lt;System.CLSCompliantAttribute(False)&amp;gt; _&lt;br /&gt;Partial Public Class ScriptMain&lt;br /&gt;&amp;nbsp;Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase&lt;br /&gt;&amp;nbsp;Enum ScriptResults&lt;br /&gt;&amp;nbsp;&amp;nbsp;Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Enum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub Main()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'opening the Variables for write and read for some of them&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Vars As Variables = Nothing&amp;nbsp; 'var dispenser&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForRead("User::FilePath")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForWrite("User::FileSize")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForWrite("User::FileCreationDate")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForWrite("User::FileLastAccessedDate")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForWrite("User::FileLastModifiedDate")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.LockForWrite("User::FileAge")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.VariableDispenser.GetVariables(Vars)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim f As IO.FileInfo = New System.IO.FileInfo(CStr(Vars("User::FilePath").Value.ToString))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fileSize As Double = f.Length&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fileDate As Date = f.CreationTime&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fileLastAccess As Date = f.LastAccessTime&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fileLastMod As Date = f.LastWriteTime&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vars("FileSize").Value = fileSize / 1024&amp;nbsp;&amp;nbsp; 'get file size&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vars("FileCreationDate").Value = fileDate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vars("FileLastAccessedDate").Value = fileLastAccess&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vars("FileLastModifiedDate").Value = fileLastMod&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vars("FileAge").Value = CInt(DateDiff(DateInterval.Minute, fileDate, Now()))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'only for testing to visualize the results, comment out&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox("File Name: " &amp;amp; f.FullName &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "File Size: " &amp;amp; Vars("FileSize").Value.ToString &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "File Date: " &amp;amp; Vars("FileCreationDate").Value.ToString &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "File Age: " &amp;amp; Vars("FileAge").Value.ToString)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = ScriptResults.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;/blockquote&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;That's it....&lt;/div&gt;&lt;div style="text-align: left;"&gt;Test it and you'll get results like that..&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-qu1l6k-zAd0/TkU1ZM3K0II/AAAAAAAAAGk/cQZ3mcG_4T0/s1600/result.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://3.bp.blogspot.com/-qu1l6k-zAd0/TkU1ZM3K0II/AAAAAAAAAGk/cQZ3mcG_4T0/s400/result.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-jIu-VuzQPu8/TkU3tAvkxVI/AAAAAAAAAGo/OCEODASy0fg/s1600/constraint.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="298" src="http://4.bp.blogspot.com/-jIu-VuzQPu8/TkU3tAvkxVI/AAAAAAAAAGo/OCEODASy0fg/s400/constraint.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Now use a&amp;nbsp; precedence constraint&amp;nbsp;to check the file's age and process the less than 60 minutes.&lt;br /&gt;&lt;br /&gt;The package could be downloaded from: &lt;a href="http://www.box.net/shared/dgyb5z79bgdgdp9pkpi3"&gt;http://www.box.net/shared/dgyb5z79bgdgdp9pkpi3&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Hope that helps someone...&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1612457555453635226?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1612457555453635226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/08/ssis-process-files-that-has-been.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1612457555453635226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1612457555453635226'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/08/ssis-process-files-that-has-been.html' title='SSIS Process files that has been downloaded in the last hour'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-e_JPMW30z44/TkUzLectXeI/AAAAAAAAAGM/ArvBB64mbwU/s72-c/vars.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-8983119062071189637</id><published>2011-08-03T11:13:00.000-04:00</published><updated>2012-01-21T11:14:20.505-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>SSRS Data-driven subscription E-mail is not an option</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Like the title is saying, when you attempt to create a &lt;strong&gt;data-driven subscription&lt;/strong&gt; in SSRS, E-mail is not one of the listed options.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-tRTnBVQjXgQ/Txrjk-q_KjI/AAAAAAAAAMA/5-_3HIiXz3A/s1600/DDS+Email.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="323" src="http://3.bp.blogspot.com/-tRTnBVQjXgQ/Txrjk-q_KjI/AAAAAAAAAMA/5-_3HIiXz3A/s640/DDS+Email.jpg" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;That means you've not configured a SMTP server yet ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Start -&amp;gt; All Program -&amp;gt; Microsoft SQL Server 2008 / R2 -&amp;gt; Configuration Tools -&amp;gt; Reporting Service Configuration Manager&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-_0W3cP-U5pQ/Txrj3tP8HmI/AAAAAAAAAMI/fL1t5tA8Woo/s1600/SMTP.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="486" src="http://3.bp.blogspot.com/-_0W3cP-U5pQ/Txrj3tP8HmI/AAAAAAAAAMI/fL1t5tA8Woo/s640/SMTP.jpg" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Than the option will be Appear.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-3FEdHw0GemA/TxrkCkCN6JI/AAAAAAAAAMQ/xFPERKdFchk/s1600/DDS+Email+After.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="426" src="http://2.bp.blogspot.com/-3FEdHw0GemA/TxrkCkCN6JI/AAAAAAAAAMQ/xFPERKdFchk/s640/DDS+Email+After.jpg" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope that helps.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-8983119062071189637?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/8983119062071189637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/08/ssrs-data-driven-subscription-e-mail-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8983119062071189637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8983119062071189637'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/08/ssrs-data-driven-subscription-e-mail-is.html' title='SSRS Data-driven subscription E-mail is not an option'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-tRTnBVQjXgQ/Txrjk-q_KjI/AAAAAAAAAMA/5-_3HIiXz3A/s72-c/DDS+Email.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2712968090526264036</id><published>2011-08-01T19:52:00.003-04:00</published><updated>2011-08-01T19:58:32.905-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>Recent Horrible story with my toshiba Laptop!!!</title><content type='html'>Recently I&amp;nbsp;bought a Toshiba laptop from best buy and that was my biggest mistake,&amp;nbsp;everybody warned me&amp;nbsp;from Toshiba but I didn't listen....&amp;nbsp; the hard drive crashed after 3 months and it was a nightmare over the phone with them for hours so they can understand what I'm trying to say !!!!!&lt;br /&gt;&lt;br /&gt;and the guy over the phone kept asking "did you pack your&amp;nbsp;data before shipping the laptop" and he's processing a repair for a&amp;nbsp;crashed hard drive...&lt;br /&gt;&lt;br /&gt;Also to mention that you'll have to pay $25 so they can provide you with a UPS box and pre-paid shipping label.&lt;br /&gt;&lt;br /&gt;The whole process took 2 weeks to call, send and receive.....&lt;br /&gt;&lt;br /&gt;The bottom line that they're cheap company that doesn't stand by their product and by their customers, they dont' care about the customer to leave them without a laptop for 3 weeks!!&lt;br /&gt;&lt;br /&gt;and you pay to get your stuff fixed while it's still under the warranty !!&lt;br /&gt;&lt;br /&gt;That's only my personal experience and I'm sharing it for knowledge....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2712968090526264036?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2712968090526264036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/08/recent-horrible-story-with-my-toshiba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2712968090526264036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2712968090526264036'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/08/recent-horrible-story-with-my-toshiba.html' title='Recent Horrible story with my toshiba Laptop!!!'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1937442203671076824</id><published>2011-07-20T13:33:00.001-04:00</published><updated>2011-12-02T08:18:49.338-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SSIS Performance considerations</title><content type='html'>Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternative technique you could gain much more performance out of your SSIS flow.&lt;br /&gt;&lt;br /&gt;The recommendations and suggestions below represents real life experience and excerpts from the Microsoft Technet article : &lt;a href="http://technet.microsoft.com/en-us/library/cc966529.aspx" target="_blank"&gt;&lt;span style="color: #777777;"&gt;http://technet.microsoft.c&lt;wbr&gt;&lt;/wbr&gt;om/en-us/l&lt;wbr&gt;&lt;/wbr&gt;ibrary/cc9&lt;wbr&gt;&lt;/wbr&gt;66529.aspx&lt;wbr&gt;&lt;/wbr&gt;&lt;/span&gt;&lt;/a&gt; along with influence from the other links referred to at the bottom of this Article. While this Article presents a summary and major points to focus on from those resources, you are encouraged to follow the links for more specific and in depth discussion.&lt;br /&gt;&lt;br /&gt;SSIS (SQL SERVER INTEGRATION SERVICES) is using a buffer-oriented architecture to efficiently load and manipulate datasets in memory, the benefits is avoiding the I/O to the disk and physically copying the data to the disk, and therefore it’s transferring the data from the source to the destination through the pipeline without touching the disk.&lt;br /&gt;&lt;br /&gt;As this data flows through the pipeline, SSIS attempts to reuse data from prior buffers as much as possible when additional operations are performed. How buffers are used and reused depend on the type of transformations that you use in a pipeline.&lt;br /&gt;&lt;br /&gt;There’re 3 types of transformations types:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1-Row Transformation (synchronous transformation) also known as (Non-blocking transformations):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;These process the data in Row-by-row basis, Row transformations have the advantage of reusing existing buffers and do not require data to be copied to a new buffer to complete the transformation.&lt;br /&gt;&lt;br /&gt;• Do not block data flow in the pipeline.&lt;br /&gt;• Data is not copied around, only pointers.&lt;br /&gt;&lt;br /&gt;Examples:&lt;br /&gt;&lt;br /&gt;•      Audit   &lt;br /&gt;•      Cache Transform&lt;br /&gt;•      Character Map&lt;br /&gt;•      Conditional Split&lt;br /&gt;•      Copy Column&lt;br /&gt;•      Data Conversion&lt;br /&gt;•      Derived Column&lt;br /&gt;•      Export Column&lt;br /&gt;•      Import Column&lt;br /&gt;•      Lookup&lt;br /&gt;•      Multicast&lt;br /&gt;•      OLE DB Command&lt;br /&gt;•      Percentage Sampling&lt;br /&gt;•      Script Component&lt;br /&gt;•      Slowly Changing Dimension&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2-Partially Blocking Transformation (asynchronous transformation):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Are often used to combine several datasets. They tend to have multiple data inputs. As a result, their output may have the same, greater, or fewer records than the total number of input records.&lt;br /&gt;&lt;br /&gt;• Introduces new buffers in memory layout.&lt;br /&gt;• Transformed data is copied into new buffers.&lt;br /&gt;&lt;br /&gt;Examples: &lt;br /&gt;&lt;br /&gt;•  Data Mining &lt;br /&gt;•  Merge &lt;br /&gt;•  Merge Join &lt;br /&gt;•  Pivot &lt;br /&gt;•  Unpivot &lt;br /&gt;•  Term Lookup&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3-Blocking Transformation (asynchronous transformation):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Blocking transformations must read and process all input records before creating any output records. Of all of the transformation types, these transformations perform the most work and can have the greatest impact on available resources.&lt;br /&gt;&lt;br /&gt;• Must see all data before passing on rows.&lt;br /&gt;• Blocks the data flow – can be heavy on memory &lt;br /&gt;• May also use “private buffers” to assist with transforming data.&lt;br /&gt;&lt;br /&gt;Examples: &lt;br /&gt;&lt;br /&gt;•  Aggregate &lt;br /&gt;•  Fuzzy grouping &lt;br /&gt;•  Fuzzy lookup &lt;br /&gt;•  Row Sampling &lt;br /&gt;•  Sort &lt;br /&gt;•  Term Extraction&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Evaluating the performance:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1-You could monitor and observe the performance using the&lt;b&gt; PROGRESS&lt;/b&gt; tab, while running the package, it’ll tell you when the task started, ended and how long it’s taking to finish, which would be a great way of discovering which tasks is pulling the performance down.&lt;br /&gt;&lt;br /&gt;&lt;div class="s snhFFFF expNoHeader postableAttach"&gt;&lt;table class="h"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="l"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="r"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl"&gt;&lt;div class="br"&gt;&lt;div class="bbg"&gt;&lt;div class="empty"&gt;&lt;/div&gt;&lt;div class="bc"&gt;&lt;div class="attachment"&gt;&lt;div class="fileInfo"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/07_w30/480491/progressTab.png" rel="noindex nofollow" target="_blank" title="No Viruses Detected"&gt;&lt;span style="color: #777777;"&gt;progressTab.png&lt;/span&gt;&lt;/a&gt; &lt;span class="fileSize"&gt;&lt;span style="font-size: xx-small;"&gt;(42 KB) &lt;/span&gt;&lt;/span&gt;&lt;a class="attachmentDetails" href="javascript:void(0);"&gt;&lt;span style="color: #777777;"&gt;(File Type Details)&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;&lt;div class="description"&gt;Progress Tab&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/07_w30/480491/progressTab.png" rel="noindex nofollow" target="_blank"&gt;&lt;img alt="Progress Tab" src="http://filedb.experts-exchange.com/incoming/2011/07_w30/art480491/progressTab.png" style="height: 314px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="l"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="r"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2-You could also use a free add-on for BIDS (Business Intelligence Development Studio) called &lt;b&gt;BIDS HELPER&lt;/b&gt;, can be downloaded from &lt;a href="http://bidshelper.codeplex.com/" target="_blank"&gt;&lt;span style="color: #777777;"&gt;http://bidshelper.codeple&lt;wbr&gt;&lt;/wbr&gt;x.com/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It offers whole new features for the BIDS environment which would help you such as deploying your packages, dtsConfig file formatting and SSIS performance Visualization which I’ll cover now.&lt;br /&gt;&lt;br /&gt;Using the SSIS performance Visualization is simple, you just right click on your package after installing the BIDS HELPER and you’ll have new options, you need to select “Execute and Visualize Performance”.&lt;br /&gt;&lt;br /&gt;&lt;div class="s snhFFFF expNoHeader postableAttach"&gt;&lt;table class="h"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="l"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="r"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl"&gt;&lt;div class="br"&gt;&lt;div class="bbg"&gt;&lt;div class="empty"&gt;&lt;/div&gt;&lt;div class="bc"&gt;&lt;div class="attachment"&gt;&lt;div class="fileInfo"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/07_w30/480492/bidsw.png" rel="noindex nofollow" target="_blank" title="No Viruses Detected"&gt;&lt;span style="color: #777777;"&gt;bidsw.png&lt;/span&gt;&lt;/a&gt; &lt;span class="fileSize"&gt;&lt;span style="font-size: xx-small;"&gt;(30 KB) &lt;/span&gt;&lt;/span&gt;&lt;a class="attachmentDetails" href="javascript:void(0);"&gt;&lt;span style="color: #777777;"&gt;(File Type Details)&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;&lt;div class="description"&gt;Bids Helper&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/07_w30/480492/bidsw.png" rel="noindex nofollow" target="_blank"&gt;&lt;img alt="Bids Helper" src="http://filedb.experts-exchange.com/incoming/2011/07_w30/art480492/bidsw.png" style="height: 495px; width: 343px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="l"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="r"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You’ll be introduced to another screen with Performance Tabs, and you choose to visualize the performance by looking at Gantt Bars, Statistics Grid or Statistics Trend, which compares the performance from one execution to another. It adds a new column for each execution and highlights whether the duration of that piece of the package was faster or slower than before.&lt;br /&gt;&lt;br /&gt;&lt;div class="s snhFFFF expNoHeader postableAttach"&gt;&lt;table class="h"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="l"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="r"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl"&gt;&lt;div class="br"&gt;&lt;div class="bbg"&gt;&lt;div class="empty"&gt;&lt;/div&gt;&lt;div class="bc"&gt;&lt;div class="attachment"&gt;&lt;div class="fileInfo"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/07_w30/480493/SSISPerformanceTrendGrid.png" rel="noindex nofollow" target="_blank" title="No Viruses Detected"&gt;&lt;span style="color: #777777;"&gt;SSISPerformanceTrendGrid.png&lt;/span&gt;&lt;/a&gt; &lt;span class="fileSize"&gt;&lt;span style="font-size: xx-small;"&gt;(16 KB) &lt;/span&gt;&lt;/span&gt;&lt;a class="attachmentDetails" href="javascript:void(0);"&gt;&lt;span style="color: #777777;"&gt;(File Type Details)&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;&lt;div class="description"&gt;Performance Trend&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/07_w30/480493/SSISPerformanceTrendGrid.png" rel="noindex nofollow" target="_blank"&gt;&lt;img alt="Performance Trend" src="http://filedb.experts-exchange.com/incoming/2011/07_w30/art480493/SSISPerformanceTrendGrid.png" style="height: 278px; width: 506px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="l"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td class="r"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3-Using &lt;b&gt;Perfmon&lt;/b&gt; (formerly known as Windows Performance Monitor and synonymously referred to as Perfmon)&lt;br /&gt;&lt;br /&gt;There're several counters to monitor SSIS performance, such :&lt;br /&gt;&lt;br /&gt;SQLServer:SSIS Service:&lt;br /&gt;&lt;br /&gt;SSIS Package Instances - Total number of simultaneous SSIS Packages running&lt;br /&gt;&lt;br /&gt;SQLServer:SSIS Pipeline:&lt;br /&gt;&lt;br /&gt;BLOB bytes read - Total bytes read from binary large objects during the monitoring period.&lt;br /&gt;BLOB bytes written - Total bytes written to binary large objects during the monitoring period.&lt;br /&gt;BLOB files in use - Number of binary large objects files used during the data flow task during the monitoring period.&lt;br /&gt;Buffer memory - The amount of physical or virtual memory used by the data flow task during the monitoring period.&lt;br /&gt;Buffers in use - The number of buffers in use during the data flow task during the monitoring period.&lt;br /&gt;Buffers spooled - The number of buffers written to disk during the data flow task during the monitoring period.&lt;br /&gt;Flat buffer memory - The total number of blocks of memory in use by the data flow task during the monitoring period.&lt;br /&gt;Flat buffers in use - The number of blocks of memory in use by the data flow task at a point in time.&lt;br /&gt;Private buffer memory - The total amount of physical or virtual memory used by data transformation tasks in the data flow engine during the monitoring period.&lt;br /&gt;Private buffers in use - The number of blocks of memory in use by the transformations in the data flow task at a point in time.&lt;br /&gt;Rows read - Total number of input rows in use by the data flow task at a point in time.&lt;br /&gt;Rows written - Total number of output rows in use by the data flow task at a point in time.&lt;br /&gt;&lt;br /&gt;But basically you need to monitor the 3 famous kinds of memory buffers:&lt;br /&gt;&lt;br /&gt;"Buffers"&lt;br /&gt;"Private Buffers"&lt;br /&gt;"Flat Buffers"&lt;br /&gt;&lt;br /&gt;&lt;a href="http://consultingblogs.emc.com/jamiethomson/archive/2005/06/09/SSIS_3A00_-Some-PerfMon-information.aspx" target="_blank"&gt;&lt;span style="color: #777777;"&gt;Read More....&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Evaluating Design and performance considerations:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;As I always say, everything is life could be done in many different ways; it’s just YOU who needs to decide which approach is better for you as it really depends on your environment and business requirements. &lt;br /&gt;&lt;br /&gt; I’m going to point some points that you’ll need to do more research and also included some links so you can look it up in more depth.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;1-Remember is that synchronous components reuse buffers and therefore are generally faster than asynchronous components, that needs a new buffer.&lt;br /&gt;&lt;br /&gt;2-Break complex ETL tasks into logically distinct smaller packages. &lt;a href="http://sqlblog.com/blogs/jamie_thomson/archive/2011/01/12/investigation-can-different-combinations-of-components-effect-dataflow-performance.aspx" target="_blank"&gt;&lt;span style="color: #777777;"&gt;More...&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3-Maximize Parallelism. Utilizes the available resources as much as you can. &lt;a href="http://bidn.com/blogs/MikeDavis/ssis/173/ssis-parallel-vs-series-data-flows" target="_blank"&gt;&lt;span style="color: #777777;"&gt;More ...&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4-Maximum insert commit size and Rows per batch has a great effect for not treating the whole incoming rows as one patch.&lt;br /&gt;&lt;br /&gt;5-Minimize staging as possible otherwise use RawFiles. &lt;a href="http://www.jasonstrate.com/2011/01/31-days-of-ssis-raw-files-are-awesome-131/" target="_blank"&gt;&lt;span style="color: #777777;"&gt;More ...&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;6- Eliminate redundant columns:&lt;br /&gt;&lt;br /&gt;•      Use SELECT statements as opposed to selecting the tables dropdown.&lt;br /&gt;•      Be Picky! Select only what columns you need VS SELECT *&lt;br /&gt;&lt;br /&gt;7-Minimize blocking as much as you can:&lt;br /&gt;&lt;br /&gt;•      Sort your query in the engine, or even using the SQL command in OLE DB Source instead of using Sort transformation.&lt;br /&gt;•      Merge transform requires Sort but not Union All, so use Union All wherever you can. &lt;a href="http://www.jasonstrate.com/2011/01/31-days-of-ssis-merge-join-is-my-friend-831/" target="_blank"&gt;&lt;span style="color: #777777;"&gt;More ...&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;8- Optimize the BufferTempStoragePath and BLOBTempStoragePath wisely. &lt;a href="http://www.mssqltips.com/tip.asp?tip=1867" target="_blank"&gt;&lt;span style="color: #777777;"&gt;More ...&lt;/span&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;9-For Flat File Source use FAST PARSE option for columns of integer and date data types. &lt;a href="http://msdn.microsoft.com/en-us/library/ms139833.aspx" target="_blank"&gt;&lt;span style="color: #777777;"&gt;More ...&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;10- If the SQL server is local, consider using SQL Server destination instead of OLE DB Destination.&lt;br /&gt;&lt;br /&gt;11-Consider indexes fragmentation and performance when inserting high volume of data.&lt;br /&gt;&lt;br /&gt;12-Use “Fast Load” when using OLEDB, it uses BULK INSERT and would be faster.&lt;br /&gt;&lt;br /&gt;13-Optimize the packet size in your connection managers to 32K (32767) and that’s the fastest option.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;More resources on the subject:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://%20http//sqlcat.com/top10lists/archive/2008/10/01/top-10-sql-server-integration-services-best-practices.aspx" target="_blank"&gt;&lt;span style="color: #777777;"&gt;Top 10 SQL Server Integration Services Best Practices&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlcat.com/presentations/archive/2009/05/02/designing-and-tuning-for-performance-your-ssis-packages-in-the-enterprise-sql-video-series.aspx" target="_blank"&gt;&lt;span style="color: #777777;"&gt;Designing and Tuning for Performance your SSIS packages in the Enterprise (SQL Video Series)&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc966529.aspx" target="_blank"&gt;&lt;span style="color: #777777;"&gt;Integration Services: Performance Tuning Techniques&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;That's it&lt;/b&gt;...I hope my article helps someone gaining more performance from their ETL solution, and feel free to add more performance considerations&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1937442203671076824?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1937442203671076824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/07/ssis-performance-considerations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1937442203671076824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1937442203671076824'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/07/ssis-performance-considerations.html' title='SSIS Performance considerations'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-4884905460873590559</id><published>2011-07-19T08:38:00.000-04:00</published><updated>2011-07-19T08:38:45.862-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>Last Day of the Month SSRS Expression....</title><content type='html'>A question came on one of the fourms about how to get the last day of the month using months as intgers, the person has 1,2,3....etc in his column and need to convert that to month and get the display only the last day of the month in the MM/DD/YYYY format....&lt;br /&gt;&lt;br /&gt;Use that for January (1)&lt;br /&gt;&lt;blockquote&gt;=Left(DateSerial(Year(Now()), 1, "1").AddMonths(1).AddDays(-1) , 10)&lt;br /&gt;&lt;/blockquote&gt;Use that for February (2)&lt;br /&gt;&lt;blockquote&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;=Left(DateSerial(Year(Now()), 2, "1").AddMonths(1).AddDays(-1) , 10)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;Hope that helps...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-4884905460873590559?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/4884905460873590559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/07/last-day-of-month-ssrs-expression.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4884905460873590559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4884905460873590559'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/07/last-day-of-month-ssrs-expression.html' title='Last Day of the Month SSRS Expression....'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-7847907682091120208</id><published>2011-07-15T11:29:00.001-04:00</published><updated>2011-07-15T12:50:05.816-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Derived Column to convert string to DB Date.</title><content type='html'>I have&amp;nbsp;a date field in string format "0MMDDYY" and some value has "0000000".&lt;br /&gt;I need to convert the string&amp;nbsp; to normal db date and also replace "0000000" with NULL.&lt;br /&gt;&lt;br /&gt;I'm using a derived column, and assuming that the column name is [Column].&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[Column] == "0000000" ? "NULL" : (DT_WSTR,2)20 + (DT_WSTR,2)RIGHT([Column],2) + "-" + (DT_WSTR,2)SUBSTRING([Column],2,2) + "-" + (DT_WSTR,2)SUBSTRING([Column],4,2)&lt;/blockquote&gt;&lt;br /&gt;and if it&amp;nbsp;was an&amp;nbsp;INT field....&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;[Column] == (DT_WSTR,7)0000000 ? "NULL" : (DT_WSTR,2)20 + (DT_WSTR,2)RIGHT([Column],2) + "-" + (DT_WSTR,2)SUBSTRING([Column],2,2) + "-" + (DT_WSTR,2)SUBSTRING([Column],4,2)&lt;/blockquote&gt;&lt;br /&gt;That's assuming that your dates are in the year 2000 and above...&lt;br /&gt;&lt;br /&gt;What if the String has a date such "0110540"&lt;br /&gt;&lt;br /&gt;The above code will give you 2040-11-05&lt;br /&gt;&lt;br /&gt;so we'll have to check and fix the year to 1940&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;@[User::Column] == "0000000" ? "NULL"&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; (&amp;nbsp;&amp;nbsp; (DT_I4)(DT_WSTR,2) RIGHT(@[User::Column],2)&amp;nbsp; &amp;lt;= 11&amp;nbsp; ? ((DT_WSTR,2)20 + (DT_WSTR,2)RIGHT(@[User::Column],2) + "-" + (DT_WSTR,2)SUBSTRING(@[User::Column],2,2) + "-" + (DT_WSTR,2)SUBSTRING(@[User::Column],4,2)&amp;nbsp;&amp;nbsp; )&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; ( (DT_WSTR,2)19 + (DT_WSTR,2)RIGHT(@[User::Column],2) + "-" + (DT_WSTR,2)SUBSTRING(@[User::Column],2,2) + "-" + (DT_WSTR,2)SUBSTRING(@[User::Column],4,2)&amp;nbsp; ))&lt;br /&gt;&lt;/blockquote&gt;That's the only way since we have only 2 digits for the year, plus i'm calculating patient's age, so I don't think any of them&amp;nbsp;over 100 years old !&lt;br /&gt;&lt;br /&gt;I'm open to discussion if you have a better way of doing it..&lt;br /&gt;&lt;br /&gt;Hope that helps..&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-7847907682091120208?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/7847907682091120208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/07/derived-column-to-convert-string-to-db.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7847907682091120208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/7847907682091120208'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/07/derived-column-to-convert-string-to-db.html' title='Derived Column to convert string to DB Date.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-8603836642761402499</id><published>2011-07-10T15:04:00.005-04:00</published><updated>2011-07-10T15:04:00.905-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SSIS  "MM/DD/YYYY" Format expression.</title><content type='html'>&lt;code&gt;(DT_DBTIMESTAMP)(SUBSTRING([date string], 7, 4) + "-" SUBSTRING([date string], 1, 2) + "-" + SUBSTRING([date string], 4, 2))&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-8603836642761402499?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/8603836642761402499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/07/ssis-mmddyyyy-format-expression.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8603836642761402499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8603836642761402499'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/07/ssis-mmddyyyy-format-expression.html' title='SSIS  &quot;MM/DD/YYYY&quot; Format expression.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-1942296020461146942</id><published>2011-07-08T14:46:00.002-04:00</published><updated>2011-07-19T09:15:01.896-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>FTP files list to text file using SSIS.</title><content type='html'>I got a requirment to dump all the FTP file listing for all folders and subfolders to a text file.&lt;br /&gt;I'm using here a free FTP server which you could use too&lt;br /&gt;&lt;a href="ftp://ftp.secureftp-test.com/"&gt;ftp://ftp.secureftp-test.com/&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User:"test"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Password: "test")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;what SSIS FTP Task&amp;nbsp;can you do nativly?&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-trusGekn8f4/ThNckiDMF6I/AAAAAAAAAFg/F1zFb4UjY_Y/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-trusGekn8f4/ThNckiDMF6I/AAAAAAAAAFg/F1zFb4UjY_Y/s1600/1.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Psa6jHPnI-M/ThNclXVXeOI/AAAAAAAAAFk/2PsSwXUQxUo/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="272" src="http://4.bp.blogspot.com/-Psa6jHPnI-M/ThNclXVXeOI/AAAAAAAAAFk/2PsSwXUQxUo/s320/2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The FTP Task, supports, sending, receiving, deleting folders and directories, but doesn’t support watching for a specific files or getting a list of the FTP directory listing.&lt;br /&gt;&lt;br /&gt;Get list of files and folders to a text file.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-YQmt_T2MvoI/ThNcnEc7CYI/AAAAAAAAAFs/GbVTWEq6pa0/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;A.Drag a script task&amp;nbsp; &lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-YQmt_T2MvoI/ThNcnEc7CYI/AAAAAAAAAFs/GbVTWEq6pa0/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-YQmt_T2MvoI/ThNcnEc7CYI/AAAAAAAAAFs/GbVTWEq6pa0/s1600/4.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="left" style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;B.&amp;nbsp;Select “Microsoft Visual Basic 2008” as the scripting language, then click “Edit Script” &lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-q72lFSCFvzI/ThNcnWPYuAI/AAAAAAAAAFw/OXOozDNX_YM/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="264" src="http://3.bp.blogspot.com/-q72lFSCFvzI/ThNcnWPYuAI/AAAAAAAAAFw/OXOozDNX_YM/s320/5.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;C.&amp;nbsp;Add the&amp;nbsp;following script&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;code&gt;&lt;/code&gt;&lt;/div&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;And the result will be at D:\FTPList.txt&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-DGoLTrwPaWs/ThNfQAI59YI/AAAAAAAAAF8/DNISv85VTw0/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-DGoLTrwPaWs/ThNfQAI59YI/AAAAAAAAAF8/DNISv85VTw0/s320/6.png" width="165" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;﻿&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div align="left" style="text-align: center;"&gt;&lt;/div&gt;&lt;div align="left" style="text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Hope that helps!!&lt;br /&gt;&lt;br /&gt;Download the package from &lt;a href="http://www.box.net/shared/77tqeitp99czj6feefxv"&gt;http://www.box.net/shared/77tqeitp99czj6feefxv&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Imports System&lt;/div&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports System.Collections.Generic&lt;br /&gt;Imports System.Text&lt;br /&gt;Imports System.Net&lt;br /&gt;Imports System.IO&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;lt;System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")&amp;gt; _&lt;/div&gt;&amp;lt;System.CLSCompliantAttribute(False)&amp;gt; _&lt;br /&gt;Partial Public Class ScriptMain&lt;br /&gt;&amp;nbsp;Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;Enum ScriptResults&lt;/div&gt;&amp;nbsp;&amp;nbsp;Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure&lt;br /&gt;&amp;nbsp;End Enum&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub Main()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FilePath As String = "D:\FTPList.txt"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'save to location - You can use a variable here.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'delete if file exists, Comment out if you need to append to the existing TXT file&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If File.Exists(FilePath) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File.Delete(FilePath)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Create the connection to the ftp server&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cm As ConnectionManager = Dts.Connections.Add("FTP")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Folders As String()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Files As String()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FileName As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Folder As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Dir As String&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Set the properties like username &amp;amp; password&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cm.Properties("ServerName").SetValue(cm, "&lt;a href="ftp://ftp.secureftp-test.com/"&gt;ftp://ftp.secureftp-test.com/&lt;/a&gt;")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Server address&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cm.Properties("ServerUserName").SetValue(cm, "test")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'user name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cm.Properties("ServerPassword").SetValue(cm, "test")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'password&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ftp As FtpClientConnection = New FtpClientConnection(cm.AcquireConnection(Nothing))&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Connects to the root of the ftp server, &lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dir = "/"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'root directory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="ftp://ftp.connect/"&gt;ftp://ftp.connect/&lt;/a&gt;()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="ftp://ftp.setworkingdirectory(dir/"&gt;ftp://ftp.setworkingdirectory(dir/&lt;/a&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="ftp://ftp.getlisting(folders/"&gt;ftp://ftp.getlisting(folders/&lt;/a&gt;, Files)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SW As System.IO.StreamWriter&amp;nbsp; 'Writer to write to the file&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW = System.IO.File.AppendText(FilePath)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Write date time header (getting fancy)&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.WriteLine(Now().ToString + vbCrLf + vbCrLf + vbCrLf)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'write root file list&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.WriteLine("Folder : " + Dir + vbCrLf + "----------------------" + vbCrLf)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Files Is Nothing Then&amp;nbsp; 'checking for no files&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each FileName In Files&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.WriteLine(FileName)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.WriteLine(vbCrLf)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'write other folders and their files' list&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Folders Is Nothing Then 'checking for no other folders&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each Folder In Folders&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.WriteLine("Folder : " + Folder + vbCrLf + "----------------------" + vbCrLf)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dir = "/" + Folder&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="ftp://ftp.setworkingdirectory(dir/"&gt;ftp://ftp.setworkingdirectory(dir/&lt;/a&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="ftp://ftp.getlisting(folders/"&gt;ftp://ftp.getlisting(folders/&lt;/a&gt;, Files)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Files Is Nothing Then 'checking for no files&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each FileName In Files&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.WriteLine(FileName)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.WriteLine(vbCrLf)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Close ftp connection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="ftp://ftp.close/"&gt;ftp://ftp.close/&lt;/a&gt;()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Close writer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SW.Close()&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception 'Catch errors, make up your own error as you can see.&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.Events.FireError(911, "", "Errrrrrrrrrrrrrrrrrror, something bad happened!!!", "", -1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = ScriptResults.Failure 'reprot failure&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = ScriptResults.Success 'report success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-1942296020461146942?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/1942296020461146942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/07/ftp-files-list-to-text-file-using-ssis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1942296020461146942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/1942296020461146942'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/07/ftp-files-list-to-text-file-using-ssis.html' title='FTP files list to text file using SSIS.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-trusGekn8f4/ThNckiDMF6I/AAAAAAAAAFg/F1zFb4UjY_Y/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2954024843973315303</id><published>2011-07-06T09:05:00.000-04:00</published><updated>2011-07-06T09:05:10.138-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL'/><title type='text'>SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Complete Downloadable List</title><content type='html'>Pinal Dave has a&amp;nbsp;huge list of qestions for the DBA interview questions.&lt;br /&gt;&lt;a href="http://blog.sqlauthority.com/2011/07/01/sql-server-interview-questions-and-answers-frequently-asked-questions-complete-downloadable-list-day-0-of-31/"&gt;http://blog.sqlauthority.com/2011/07/01/sql-server-interview-questions-and-answers-frequently-asked-questions-complete-downloadable-list-day-0-of-31/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2954024843973315303?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2954024843973315303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/07/sql-server-interview-questions-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2954024843973315303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2954024843973315303'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/07/sql-server-interview-questions-and.html' title='SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Complete Downloadable List'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-5352597758500088406</id><published>2011-07-05T14:42:00.000-04:00</published><updated>2011-07-05T14:42:57.100-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Failure is not my option..  Control SSIS flow success or failure options..</title><content type='html'>How to control the success and failure of the package and execute it successfully?&amp;nbsp; Sometimes the requirement is to continue the execution even if an error has raised, might be a package that has nondependent tasks.&lt;br /&gt;&lt;br /&gt;There are 3 ways to do that…&lt;br /&gt;&lt;br /&gt;1-&amp;nbsp;Setting up ‘MaximumErrorCount’ property of the container as ‘0’ instead of the default ‘1’.&lt;br /&gt;2-&amp;nbsp;Setting up ‘ForceExecutionResult’ property to ‘success’ for the task properties instead of the default ‘None’.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-4PsoBrJx2ZM/ThNa-tatssI/AAAAAAAAAFY/nAY9Oo6NtLI/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-4PsoBrJx2ZM/ThNa-tatssI/AAAAAAAAAFY/nAY9Oo6NtLI/s320/1.png" width="254" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;br /&gt;3-&amp;nbsp;In tasks sequence, we can set ‘On Completion’ precedence constraint instead of ‘Success’.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-QKR-N9wJps0/ThNbDnwJR8I/AAAAAAAAAFc/eS3IBECqVcw/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="174" src="http://2.bp.blogspot.com/-QKR-N9wJps0/ThNbDnwJR8I/AAAAAAAAAFc/eS3IBECqVcw/s320/2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Hope that helps.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-5352597758500088406?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/5352597758500088406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/07/failure-is-not-my-option-control-ssis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5352597758500088406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/5352597758500088406'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/07/failure-is-not-my-option-control-ssis.html' title='Failure is not my option..  Control SSIS flow success or failure options..'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-4PsoBrJx2ZM/ThNa-tatssI/AAAAAAAAAFY/nAY9Oo6NtLI/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-4824222173004393781</id><published>2011-06-30T13:43:00.000-04:00</published><updated>2011-06-30T13:43:07.845-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><category scheme='http://www.blogger.com/atom/ns#' term='Sybase'/><title type='text'>SSIS to Sybase OLEDB connection error [IM002]. [Native Code: 30136]</title><content type='html'>&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;Hi, I was getting that nasty error message, although you could test the OLEDB connection from the Sybase “data source configuration” and gets a success notification!!&lt;br /&gt;[IM002]&lt;br /&gt;[Native Code: 30136]&lt;br /&gt;[ASEOLEDB]Data source not found and no default driver specified&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: inherit; text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://1.bp.blogspot.com/-Ec9s-nDT84c/Tgy0fHe3dkI/AAAAAAAAAFE/9koW2YC5FoI/s1600/sybase+error2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="274" src="http://1.bp.blogspot.com/-Ec9s-nDT84c/Tgy0fHe3dkI/AAAAAAAAAFE/9koW2YC5FoI/s320/sybase+error2.png" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;I also made sure that the OLEDB connection are there and configured well under 32 BIT and 64BIT, and the Sybase “data source configuration”&amp;nbsp; gives a success message when I test them.&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: inherit; text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://2.bp.blogspot.com/-uMoApk7l5kU/Tgy03_pTwlI/AAAAAAAAAFI/cefEUKX6iKw/s1600/sybase+error+1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-uMoApk7l5kU/Tgy03_pTwlI/AAAAAAAAAFI/cefEUKX6iKw/s1600/sybase+error+1.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;So I thought the error is relevant to SSIS and it’s permuissions, not the Sybase, I started investigating the service account that SSIS is running under and if it got access to the C:\Sybase\DataAccess64\OLEDB\DataSources&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: inherit; text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://2.bp.blogspot.com/-kguPssslFrA/Tgy09oeJopI/AAAAAAAAAFM/vcygFUrOztw/s1600/sybase+error+3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="94" src="http://2.bp.blogspot.com/-kguPssslFrA/Tgy09oeJopI/AAAAAAAAAFM/vcygFUrOztw/s320/sybase+error+3.png" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;As Sybase ASE 15.5 was installed on my root drive C:\ and I’m using win &amp;amp; 64 BIT.&lt;br /&gt;I'd the same setup and configuration working on a vista 64 bit, but found other posts online about the driver and it is working well on windows 7.&lt;br /&gt;The full error message is: &lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: inherit; text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://3.bp.blogspot.com/-2119nggMyX8/Tgy1JyPyJ8I/AAAAAAAAAFQ/-iT14m7aqPs/s1600/sybase+error.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="144" src="http://3.bp.blogspot.com/-2119nggMyX8/Tgy1JyPyJ8I/AAAAAAAAAFQ/-iT14m7aqPs/s320/sybase+error.png" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;TITLE: Microsoft Visual Studio&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;Error at LookupMedFrequency [Connection manager "CareCast"]: SSIS Error Code DTS_E_OLEDBERROR.&amp;nbsp; An OLE DB error has occurred. Error code: 0x80040E19.&lt;br /&gt;An OLE DB record is available.&amp;nbsp; Source: "ASEOLEDB"&amp;nbsp; Hresult: 0x80040E19&amp;nbsp; Description: "[IM002]&lt;br /&gt;[Native Code: 30136]&lt;br /&gt;[ASEOLEDB]Data source not found and no default driver specified".&lt;br /&gt;&lt;br /&gt;Error at Data Flow Task [SSISERVisits [5801]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.&amp;nbsp; The AcquireConnection method call to the connection manager "CareCast" failed with error code 0xC0202009.&amp;nbsp; There may be error messages posted before this with more information on why the AcquireConnection method call failed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------&lt;br /&gt;ADDITIONAL INFORMATION:&lt;br /&gt;&lt;br /&gt;Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)&lt;br /&gt;I also couldn’t find much about the error online, all what I found was couple of posts here :&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/ff5e2933-c29b-49b8-868c-cb4dca19b87d"&gt;http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/ff5e2933-c29b-49b8-868c-cb4dca19b87d&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;and here:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/48695cc9-67e7-4ccb-8b5b-f64b7834ddc6"&gt;http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/48695cc9-67e7-4ccb-8b5b-f64b7834ddc6&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;I even opened a new forum post:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/1798b64e-e02a-4234-ac09-5cba38eaae29"&gt;http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/1798b64e-e02a-4234-ac09-5cba38eaae29&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;I found out that the 3 connections that I created was created only under “DataAccess64\OLEDB\DataSources\”&amp;nbsp;&amp;nbsp; and wasn’t created under the “DataAccess\OLEDB\DataSources\”&amp;nbsp;&amp;nbsp;&amp;nbsp; So I just copied the 3 files and the problem solved!!!&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: inherit; text-align: center;"&gt;&lt;span style="font-size: small;"&gt;&lt;a href="http://2.bp.blogspot.com/-01vxRlUllxU/Tgy1fJ465_I/AAAAAAAAAFU/yEKttI5TbAo/s1600/sybase+error+4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="118" src="http://2.bp.blogspot.com/-01vxRlUllxU/Tgy1fJ465_I/AAAAAAAAAFU/yEKttI5TbAo/s320/sybase+error+4.png" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;Hope that helps someone one day ...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-4824222173004393781?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/4824222173004393781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/ssis-to-sybase-oledb-connection-error.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4824222173004393781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4824222173004393781'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/ssis-to-sybase-oledb-connection-error.html' title='SSIS to Sybase OLEDB connection error [IM002]. [Native Code: 30136]'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Ec9s-nDT84c/Tgy0fHe3dkI/AAAAAAAAAFE/9koW2YC5FoI/s72-c/sybase+error2.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-4499242677584797728</id><published>2011-06-26T20:07:00.001-04:00</published><updated>2011-12-02T08:15:47.795-05:00</updated><title type='text'>SSIS....Articles that I refer to....</title><content type='html'>Package Configurations&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc895212.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc895212.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Pass Variables from child to&amp;nbsp;parent back&lt;br /&gt;&lt;a href="http://vsteamsystemcentral.com/cs21/blogs/steve_fibich/archive/2007/09/29/passing-a-value-back-and-forth-from-a-parent-package-to-a-child-package-in-ssis.aspx"&gt;http://vsteamsystemcentral.com/cs21/blogs/steve_fibich/archive/2007/09/29/passing-a-value-back-and-forth-from-a-parent-package-to-a-child-package-in-ssis.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-4499242677584797728?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/4499242677584797728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/ssisarticles-that-i-refer-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4499242677584797728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4499242677584797728'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/ssisarticles-that-i-refer-to.html' title='SSIS....Articles that I refer to....'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2479050287042882267</id><published>2011-06-24T10:05:00.002-04:00</published><updated>2011-07-19T09:14:57.958-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>FTP file and Folders list into a SQL Table</title><content type='html'>Today I came across a requirement to get all the files and folders list from a FTP server, The only way to get that will be through a script task that will loop through the files and get it into a SQL table.&lt;br /&gt;Here's the &lt;a href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/DTS/Q_27111878.html"&gt;question.&lt;/a&gt;&lt;br /&gt;and here's my proposed solution....&lt;br /&gt;&lt;br /&gt;I’ll be using a free test server &lt;span style="color: red;"&gt;ftp.secureftp-test.com&lt;/span&gt; User/Pass:&lt;span style="color: red;"&gt; test &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We'll need to create a table to hold our results:&lt;br /&gt;&lt;br /&gt;CREATE TABLE [dbo].[FTPList](&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ListID] [int] IDENTITY(1,1) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DateTime] [datetime] NOT NULL ,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Folder] [varchar](100) NOT NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FileName] [varchar](100) NOT NULL)&lt;br /&gt;&lt;br /&gt;Now let's start....&lt;br /&gt;&lt;br /&gt;•&amp;nbsp;&amp;nbsp;&amp;nbsp; Drag a “Script Task”.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-yvnqAoK3dhg/TgSY5yTGbUI/AAAAAAAAAE0/sPRUbyzK_5s/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-yvnqAoK3dhg/TgSY5yTGbUI/AAAAAAAAAE0/sPRUbyzK_5s/s1600/4.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;•&amp;nbsp;&amp;nbsp;&amp;nbsp; 2-edit the code as shown here:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Rrk0Rcl00YE/TgSZAiT8u6I/AAAAAAAAAE8/iXLw2N6O-vc/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="264" src="http://1.bp.blogspot.com/-Rrk0Rcl00YE/TgSZAiT8u6I/AAAAAAAAAE8/iXLw2N6O-vc/s320/5.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports System.Data.SqlClient&lt;br /&gt;Imports System.Collections.Generic&lt;br /&gt;Imports System.Text&lt;br /&gt;Imports System.Net&lt;br /&gt;Imports System.IO&lt;br /&gt;&lt;br /&gt;&amp;lt;System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")&amp;gt; _&lt;br /&gt;&amp;lt;System.CLSCompliantAttribute(False)&amp;gt; _&lt;br /&gt;Partial Public Class ScriptMain&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Enum ScriptResults&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Enum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub Main()&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Create the connection to the ftp server&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cm As ConnectionManager = Dts.Connections.Add("FTP")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Folders As String()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Files As String()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim FileName As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Folder As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Dir As String&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Set the properties like username &amp;amp; password&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cm.Properties("ServerName").SetValue(cm, "ftp.secureftp-test.com") 'Serevr Name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cm.Properties("ServerUserName").SetValue(cm, "test")&amp;nbsp; 'user name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cm.Properties("ServerPassword").SetValue(cm, "test") 'password&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ftp As FtpClientConnection = New FtpClientConnection(cm.AcquireConnection(Nothing))&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Connects to the ftp server, to the root&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dir = "/" 'Root directory &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftp.Connect() 'Connect&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftp.SetWorkingDirectory(Dir) 'Set working directory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftp.GetListing(Folders, Files) 'list fodlers and files&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SQLStr As String&amp;nbsp;&amp;nbsp;&amp;nbsp; 'SQL string to hold the root query&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SQLStr1 As String&amp;nbsp;&amp;nbsp; 'SQL string to hold rest of the folders query&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ConnString As String&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'SQL server connection to "Localhost" and my Database called "Admin"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ConnString = "Data Source=localhost;Initial Catalog=Admin;Integrated Security=SSPI;"&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SQLConn As New SqlConnection()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SQLCmd As New SqlCommand()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLConn.ConnectionString = ConnString&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLConn.Open() 'open connection&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.Connection = SQLConn&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'write root file list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Files Is Nothing Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each FileName In Files&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'my table called "FTPList"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLStr = "INSERT into FTPList(DateTime,Folder,FileName) VALUES ('" + Now() + "','" + Dir.Trim + "','" + FileName.Trim + "')"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.CommandText = SQLStr&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.ExecuteNonQuery()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'write other folders and their files list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Folders Is Nothing Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each Folder In Folders&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dir = "/" + Folder&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftp.SetWorkingDirectory(Dir)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftp.GetListing(Folders, Files)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Files Is Nothing Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each FileName In Files&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLStr1 = "INSERT into FTPList(DateTime,Folder,FileName) VALUES ('" + Now() + "','" + Dir.Trim + "','" + FileName.Trim + "')"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.CommandText = SQLStr1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLCmd.ExecuteNonQuery()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ftp.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLConn.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dts.TaskResult = ScriptResults.Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;End Class&lt;/blockquote&gt;&amp;nbsp;And the results will be at the FTPList table as shown:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-fJV9t1rMY4s/TgSZkb4nWPI/AAAAAAAAAFA/PmxJLsEyzbc/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="244" src="http://1.bp.blogspot.com/-fJV9t1rMY4s/TgSZkb4nWPI/AAAAAAAAAFA/PmxJLsEyzbc/s320/7.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;That's it...Enjoy.......&lt;br /&gt;&lt;br /&gt;Download the package from &lt;a href="http://www.box.net/shared/77tqeitp99czj6feefxv"&gt;http://www.box.net/shared/77tqeitp99czj6feefxv&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2479050287042882267?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2479050287042882267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/ftp-file-and-folders-list-into-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2479050287042882267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2479050287042882267'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/ftp-file-and-folders-list-into-sql.html' title='FTP file and Folders list into a SQL Table'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-yvnqAoK3dhg/TgSY5yTGbUI/AAAAAAAAAE0/sPRUbyzK_5s/s72-c/4.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-8185125029056361268</id><published>2011-06-23T13:32:00.000-04:00</published><updated>2011-06-23T13:32:33.036-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>How to enable GOD mode in win7 and Vista!</title><content type='html'>Today's post is short and sweet, I just couldn't resist to share this cool option !!Never heard about this trick before, so cool, gets you a better broad [control panel] over you PC!!&lt;br /&gt;&lt;br /&gt;check it here &lt;a href="http://www.bleepingcomputer.com/tutorials/tutorial158.html"&gt;http://www.bleepingcomputer.com/tutorials/tutorial158.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-8185125029056361268?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/8185125029056361268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/how-to-enable-god-mode-in-win7-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8185125029056361268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8185125029056361268'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/how-to-enable-god-mode-in-win7-and.html' title='How to enable GOD mode in win7 and Vista!'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-4518156660553109500</id><published>2011-06-16T00:03:00.001-04:00</published><updated>2011-09-22T09:39:53.554-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSRS'/><title type='text'>Ever wanted shapes and check boxes in SSRS?</title><content type='html'>I do some webdesigning in my own side business, and was installing some fonts, then this&amp;nbsp;crazy idea came to my mind about using the default fonts that comes installed in windows to produce shapes in SSRS.&lt;br /&gt;&lt;br /&gt;The various fonts are&amp;nbsp;called " Webdings, Wingdings, Wingdings2 and Wingdings3&amp;nbsp;"&lt;br /&gt;&lt;br /&gt;Basically you'll use &lt;a href="http://msdn.microsoft.com/en-us/library/ms157328.aspx"&gt;IIF&lt;/a&gt; or &lt;a href="http://www.sqlservercentral.com/blogs/sqldownsouth/archive/2010/02/19/reporting-services-switch-function.aspx"&gt;SWITCH&lt;/a&gt; to set your desired shape, you'll need to use capital letters, small letter or numbers.&lt;br /&gt;&lt;br /&gt;The list of the shapes and the corespondent key could be found here &lt;a href="http://www.purplehell.com/riddletools/wingdingschart.htm"&gt;http://www.purplehell.com/riddletools/wingdingschart.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;P.S. Use IE to view that page, firefox doesn't display that font correctly!!&lt;br /&gt;&lt;br /&gt;Examples:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-rgesNOJMEjk/TfmAaqY08pI/AAAAAAAAAEs/XcO-xKG3OoQ/s1600/webdings.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="245" src="http://2.bp.blogspot.com/-rgesNOJMEjk/TfmAaqY08pI/AAAAAAAAAEs/XcO-xKG3OoQ/s400/webdings.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Hope that helps someone.....﻿&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-4518156660553109500?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/4518156660553109500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/ever-wanted-shapes-and-check-boxes-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4518156660553109500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/4518156660553109500'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/ever-wanted-shapes-and-check-boxes-in.html' title='Ever wanted shapes and check boxes in SSRS?'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-rgesNOJMEjk/TfmAaqY08pI/AAAAAAAAAEs/XcO-xKG3OoQ/s72-c/webdings.jpg' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Carlstadt, NJ 07072, USA</georss:featurename><georss:point>40.8202314 -74.0593872</georss:point><georss:box>40.7968474 -74.0982642 40.8436154 -74.0205102</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-6718310437664267816</id><published>2011-06-12T19:49:00.002-04:00</published><updated>2011-06-12T19:49:42.944-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>SSIS Error and Message Reference</title><content type='html'>This might be helpful to someone while troubleshooting your SSIS packages.&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms345164.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms345164.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-6718310437664267816?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/6718310437664267816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/ssis-error-and-message-reference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6718310437664267816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6718310437664267816'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/ssis-error-and-message-reference.html' title='SSIS Error and Message Reference'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-2730857724225018254</id><published>2011-06-11T22:42:00.000-04:00</published><updated>2011-06-11T22:42:10.295-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Dynamically Iterate over a list of tables or views and export to flat files.</title><content type='html'>&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I recently came across an interesting&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;a href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/Q_27070749.html?cid=1135#a35876665" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" target="_blank"&gt;Question In EE&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;and was puzzled about how to achieve that using SSIS out of the box tasks, which was impossible as SSIS can;t use on the fly columns in the source or the destination.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;SO definitely only could be done using a script task, but that wasn't really my favorite part, I'm the worst when it comes to that.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Anyway because I had some past experience as developing ASP pages using vb.net, so quickly came to my mind to build a&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;DataGrid&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;using a SQL query, then export the grid to a text file, which worked fine, The I came across the&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;DataReader&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;which is a neater and easier way.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;So here I'm going to demonstrate how to Iterate over a list of&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;views&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;which has different structure to flat file using Script Task.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I'll be using the famous "AdventureWorksDW2008R2" DB for SQL 2008 and &amp;nbsp;"AdventureWorks" for SQL 2005 which could be downloaded for free&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;a href="http://msftdbprodsamples.codeplex.com/" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" target="_blank"&gt;here&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;, The demo is being done on a windows Vista 64BIT machine, with SQL and VS 2008 installed. but there shouldn't be any version different if you're using SQL 2005.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Alright enough talking....&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;For SQL server 2008 Users......&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;1-The first step is to identify what are the views that we be exporting.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465796/Views.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;Views.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(29 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;Views&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465796/Views.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="Views" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465796/Views.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 258px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 270px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;2-Check the columns count for each of them, just to illustrate the different in structure.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="codeSnippet" style="background-color: white; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 17px; max-height: 500px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="lineNumbers" style="border-right-color: silver; border-right-style: solid; border-right-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; text-align: right; vertical-align: top;"&gt;&lt;pre style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1:&lt;br /&gt;2:&lt;br /&gt;3:&lt;br /&gt;4:&lt;br /&gt;5:&lt;br /&gt;6:&lt;br /&gt;7:&lt;br /&gt;8:&lt;br /&gt;9:&lt;br /&gt;10:&lt;br /&gt;11:&lt;br /&gt;12:&lt;br /&gt;13:&lt;br /&gt;14:&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class="codeBody" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; vertical-align: top;"&gt;&lt;pre class="notpretty" id="codeSnippet8178991" style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;SELECT A.name AS ViewName&lt;br /&gt;  , count(B.TABLE_NAME) AS ColCount&lt;br /&gt;FROM&lt;br /&gt; sys.objects AS A&lt;br /&gt; LEFT OUTER JOIN&lt;br /&gt;  INFORMATION_SCHEMA.COLUMNS AS B&lt;br /&gt;  ON A.name = B.TABLE_NAME&lt;br /&gt;GROUP BY&lt;br /&gt; A.name&lt;br /&gt;  , A.type&lt;br /&gt;HAVING&lt;br /&gt; (A.type = 'v')&lt;br /&gt;ORDER BY&lt;br /&gt; ColCount DESC&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="codeSnippetButtons" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;a class="toggleHighlighting" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetToggleHighlighting.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;"&gt;Toggle Highlighting&lt;/a&gt;&lt;a class="openInNewWindow" href="http://www.experts-exchange.com/codeSnippetPopup.jsp?csid=8178991" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetOpenInNewWindow.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;" target="_blank"&gt;Open in New Window&lt;/a&gt;&lt;a class="selectAll" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetSelectAll.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 93px;"&gt;Select All&lt;/a&gt;&lt;/div&gt;&lt;div class="clear" style="clear: both; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;3-I'll create 4 Variables, I love to always to the proper naming convention to tell the data type of the variable.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465761/Variables.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;Variables.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(25 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;Variables&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465761/Variables.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="Variables" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465761/Variables.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 115px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 365px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;A-Variable "ObjAllViews" will hold back the result set which has all the views' Names.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;B-Variable "StrDelimiter" &amp;nbsp; will hold the delimiter that you want to use between columns, I love to use the Vertical Line "|" because most of our data has commas in it, you can get it by pressing (SHIFT + \ )&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;C-Variable "StrViewName" will hold each individual view.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;D-Variable "StrFilePath" will hold the desired path to save the files.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;4-Create a connection to your server, in my case it's 'localhost' as I've my testing SQL server on the same machine, and I named the connection 'Localhost', take note of naming the connection because it's mentioned later in the script task.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;oh...so now you get the idea? &amp;nbsp;we will use the "Execute SQL Task" to get us the list of the views that exists in that table into "ObjAllViews" &amp;nbsp;variable, then we will use "Foreach Loop Container" to shred resultset from "ObjAllViews" &amp;nbsp;variable to each individual view name into "StrViewName" variable .&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Then inside the "Foreach Loop Container" we will place a "Script Task" that will do the trick for us.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Now let's go over each tasks and how it's configured....&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;1-The control flow and the connection&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465787/CF.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;CF.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(103 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;ControlFlow and connection&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465787/CF.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="ControlFlow and connection" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465787/CF.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 393px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;2-Execute SQL Task&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465788/EST1.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;EST1.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(117 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;EST1&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465788/EST1.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="EST1" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465788/EST1.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 429px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465789/EST2.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;EST2.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(81 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;EST2&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465789/EST2.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="EST2" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465789/EST2.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 473px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;3-Foreach Loop Container&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465790/FEL1.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;FEL1.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(112 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;FEL1&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465790/FEL1.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="FEL1" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465790/FEL1.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 447px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465791/FEL2.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;FEL2.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(97 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;FEL2&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465791/FEL2.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="FEL2" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465791/FEL2.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 448px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;4-Script Task , Thanks for SIVA for helping me with the counter code.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465792/ST1.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;ST1.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(89 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;ST&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465792/ST1.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="ST" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465792/ST1.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 455px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;5- add This code&lt;/span&gt;&lt;div class="codeSnippet" style="background-color: white; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 17px; max-height: 500px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="lineNumbers" style="border-right-color: silver; border-right-style: solid; border-right-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; text-align: right; vertical-align: top;"&gt;&lt;pre style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1:&lt;br /&gt;2:&lt;br /&gt;3:&lt;br /&gt;4:&lt;br /&gt;5:&lt;br /&gt;6:&lt;br /&gt;7:&lt;br /&gt;8:&lt;br /&gt;9:&lt;br /&gt;10:&lt;br /&gt;11:&lt;br /&gt;12:&lt;br /&gt;13:&lt;br /&gt;14:&lt;br /&gt;15:&lt;br /&gt;16:&lt;br /&gt;17:&lt;br /&gt;18:&lt;br /&gt;19:&lt;br /&gt;20:&lt;br /&gt;21:&lt;br /&gt;22:&lt;br /&gt;23:&lt;br /&gt;24:&lt;br /&gt;25:&lt;br /&gt;26:&lt;br /&gt;27:&lt;br /&gt;28:&lt;br /&gt;29:&lt;br /&gt;30:&lt;br /&gt;31:&lt;br /&gt;32:&lt;br /&gt;33:&lt;br /&gt;34:&lt;br /&gt;35:&lt;br /&gt;36:&lt;br /&gt;37:&lt;br /&gt;38:&lt;br /&gt;39:&lt;br /&gt;40:&lt;br /&gt;41:&lt;br /&gt;42:&lt;br /&gt;43:&lt;br /&gt;44:&lt;br /&gt;45:&lt;br /&gt;46:&lt;br /&gt;47:&lt;br /&gt;48:&lt;br /&gt;49:&lt;br /&gt;50:&lt;br /&gt;51:&lt;br /&gt;52:&lt;br /&gt;53:&lt;br /&gt;54:&lt;br /&gt;55:&lt;br /&gt;56:&lt;br /&gt;57:&lt;br /&gt;58:&lt;br /&gt;59:&lt;br /&gt;60:&lt;br /&gt;61:&lt;br /&gt;62:&lt;br /&gt;63:&lt;br /&gt;64:&lt;br /&gt;65:&lt;br /&gt;66:&lt;br /&gt;67:&lt;br /&gt;68:&lt;br /&gt;69:&lt;br /&gt;70:&lt;br /&gt;71:&lt;br /&gt;72:&lt;br /&gt;73:&lt;br /&gt;74:&lt;br /&gt;75:&lt;br /&gt;76:&lt;br /&gt;77:&lt;br /&gt;78:&lt;br /&gt;79:&lt;br /&gt;80:&lt;br /&gt;81:&lt;br /&gt;82:&lt;br /&gt;83:&lt;br /&gt;84:&lt;br /&gt;85:&lt;br /&gt;86:&lt;br /&gt;87:&lt;br /&gt;88:&lt;br /&gt;89:&lt;br /&gt;90:&lt;br /&gt;91:&lt;br /&gt;92:&lt;br /&gt;93:&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class="codeBody" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; vertical-align: top;"&gt;&lt;pre class="notpretty" id="codeSnippet8181336" style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;Imports System.Data.SqlClient&lt;br /&gt;Imports System.IO&lt;br /&gt;&lt;br /&gt;&amp;lt;System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")&amp;gt; _&lt;br /&gt;&amp;lt;System.CLSCompliantAttribute(False)&amp;gt; _&lt;br /&gt;Partial Public Class ScriptMain&lt;br /&gt;    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase&lt;br /&gt;    Enum ScriptResults&lt;br /&gt;        Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success&lt;br /&gt;        Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure&lt;br /&gt;    End Enum&lt;br /&gt;    Public Sub Main()&lt;br /&gt;&lt;br /&gt;        'Variable collection to hold the variables&lt;br /&gt;        Dim VarCol As Variables = Nothing&lt;br /&gt;&lt;br /&gt;        'Lock the 3 variables for read&lt;br /&gt;        Dts.VariableDispenser.LockForRead("User::StrViewName")&lt;br /&gt;        Dts.VariableDispenser.LockForRead("User::StrDelimiter")&lt;br /&gt;        Dts.VariableDispenser.LockForRead("User::StrFilePath")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        'Fille the Variable collection&lt;br /&gt;        Dts.VariableDispenser.GetVariables(VarCol)&lt;br /&gt;&lt;br /&gt;        'Getting the variables' values, so we can use it later&lt;br /&gt;        Dim ViewName As String = VarCol("User::StrViewName").Value.ToString()&lt;br /&gt;        Dim delimiter As String = VarCol("User::StrDelimiter").Value.ToString()&lt;br /&gt;        Dim FilePath As String = VarCol("User::StrFilePath").Value.ToString()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        'Construct the file name, example output: D:\vTargetMail.TXT&lt;br /&gt;        Dim FName As String = FilePath &amp;amp; ViewName &amp;amp; ".TXT"&lt;br /&gt;&lt;br /&gt;        'Build our Query&lt;br /&gt;        Dim Query As String = "SELECT * FROM " &amp;amp; ViewName&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        'Using StreamWriter&lt;br /&gt;        Dim writer As StreamWriter = Nothing&lt;br /&gt;&lt;br /&gt;        'Use our OLEDB COnnection&lt;br /&gt;        Dim connection As OleDbConnection = New OleDbConnection(Dts.Connections("Localhost").ConnectionString)&lt;br /&gt;        Dim command As OleDbCommand = Nothing&lt;br /&gt;        Dim reader As OleDbDataReader = Nothing&lt;br /&gt;&lt;br /&gt;        Try&lt;br /&gt;            'Checking for the file, delete if exist(you can append or rename with [File.Move(FName, Today() &amp;amp; "_" &amp;amp; FName)]&lt;br /&gt;            If File.Exists(FName) Then&lt;br /&gt;                File.Delete(FName)&lt;br /&gt;            End If&lt;br /&gt;            'Open the OLEDB connection&lt;br /&gt;            connection.Open()&lt;br /&gt;&lt;br /&gt;            'Run the query&lt;br /&gt;            command = New OleDbCommand(Query, connection)&lt;br /&gt;            reader = command.ExecuteReader()&lt;br /&gt;&lt;br /&gt;            If reader.HasRows Then&lt;br /&gt;&lt;br /&gt;                'Stream Writer using the FNAME that we declared erlier&lt;br /&gt;                writer = New System.IO.StreamWriter(FName)&lt;br /&gt;                While reader.Read()&lt;br /&gt;&lt;br /&gt;                    'Counter to get the columns number&lt;br /&gt;                    Dim counter As Integer = 0&lt;br /&gt;                    Dim fieldCount As Integer = reader.FieldCount - 1&lt;br /&gt;&lt;br /&gt;                    While counter &amp;lt;= fieldCount&lt;br /&gt;                        If counter &amp;lt;&amp;gt; fieldCount Then&lt;br /&gt;&lt;br /&gt;                            writer.Write(reader(counter).ToString() &amp;amp; delimiter)&lt;br /&gt;                        Else&lt;br /&gt;                            writer.WriteLine(reader(counter).ToString())&lt;br /&gt;                        End If&lt;br /&gt;                        counter += 1&lt;br /&gt;                    End While&lt;br /&gt;                End While&lt;br /&gt;            End If&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            Dts.Events.FireError(1, "", "Something Wrong happened!!!", "", 0)&lt;br /&gt;        Finally&lt;br /&gt;            connection.Close()&lt;br /&gt;            writer.Close()&lt;br /&gt;        End Try&lt;br /&gt;        Dts.TaskResult = ScriptResults.Success&lt;br /&gt;    End Sub&lt;br /&gt;End Class&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="codeSnippetButtons" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;a class="toggleHighlighting" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetToggleHighlighting.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;"&gt;Toggle Highlighting&lt;/a&gt;&lt;a class="openInNewWindow" href="http://www.experts-exchange.com/codeSnippetPopup.jsp?csid=8181336" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetOpenInNewWindow.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;" target="_blank"&gt;Open in New Window&lt;/a&gt;&lt;a class="selectAll" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetSelectAll.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 93px;"&gt;Select All&lt;/a&gt;&lt;/div&gt;&lt;div class="clear" style="clear: both; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;And The results .........&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465797/Files.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;Files.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(17 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;Files&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w23/465797/Files.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="Files" src="http://filedb.experts-exchange.com/incoming/2011/06_w23/art465797/Files.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 101px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 367px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;For SQL 2005&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;users...&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;We need to change the script task, also the SQL query too as follow:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;1- change the SQL query to&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;div class="codeSnippet" style="background-color: white; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 17px; max-height: 500px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="lineNumbers" style="border-right-color: silver; border-right-style: solid; border-right-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; text-align: right; vertical-align: top;"&gt;&lt;pre style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1:&lt;br /&gt;2:&lt;br /&gt;3:&lt;br /&gt;4:&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class="codeBody" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; vertical-align: top;"&gt;&lt;pre class="notpretty" id="codeSnippet8181383" style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;SELECT  (sys.schemas.name + '.' + sys.objects.name) AS ViewName&lt;br /&gt;FROM    sys.objects &lt;br /&gt;INNER JOIN sys.schemas ON sys.objects.schema_id = sys.schemas.schema_id&lt;br /&gt;Where type ='v'&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="codeSnippetButtons" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;a class="toggleHighlighting" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetToggleHighlighting.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;"&gt;Toggle Highlighting&lt;/a&gt;&lt;a class="openInNewWindow" href="http://www.experts-exchange.com/codeSnippetPopup.jsp?csid=8181383" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetOpenInNewWindow.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;" target="_blank"&gt;Open in New Window&lt;/a&gt;&lt;a class="selectAll" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetSelectAll.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 93px;"&gt;Select All&lt;/a&gt;&lt;/div&gt;&lt;div class="clear" style="clear: both; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;2- and the script task as shown here&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;div class="s snhFFFF expNoHeader postableAttach" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 17px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table class="h" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; color: white; font-size: 5px; font-weight: bold; height: 6px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px 0px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -6px; background-repeat: repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -10px -6px; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 6px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="bl" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBodyContainer.png); background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="br" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: url(http://images.experts-exchange.com/00217/xp/images/componentBody.png); background-origin: initial; background-position: 100% 0%; background-repeat: no-repeat repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px;"&gt;&lt;div class="bbg" style="background-color: white; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div class="bc" style="margin-bottom: 9px; margin-left: 14px; margin-right: 14px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="attachment" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div class="fileInfo" style="display: block; float: left; font-weight: bold; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: nowrap;"&gt;&lt;a class="filename" href="http://filedb.experts-exchange.com/incoming/2011/06_w24/468347/script2005.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/tinyPaperClip.png); background-origin: initial; background-position: 0% 2px; background-repeat: no-repeat no-repeat; color: #777777; cursor: pointer; height: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 11px; padding-right: 0px; padding-top: 0px; width: 7px;" target="_blank" title="No Viruses Detected"&gt;script2005.jpg&lt;/a&gt;&amp;nbsp;&lt;span class="fileSize" style="font-size: 10px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;(86 KB)&amp;nbsp;&lt;/span&gt;&lt;a class="attachmentDetails" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0.5em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0.5em; padding-right: 0px; padding-top: 0px;"&gt;(File Type Details)&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="description" style="color: grey; display: block; margin-bottom: 5px; margin-left: 14px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: right;"&gt;scripttask2005&lt;/div&gt;&lt;a class="attachmentLink" href="http://filedb.experts-exchange.com/incoming/2011/06_w24/468347/script2005.jpg" style="clear: both; color: #777777; cursor: pointer; display: block; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 640px;" target="_blank"&gt;&lt;img alt="scripttask2005" src="http://filedb.experts-exchange.com/incoming/2011/06_w24/art468347/script2005.jpg" style="border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; height: 405px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="empty" style="font-size: 0px; height: 0px; line-height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table class="f" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: collapse; font-size: 5px; line-height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; width: 672px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="l" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: 0px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;td style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fMids.gif); background-origin: initial; background-position: 0px -18px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;nbsp;&lt;/td&gt;&lt;td class="r" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://images.experts-exchange.com/00217/xp/images/fCaps.gif); background-origin: initial; background-position: -5px 0px; background-repeat: repeat no-repeat; height: 6px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 5px;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;div class="codeSnippet" style="background-color: white; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 17px; max-height: 500px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;td class="lineNumbers" style="border-right-color: silver; border-right-style: solid; border-right-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; text-align: right; vertical-align: top;"&gt;&lt;pre style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;1:&lt;br /&gt;2:&lt;br /&gt;3:&lt;br /&gt;4:&lt;br /&gt;5:&lt;br /&gt;6:&lt;br /&gt;7:&lt;br /&gt;8:&lt;br /&gt;9:&lt;br /&gt;10:&lt;br /&gt;11:&lt;br /&gt;12:&lt;br /&gt;13:&lt;br /&gt;14:&lt;br /&gt;15:&lt;br /&gt;16:&lt;br /&gt;17:&lt;br /&gt;18:&lt;br /&gt;19:&lt;br /&gt;20:&lt;br /&gt;21:&lt;br /&gt;22:&lt;br /&gt;23:&lt;br /&gt;24:&lt;br /&gt;25:&lt;br /&gt;26:&lt;br /&gt;27:&lt;br /&gt;28:&lt;br /&gt;29:&lt;br /&gt;30:&lt;br /&gt;31:&lt;br /&gt;32:&lt;br /&gt;33:&lt;br /&gt;34:&lt;br /&gt;35:&lt;br /&gt;36:&lt;br /&gt;37:&lt;br /&gt;38:&lt;br /&gt;39:&lt;br /&gt;40:&lt;br /&gt;41:&lt;br /&gt;42:&lt;br /&gt;43:&lt;br /&gt;44:&lt;br /&gt;45:&lt;br /&gt;46:&lt;br /&gt;47:&lt;br /&gt;48:&lt;br /&gt;49:&lt;br /&gt;50:&lt;br /&gt;51:&lt;br /&gt;52:&lt;br /&gt;53:&lt;br /&gt;54:&lt;br /&gt;55:&lt;br /&gt;56:&lt;br /&gt;57:&lt;br /&gt;58:&lt;br /&gt;59:&lt;br /&gt;60:&lt;br /&gt;61:&lt;br /&gt;62:&lt;br /&gt;63:&lt;br /&gt;64:&lt;br /&gt;65:&lt;br /&gt;66:&lt;br /&gt;67:&lt;br /&gt;68:&lt;br /&gt;69:&lt;br /&gt;70:&lt;br /&gt;71:&lt;br /&gt;72:&lt;br /&gt;73:&lt;br /&gt;74:&lt;br /&gt;75:&lt;br /&gt;76:&lt;br /&gt;77:&lt;br /&gt;78:&lt;br /&gt;79:&lt;br /&gt;80:&lt;br /&gt;81:&lt;br /&gt;82:&lt;br /&gt;83:&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class="codeBody" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 2px; padding-right: 2px; padding-top: 0px; vertical-align: top;"&gt;&lt;pre class="notpretty" id="codeSnippet8181384" style="font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Math&lt;br /&gt;Imports Microsoft.SqlServer.Dts.Runtime&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;Imports System.Data.SqlClient&lt;br /&gt;Imports System.IO&lt;br /&gt;&lt;br /&gt;Public Class ScriptMain&lt;br /&gt;&lt;br /&gt;    Public Sub Main()&lt;br /&gt;&lt;br /&gt;        'Variable collection to hold the variables&lt;br /&gt;        Dim VarCol As Variables = Nothing&lt;br /&gt;&lt;br /&gt;        'Lock the 3 variables for read&lt;br /&gt;        Dts.VariableDispenser.LockForRead("User::StrViewName")&lt;br /&gt;        Dts.VariableDispenser.LockForRead("User::StrDelimiter")&lt;br /&gt;        Dts.VariableDispenser.LockForRead("User::StrFilePath")&lt;br /&gt;&lt;br /&gt;        'Fille the Variable collection&lt;br /&gt;        Dts.VariableDispenser.GetVariables(VarCol)&lt;br /&gt;&lt;br /&gt;        'Getting the variables' values, so we can use it later&lt;br /&gt;        Dim ViewName As String = VarCol("User::StrViewName").Value.ToString()&lt;br /&gt;        Dim delimiter As String = VarCol("User::StrDelimiter").Value.ToString()&lt;br /&gt;        Dim FilePath As String = VarCol("User::StrFilePath").Value.ToString()&lt;br /&gt;&lt;br /&gt;        'Construct the file name, example output: D:\vTargetMail.TXT&lt;br /&gt;        Dim FName As String = FilePath &amp;amp; ViewName &amp;amp; ".TXT"&lt;br /&gt;&lt;br /&gt;        'Using StreamWriter&lt;br /&gt;        Dim writer As StreamWriter = Nothing&lt;br /&gt;&lt;br /&gt;        'Try&lt;br /&gt;        'Checking for the file, delete if exist(you can append or rename with [File.Move(FName, Today() &amp;amp; "_" &amp;amp; FName)]&lt;br /&gt;        If File.Exists(FName) Then&lt;br /&gt;            File.Delete(FName)&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        'Open the OLEDB connection&lt;br /&gt;        Dim connection As New OleDbConnection("Provider=SQLOLEDB;Data Source=Localhost;Initial Catalog=AdventureWorks;Integrated Security=SSPI;")&lt;br /&gt;        connection.Open()&lt;br /&gt;        Dim Query As String = "SELECT * FROM " &amp;amp; ViewName&lt;br /&gt;      &lt;br /&gt;        Dim command As OleDbCommand = New OleDbCommand(Query, connection)&lt;br /&gt;&lt;br /&gt;        Dim reader As OleDbDataReader = command.ExecuteReader()&lt;br /&gt;&lt;br /&gt;        If reader.HasRows Then&lt;br /&gt;&lt;br /&gt;            'Stream Writer using the FNAME that we declared erlier&lt;br /&gt;            writer = New System.IO.StreamWriter(FName)&lt;br /&gt;            While reader.Read()&lt;br /&gt;&lt;br /&gt;                'Counter to get the columns number&lt;br /&gt;                Dim counter As Integer = 0&lt;br /&gt;                Dim fieldCount As Integer = reader.FieldCount - 1&lt;br /&gt;&lt;br /&gt;                While counter &amp;lt;= fieldCount&lt;br /&gt;                    If counter &amp;lt;&amp;gt; fieldCount Then&lt;br /&gt;&lt;br /&gt;                        writer.Write(reader(counter).ToString() &amp;amp; delimiter)&lt;br /&gt;                    Else&lt;br /&gt;                        writer.WriteLine(reader(counter).ToString())&lt;br /&gt;                    End If&lt;br /&gt;                    counter += 1&lt;br /&gt;                End While&lt;br /&gt;            End While&lt;br /&gt;            reader.Close()&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        connection.Close()&lt;br /&gt;        writer.Close()&lt;br /&gt;        'Catch ex As Exception&lt;br /&gt;        '    Dts.Events.FireError(1, "Nasty", "Something Wrong happened!!!", "", 0)&lt;br /&gt;        '    Throw ex&lt;br /&gt;        'Finally&lt;br /&gt;&lt;br /&gt;        'End Try&lt;br /&gt;        Dts.TaskResult = Dts.Results.Success&lt;br /&gt;    End Sub&lt;br /&gt;End Class&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="codeSnippetButtons" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;a class="toggleHighlighting" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetToggleHighlighting.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;"&gt;Toggle Highlighting&lt;/a&gt;&lt;a class="openInNewWindow" href="http://www.experts-exchange.com/codeSnippetPopup.jsp?csid=8181384" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetOpenInNewWindow.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 150px;" target="_blank"&gt;Open in New Window&lt;/a&gt;&lt;a class="selectAll" href="http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_5989-Dynamically-Iterate-over-a-list-of-tables-or-views-and-export-to-flat-files.html" style="background-image: url(http://images.experts-exchange.com/00217/xp/images/buttons/glow/codeSnippetSelectAll.png); color: #777777; cursor: pointer; display: block; float: right; height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -6px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: -9999px; width: 93px;"&gt;Select All&lt;/a&gt;&lt;/div&gt;&lt;div class="clear" style="clear: both; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; height: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Solution assumptions:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;1-You're using SQL 2008 or SQL 2005.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;2-Server name is "Localhost" hosted locally, otherwise, please change that.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;3-You have write access to your D:\ &amp;nbsp;Drive.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;4-For SQL 2008 you have installed "AdventureWorksDW2008R2" DB and &amp;nbsp;"AdventureWorks" for SQL 2005.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;That's it...I hope my article helps someone to be more dynamic and flexible in SSIS and over come some of the Data Flow limitations.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Also I'm open to discussions and comments if you have a better way to do it.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;The final package for SQL 2008 can be&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;a href="http://www.box.net/shared/0l5xnnlb5y" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" target="_blank"&gt;FOUND HERE&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp; and for SQL 2005&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;a href="http://www.box.net/shared/vxh89brum7mqyn6ziagg" style="color: #777777; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" target="_blank"&gt;FROM HERE&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-2730857724225018254?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/2730857724225018254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/dynamically-iterate-over-list-of-tables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2730857724225018254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/2730857724225018254'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/dynamically-iterate-over-list-of-tables.html' title='Dynamically Iterate over a list of tables or views and export to flat files.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-699310995048554455</id><published>2011-06-07T11:56:00.000-04:00</published><updated>2011-06-07T11:56:18.279-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSMS'/><category scheme='http://www.blogger.com/atom/ns#' term='T-SQL'/><title type='text'>dbForge SQL Complete Review....</title><content type='html'>&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;This is a review of a great utility that I evaluated as a possible solution for replacing the Intellisense in SQL server management studio named dbForge SQL Complete which could be found at &lt;/span&gt;&lt;a href="http://www.devart.com/dbforge/sql/sqlcomplete/"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.devart.com/dbforge/sql/sqlcomplete/&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;I was surfing the SQL Server newsgroups for help with some T-SQL issues and I saw a post with a link to that utility. I went to their website and downloaded a free evaluation for 30 days. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;I could not believe how simple it was to use and how thoroughly it solved my code writing problems. I am still a fan and hooked and it's one of the tools that I need to install on each machine that I’m working on, wherever I go! &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;The Environment&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;The evaluation was done on various operating systems and various SQL server versions, windows vista 32 BIT with SQL server 2008, windows 7 enterprise 64Bit with SQL server 2008R2 and windows 7 enterprise 64Bit with SQL server 2005.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;Download&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;The best thing ever that companies could offer a free trial of their product for testing and it's for 30 days, which divert did, totally free download without even giving your e-mail address and the other bogus stuff, the makes it easier to evaluate and work around with the tool.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;They also offer free support even during your evaluation period, but I didn't get the chance to use it or call them as the product works smoothly on 32BIT and 64BIT, windows Vista and seven enterprises.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;The dbForge SQL Complete has two editions - Express and Standard.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Express is a free SQL Server Management Studio add-in that provides basic functionality to complete and format SQL code.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Standard is a fully-featured tool that provides powerful SQL Intellisense and formatting of T-SQL code.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You can download it from &lt;/span&gt;&lt;a href="http://www.devart.com/dbforge/sql/sqlcomplete/download.html"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.devart.com/dbforge/sql/sqlcomplete/download.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;Version&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;The latest version as we speak is 2.50.92 (30-May-2011). For a list of changes see the revision history.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Ready to work out of the box, quickly installed in a &lt;i&gt;Next-Next-Finish&lt;/i&gt; manner, it just requires Microsoft SQL Server Management Studio 2005 or 2008 installed&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;Cost&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Ok, so that is what it costs, but what is its value? What will it bring to your business that you do not already have? Consider this:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;A tool for creating faster code completes as you write.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;The ability to when you type names of user-defined and built-in functions and procedures, dbForge SQL Complete will display their parameter information in a hint.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 0.5in; mso-list: l1 level1 lfo2; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;A utility to produce clear and well-formatted code without worrying about all those indents, whitespaces, etc. Just keep typing your SQL and see it automatically transformed based on your preferences and formatting rules. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;My Thoughts&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Who don't have access to 4 or 5 machines which he develops, test and work on all the time, speaking about me, I'm using 2 machines at work and 1 laptop and 1 PC at home on my spare time, most of the time you need more Intellisense from SSMS Intellisense.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Honestly I’ve been to other tools but more expensive and really gives me the same functionality of this one. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;To be fair, some of this functionality already exists in other tools you're using, such as SSMS. But Consider this:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo3; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;Speed! It's fast. The code behind this tool was recently rewritten for the latest version and it is as fast as lightning.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo3; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;Ease of use! Fluid motion, completing as you expect, as you type.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 0.5in; mso-list: l2 level1 lfo3; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;Customization! With a wide selection of formatting options you can set any formatting style you need. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Yes, it is a great tool, but is it right for you? It may or may not be, depending on your development environment. Consider these scenarios:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;If you're not a developer or a code writer! Then you do not need it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;If you don't use SQL server at all! Then you do not need it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;If your databases and codes remain relatively static, then you do not need it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;If your IT department don't have a budget to spend $50!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1; text-indent: -0.25in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"&gt;&lt;span style="mso-list: Ignore;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;If your development team codes furiously in a RAD environment then, as far as I'm concerned, you can't live without it. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;Positively I’m with this utility. It’s a great product and cheap and everybody needs it! You’ll know what I’m talking about after you try it!&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 115%;"&gt;&lt;strong&gt;From Their Website&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Context-based code completion&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/context-based-suggestions.jpg" jquery1307461857540="2" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Context-based code completion" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/context-based-suggestions50.jpg" title="Context-based SQL code completion" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/context-based-suggestions.jpg" jquery1307461857540="3" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;SQL Complete thoroughly defines the context to predict what you want to type next. It displays only relative keywords and names of database objects. Just type several symbols and see the required word in the suggestion list. It takes only to press Enter and go on with your query. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="parameter-info"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Parameter info for functions&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/parameter-info-hint.jpg" jquery1307461857540="4" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Quick Parameter info for user defined and built-in functions" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/parameter-info-hint50.jpg" title="Parameter information hint for functions" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/parameter-info-hint.jpg" jquery1307461857540="5" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;When you are typing names of user-defined and built-in functions and procedures, SQL Complete displays their parameter information in a hint. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="sql-formatting"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Customizable SQL formatting&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/formatting-options.jpg" jquery1307461857540="6" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Customizable Code formatting" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/formatting-options50.jpg" title="Customizable formatting of SQL code" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/formatting-options.jpg" jquery1307461857540="7" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Produce clear and well-formatted code without worrying about all those indents, whitespaces, wrappings, line breaks, etc. Just keep typing your SQL and see it automatically transformed based on your preferences and formatting rules. &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;With a wide selection of formatting options you can set any formatting style you need. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="object-info"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Quick object info&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/object-info.jpg" jquery1307461857540="8" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Quick object information" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/object-info50.jpg" title="Quick object information" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/object-info.jpg" jquery1307461857540="9" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;To get essential information on a database object you don't have to look it up any more - just hover the mouse cursor over the identifier, and it's here. For tables, the popup window with information will contain:&lt;br /&gt;&lt;br /&gt;- column names with data types&lt;br /&gt;- additional column properties (e.g., not null and identity attributes)&lt;br /&gt;- primary, unique and foreign keys&lt;br /&gt;- user information from the extended properties.&lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;For other objects it shows object type and user description if any.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="keywords-suggestions"&gt;&lt;/a&gt;&lt;!--&lt;li&gt;&lt;h3 align="center"&gt;Context-based suggestion of keywords&lt;/h3&gt;&lt;br /&gt;&lt;div class="image"&gt;       &lt;a href="images/list-of-keywords.jpg" target="_blank" class="thickbox" rel="gallery"&gt;       &lt;img alt="Context-based suggestion of keywords" title="Context-based suggestion of keywords"       src="images/list-of-keywords50.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="images/list-of-keywords.jpg" target="_blank" class="thickbox" rel="gallery8"&gt;Click to enlarge&lt;/a&gt;       &lt;/div&gt;&lt;div class="text"&gt;       &lt;p&gt;        SQL Complete offers a list of expected keywords to use in the current position of your code.       &lt;/p&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;--&gt;&lt;a href="" name="smart-filtering"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Smart filtering to suggest relative keywords and objects&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/filtering-suggestions.jpg" jquery1307461857540="10" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Smart filtering to suggest relative keywords and objects" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/filtering-suggestions50.jpg" title="Smart filtering of keywords and objects in the suggestion list" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/filtering-suggestions.jpg" jquery1307461857540="11" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;SQL Complete filters the suggestion list based on various criteria:&lt;br /&gt;&lt;br /&gt;- first typed symbols,&lt;br /&gt;- a whitespace,&lt;br /&gt;- camel case,&lt;br /&gt;- a square bracket. &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;You can be sure, whatever you type, the suggestions will be just what you wanted.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="suggestions-sorting"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Context-based sorting of suggestions in the list&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/sorting-keywords-by-relevance.jpg" jquery1307461857540="12" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Context-based sorting of suggestions in the list" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/sorting-keywords-by-relevance50.jpg" title="Context-based sorting of suggestions in the list" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/sorting-keywords-by-relevance.jpg" jquery1307461857540="13" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;SQL Complete saves you even a second by sorting names of database objects by type, and displaying most relevant suggestions in the top of the list; others are moved to the bottom. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="database-context"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Determining a current database or schema&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/determine-database-schema.jpg" jquery1307461857540="14" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Determining a current database or schema" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/determine-database-schema50.jpg" title="Determining a current database or schema" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/determine-database-schema.jpg" jquery1307461857540="15" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;SQL Complete displays a list of database objects from the current database or schema even if their names are not specified in a query. The names of the current database or schema are determined based on connection properties of the current SQL document. Besides, SQL Complete finds USE statements in the code and changes the current database for subsequent SQL statements. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="expand-columns-list"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Expanding a list of columns&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/expand-columns-list.jpg" jquery1307461857540="16" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Expanding a list of columns" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/expand-columns-list50.jpg" title="Expanding a list of columns" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/expand-columns-list.jpg" jquery1307461857540="17" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;You can replace the * asterisk symbol with the list of columns from the required table or view on pressing the Tab key. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="insert-statement"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Expanding INSERT statements&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/expand-insert.jpg" jquery1307461857540="18" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Expanding INSERT statement" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/expand-insert50.jpg" title="Expanding INSERT statement" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/expand-insert.jpg" jquery1307461857540="19" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;You can expand INSERT statements to the full template on pressing the Tab key.&lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Except the template, the type of column data will be generated in the comments along with the NOT NULL and ROWGUID properties. For datetime, a template for inserting time will be created. Also DEFAULT clause is generated if a default value is created for a table.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="join-statements"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Suggesting conditions for JOIN statements&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/suggesting-join.jpg" jquery1307461857540="20" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Suggesting conditions for JOIN statements" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/suggesting-join50.jpg" title="Suggesting conditions for JOIN statements" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/suggesting-join.jpg" jquery1307461857540="21" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Get the fastest way of typing JOIN statements. SQL Complete can suggest a full statement based on foreign keys, or it can prompt conditions based on column names. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="alias-generation"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Automatic alias generation&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/generating-alias.jpg" jquery1307461857540="22" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Automatic alias generation" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/generating-alias50.jpg" title="Automatic alias generation" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/generating-alias.jpg" jquery1307461857540="23" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;SQL Complete automatically generates an alias for each table object (table, view, stored procedure, function, synonym) in the FROM list of your SQL document. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;a href="" name="T-SQL-suggestions"&gt;&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Suggestions of T-SQL statements in procedures and functions&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/deallocate.jpg" jquery1307461857540="24" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Transact-SQL statements in procedures and functions" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/deallocate50.jpg" title="T-SQL statements in procedures and functions" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/deallocate.jpg" jquery1307461857540="25" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;SQL Complete supports:&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;DECLARE statements for local variables, cursor variables, and table definitions;&lt;br /&gt;&lt;br /&gt;cursors (declared with the help of DECLARE CURSOR statements) in OPEN, CLOSE, DEALLOCATE statements;&lt;br /&gt;&lt;br /&gt;context for such control-of-flow as BEGIN...END, GOTO, IF...ELSE, RETURN, BREAK, CONTINUE, WHILE, WAITFOR, TRY...CATCH, CASE, RAISERROR.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;br /&gt;&lt;li&gt;&lt;h3 align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Semi-transparent view of the suggestion box&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class="image" style="text-align: center;"&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/semi-transparent-mode.jpg" jquery1307461857540="26" rel="gallery" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;img alt="Semi-transparent view of the suggestion box" src="http://www.devart.com/dbforge/sql/sqlcomplete/images/semi-transparent-mode50.jpg" title="Semi-transparent view of the suggestion box" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a class="thickbox" href="http://www.devart.com/dbforge/sql/sqlcomplete/images/semi-transparent-mode.jpg" jquery1307461857540="27" rel="gallery8" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Click to enlarge&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;When your code is overlapped by the suggestion box, do not close the suggestion box. Hold Ctrl to make the suggestion box switch to semi-transparent view. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="text"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;Disclaimer:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt; I am not employed by them. I am just a happy customer who use one or more features offered by this utility to make my life easier. It is quite possible that there are other competitive products in the market that offer similar features, so please do your own research and download the trial version first.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-699310995048554455?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/699310995048554455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/dbforge-sql-complete-review.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/699310995048554455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/699310995048554455'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/dbforge-sql-complete-review.html' title='dbForge SQL Complete Review....'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-6832604273631822820</id><published>2011-06-01T09:06:00.000-04:00</published><updated>2011-06-01T09:06:06.067-04:00</updated><title type='text'>Run a VBscript using SQL Server.</title><content type='html'>Today I came across a question in &lt;a href="http://www.experts-exchange.com/"&gt;EE&lt;/a&gt;&amp;nbsp;of how to run a VBscript using SQL server.&lt;br /&gt;Well, it could be done using the SQL server agent or using SSIS, but the easiest way would be the SQL agent.&lt;br /&gt;&lt;br /&gt;Here how:&lt;br /&gt;&lt;br /&gt;1-Right click on "SQL Server Agent" and select "New Job"&lt;br /&gt;2-Name the job according to your needs.&lt;br /&gt;3-From the "Steps" , select New.&lt;br /&gt;4-Name it to your needs and select the "Type" as "Operating System CmdExec" as shown in the screenshot.&lt;br /&gt;4-Set the schedule as desired and that's it!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-v2sPUmvK2BY/TeY4FJhVePI/AAAAAAAAAEg/J6F_TmIPcMs/s1600/VBS.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="270" src="http://1.bp.blogspot.com/-v2sPUmvK2BY/TeY4FJhVePI/AAAAAAAAAEg/J6F_TmIPcMs/s400/VBS.jpg" t8="true" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-aulosG0UnGs/TeY4HKB2qWI/AAAAAAAAAEk/CkSxlI200O4/s1600/sched.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="305" src="http://4.bp.blogspot.com/-aulosG0UnGs/TeY4HKB2qWI/AAAAAAAAAEk/CkSxlI200O4/s400/sched.jpg" t8="true" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-6832604273631822820?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/6832604273631822820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/06/run-vbscript-using-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6832604273631822820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/6832604273631822820'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/06/run-vbscript-using-sql-server.html' title='Run a VBscript using SQL Server.'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_GpSQvubTSFU/TPhIXEVnFpI/AAAAAAAAAAY/njGwRM3wQek/S220/Me.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-v2sPUmvK2BY/TeY4FJhVePI/AAAAAAAAAEg/J6F_TmIPcMs/s72-c/VBS.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1378979608157429060.post-8245756977265481593</id><published>2011-05-26T14:22:00.001-04:00</published><updated>2011-05-26T14:47:29.497-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSIS'/><title type='text'>Column Name into variable to rename file</title><content type='html'>&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Today I came across a question in EE:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The person gets a unique file everyday, file name in the format 1234_Test.txt and the first four digits changes everyday.&amp;nbsp; Also need to place the output file and rename it based on a column value.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;For ex: If a column named code is 2, then my output file should be 2_1234_TEST.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;So it could be done by using a "File Watcher Task" to check for the file when it's available and put the file name into a variable.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Or using SSIS native task, using a "Foreah Loop" task to get the file name into variable, use a "script task" into the data flow to get the column value into another variable.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The a 3rd variable to join both of them and the destination folder.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The package could be downloaded from &lt;/span&gt;&lt;a href="http://www.box.net/shared/lx4j79a39z"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.box.net/shared/lx4j79a39z&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;steps are:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;3 variables - &amp;nbsp;type (STRING)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ebC-vfAgZ3I/Td6Y_XNHTpI/AAAAAAAAAD0/uErBk7OJMys/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="232" src="http://1.bp.blogspot.com/-ebC-vfAgZ3I/Td6Y_XNHTpI/AAAAAAAAAD0/uErBk7OJMys/s320/1.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;Foreach Loop config &lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-tq3eYHIlx94/Td6ZAgxz72I/AAAAAAAAAD4/dz1F4zwfDBU/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="269" src="http://2.bp.blogspot.com/-tq3eYHIlx94/Td6ZAgxz72I/AAAAAAAAAD4/dz1F4zwfDBU/s320/2.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-aUrX9LFD3gs/Td6ZBtAxiEI/AAAAAAAAAD8/8qpv4eUgotU/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="270" src="http://4.bp.blogspot.com/-aUrX9LFD3gs/Td6ZBtAxiEI/AAAAAAAAAD8/8qpv4eUgotU/s320/3.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;File system task config&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Hv0KYFRcyi8/Td6ZCmNTQxI/AAAAAAAAAEA/pTeQxHbGiAY/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="271" src="http://4.bp.blogspot.com/-Hv0KYFRcyi8/Td6ZCmNTQxI/AAAAAAAAAEA/pTeQxHbGiAY/s320/4.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;Expression on the variable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-NnhYzSOVz48/Td6ZDRCA0nI/AAAAAAAAAEE/OzqCeQ6Ijz4/s1600/5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="226" src="http://2.bp.blogspot.com/-NnhYzSOVz48/Td6ZDRCA0nI/AAAAAAAAAEE/OzqCeQ6Ijz4/s320/5.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;Clearer View&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-cXMmCCO5jCs/Td6ZEZFboHI/AAAAAAAAAEI/f8D3fBgPgms/s1600/6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="153" src="http://1.bp.blogspot.com/-cXMmCCO5jCs/Td6ZEZFboHI/AAAAAAAAAEI/f8D3fBgPgms/s320/6.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-niMMw-l4M8k/Td6ZFOagGVI/AAAAAAAAAEM/z5XslXW86ow/s1600/DF1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="134" src="http://2.bp.blogspot.com/-niMMw-l4M8k/Td6ZFOagGVI/AAAAAAAAAEM/z5XslXW86ow/s320/DF1.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;﻿&lt;/span&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Data Flow Task﻿&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-9yHAgBZMxcg/Td6ZwtnTzcI/AAAAAAAAAEc/aVMOY8OA1bI/s1600/0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-9yHAgBZMxcg/Td6ZwtnTzcI/AAAAAAAAAEc/aVMOY8OA1bI/s320/0.jpg" t8="true" width="233" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Script component config&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-nOTq6vxRHJM/Td6ZGKKjwvI/AAAAAAAAAEQ/gEwuB9-9j6U/s1600/DF2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="276" src="http://3.bp.blogspot.com/-nOTq6vxRHJM/Td6ZGKKjwvI/AAAAAAAAAEQ/gEwuB9-9j6U/s320/DF2.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-VOJkndnrsbk/Td6ZHOw0-HI/AAAAAAAAAEU/sljjOJgV4M0/s1600/DF3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-VOJkndnrsbk/Td6ZHOw0-HI/AAAAAAAAAEU/sljjOJgV4M0/s320/DF3.jpg" t8="true" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;VB script &lt;/span&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;﻿&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Kv9GF2GiQO0/Td6ZIOulIXI/AAAAAAAAAEY/BSfnRbvLEdQ/s1600/DF4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-Kv9GF2GiQO0/Td6ZIOulIXI/AAAAAAAAAEY/BSfnRbvLEdQ/s320/DF4.jpg" t8="true" width="285" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;﻿&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1378979608157429060-8245756977265481593?l=asqlb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asqlb.blogspot.com/feeds/8245756977265481593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asqlb.blogspot.com/2011/05/column-name-into-variable-to-rename.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8245756977265481593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1378979608157429060/posts/default/8245756977265481593'/><link rel='alternate' type='text/html' href='http://asqlb.blogspot.com/2011/05/column-name-into-variable-to-rename.html' title='Column Name into variable to rename file'/><author><name>Jason Yousef</name><uri>http://www.blogger.com/profile/01992333660672251175</uri><email>noreply@blogger.com</email><gd:image rel='http://sche
