<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server (και άλλες databases)</title><link>https://www.dotnetzone.gr:443/cs/forums/28/ShowForum.aspx</link><description>Θέματα που αφορούν τον SQL Server (7.0, 2000, 2005) αλλά και Oracle, Access, DB2, MySQL, κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Δυναμικό SSIS πακέτο</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37845.aspx</link><pubDate>Thu, 29 Nov 2007 21:49:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37845</guid><dc:creator>klelia</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37845.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=37845</wfw:commentRss><description>&lt;P&gt;Τελικά βρήκα την απάντηση στο ερώτημα μου...:-)......το κλειδί είναι το DelayValidation. Το παρακάτω link τα εξηγεί αναλυτικά..&lt;/P&gt;
&lt;P&gt;&lt;A href="http://technet.microsoft.com/en-us/library/ms345182.aspx"&gt;http://technet.microsoft.com/en-us/library/ms345182.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Ευχαριστώ ξανά για τη βοήθεια.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Δυναμικό SSIS πακέτο</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37808.aspx</link><pubDate>Wed, 28 Nov 2007 22:40:51 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37808</guid><dc:creator>imanos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37808.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=37808</wfw:commentRss><description>&lt;P&gt;Δυστυχώς δέν το έχω δοκιμάσει έτσι ποτέ .Θα προσπαθήσω πάντως να το κοιτάξω και να σου απαντήσω.&lt;/P&gt;</description></item><item><title>Απ: Δυναμικό SSIS πακέτο</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37805.aspx</link><pubDate>Wed, 28 Nov 2007 22:08:49 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37805</guid><dc:creator>klelia</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37805.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=37805</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt;TEXT-ALIGN:justify;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;FONT color=#0000ff&gt;Ευχαριστώ πολύ για την απάντησή σου, ωστόσο μπλέχτηκα λίγο. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt;TEXT-ALIGN:justify;"&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Μήπως μπορεί να γίνει λίγο πιο απλά; Εννοείς ότι χρησιμοποιώντας απλά ένα πακέτο με ένα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;ForEachLoop&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Container&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;και ένα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;flow&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;task&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;δεν&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;μπορώ να κάνω αυτό που προσπαθώ; Θα περιγράψω λίγο καλύτερα την κατάσταση. Έχω να επιλύσω 2 προβλήματα:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt;TEXT-ALIGN:justify;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt 39pt;TEXT-INDENT:-18pt;TEXT-ALIGN:justify;mso-list:l0 level1 lfo1;tab-stops:list 39.0pt;"&gt;&lt;FONT color=#0000ff&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-fareast-font-family:Verdana;mso-bidi-font-family:Verdana;"&gt;&lt;SPAN style="mso-list:Ignore;"&gt;1.&lt;SPAN style="FONT:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;πολλά &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;xls&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;files&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;από ένα συγκεκριμένο &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;directory&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;θέλω να φορτωθούν σε έναν πίνακα &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt 39pt;TEXT-INDENT:-18pt;TEXT-ALIGN:justify;mso-list:l0 level1 lfo1;tab-stops:list 39.0pt;"&gt;&lt;FONT color=#0000ff&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-fareast-font-family:Verdana;mso-bidi-font-family:Verdana;"&gt;&lt;SPAN style="mso-list:Ignore;"&gt;2.&lt;SPAN style="FONT:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;κάποιες στήλες από &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;xls&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;files&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;που βρίσκονται σε διάφορα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;directories&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;θέλω να φορτωθούν σε ένα δεύτερο πίνακα ( τα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;directories&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;μπορώ να τα ενοποιήσω δεν είναι μεγάλο πρόβλημα)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt;TEXT-ALIGN:justify;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt;TEXT-ALIGN:justify;"&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Έφτιαξα λοιπόν ένα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;flow&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;με ένα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Excel&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;source&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; και ένα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;OLE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;db&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Destination&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;. Το έβαλα στη συνέχεια να εκτελείται μέσα σε ένα &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;ForEachLoop&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;. Από το &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Variable&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;mappings&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; του &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;loop&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;έφτιαξα μια νέα μεταβλητή τύπου &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;για να αποθηκεύει κάθε φορά το όνομα του αρχείου που βρίσκει ο &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;container&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;. Αυτή τη μεταβλητή την έδωσα και στο &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;ConnectionString&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;του &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Excel&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Connection&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Manager&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;έτσι ώστε να αλλάζει κάθε φορά που εκτελείται το &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;loop&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;η πηγή των δεδομένων. Δυστυχώς όμως όταν δίνω τη μεταβλητή στο &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;ConnectionString&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;του &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Excel&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Connection&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;Manager&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; το &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;connection&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;χάνεται και το &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;flow&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;καταστρέφεται αυτομάτως. Μήπως η δημιουργία της μεταβλητής μου δεν είναι σωστή; Μήπως πρέπει να το κάνω με κάποιο &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;mso-ansi-language:EN-GB;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt;TEXT-ALIGN:justify;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0cm 0cm 0pt;"&gt;&lt;FONT face=Verdana&gt;&lt;FONT color=#0000ff&gt;Ευχαριστώ πολύ!&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>Απ: Δυναμικό SSIS πακέτο</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37803.aspx</link><pubDate>Wed, 28 Nov 2007 18:59:52 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37803</guid><dc:creator>imanos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37803.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=37803</wfw:commentRss><description>&lt;P&gt;Μπορείς να δημιουργήσεις ένα SSIS package το οποιό διαβάζει από ένα excel source και κάνει εισαγωγή τα δεδομένα από τά φύλλα του σέ&amp;nbsp;αντίστοιχους πίνακες μίας βάσης.Κατόπιν να το αποθηκεύσεις στο δίσκο σέ όποια θέση επιλέξεις .&lt;/P&gt;
&lt;P&gt;Μπορείς μέσα στην βάση του SQL&amp;nbsp;να δημιουργήσεις ένα πίνακα όπου θα έχει δομή όπως παρακάτω&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;table&lt;/SPAN&gt; ExcelFilesSource&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;(&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;id &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;int&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;identity&lt;/SPAN&gt;(1,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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;excelPath &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;varchar&lt;/SPAN&gt;(255)&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;) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;FONT face=Tahoma size=2&gt;Κατόπιν μπορείς να δημιουργήσεις μία stored procedure στον SQL όπου μέσα από ένα κερσορα του παραπάνω πίνακα&amp;nbsp;θα μπορεί να εκτελέσεις το utility dtexec με την χρήση της xp_cmdshell όπως αυτό περιγράφεται παρακάτω στό help&amp;nbsp;από τα books online&amp;nbsp;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;FONT face=Tahoma size=2&gt;Πηγή Βοηθείας : (ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.SQLSVR.v9.en/sqlcmpt9/html/89edab2d-fb38-4e86-a61e-38621a214154.htm&amp;nbsp;)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;FONT face=Tahoma size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;FONT face=Tahoma size=4&gt;&lt;STRONG&gt;&lt;U&gt;ΚΑΛΗ ΤΥΧΗ&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The &lt;B&gt;dtexec&lt;/B&gt; command prompt utility is used to configure and execute SQL Server 2005 Integration Services (SSIS) packages. The &lt;B&gt;dtexec&lt;/B&gt; utility provides access to all the package configuration and execution features, such as connections, properties, variables, logging, and progress indicators. The &lt;B&gt;dtexec&lt;/B&gt; utility lets you load packages from three sources: a Microsoft SQL Server database, the SSIS service, and the file system.&lt;/P&gt;
&lt;P&gt;The utility has four phases that it proceeds through as it executes. The phases are as follows:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Command sourcing phase: The command prompt reads the list of options and arguments that have been specified. All subsequent phases are skipped if a &lt;B&gt;/?&lt;/B&gt; or &lt;B&gt;/HELP&lt;/B&gt; option is encountered.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;Package load phase: The package specified by the &lt;B&gt;/SQL&lt;/B&gt;, &lt;B&gt;/FILE&lt;/B&gt;, or &lt;B&gt;/DTS&lt;/B&gt; option is loaded.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;Configuration phase: Options are processed in this order:&lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;Options that set package flags, variables, and properties.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;Options that verify the package version and build.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;Options that configure the run-time behavior of the utility, such as reporting.&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;Validation and execution phase: The package is run, or validated without running if the &lt;B&gt;/VALIDATE&lt;/B&gt; option was specified.&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;B&gt;Exit codes returned from dtexec utility &lt;/B&gt;&lt;/P&gt;
&lt;P&gt;When a package runs, &lt;B&gt;dtexec&lt;/B&gt; can return an exit code. The exit code is used to populate the ERRORLEVEL variable, the value of which can then be tested in conditional statements or branching logic within a batch file. The following table lists the values that the &lt;B&gt;dtexec&lt;/B&gt; utility can set when exiting.&lt;/P&gt;
&lt;H3 class=subHeading&gt;&lt;/H3&gt;
&lt;TABLE style="BACKGROUND-COLOR:#cccccc;" cellSpacing=0 cellPadding=0 width="100%" border=1&gt;

&lt;TR&gt;
&lt;TH&gt;Value &lt;/TH&gt;
&lt;TH&gt;Description &lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;The package executed successfully.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;The package failed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;The package was canceled by the user.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;The utility was unable to locate the requested package. The package could not be found.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;5&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;The utility was unable to load the requested package. The package could not be loaded.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;6&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;The utility encountered an internal error of syntactic or semantic errors in the command line.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;
&lt;P&gt;&lt;B&gt;Utility syntax rules&lt;/B&gt; &lt;/P&gt;
&lt;P&gt;All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.&lt;/P&gt;
&lt;P&gt;An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.&lt;/P&gt;
&lt;P&gt;Doubled quotation marks within quoted strings represent escaped single quotation marks.&lt;/P&gt;
&lt;P&gt;Options and arguments are not case-sensitive, except for passwords.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Using dtexec from the xp_cmdshell&lt;/B&gt; &lt;/P&gt;
&lt;P&gt;You can run dtexec from the &lt;B&gt;xp_cmdshell&lt;/B&gt; prompt. The following example shows how to run a package called UpsertData.dtsx and ignore the return code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;EXEC xp_cmdshell 'dtexec /f "C:\UpsertData.dtsx"'&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following example shows how to run the same package and capture the return code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;DECLARE @returncode int
EXEC @returncode = xp_cmdshell 'dtexec /f "C:\UpsertData.dtsx"'&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=alert&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;IMG class=note&gt;&lt;/IMG&gt;Important: &lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;In Microsoft SQL Server 2005, the &lt;B&gt;xp_cmdshell&lt;/B&gt; option is disabled by default on new installations. The option can be enabled by using the Surface Area Configuration tool or by running the &lt;B&gt;sp_configure&lt;/B&gt; system stored procedure. For more information, see xp_cmdshell Option. 
&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;H1 class=heading&gt;&lt;SPAN style="CURSOR:default;"&gt;&lt;IMG class=toggle id=syntaxToggle&gt;&lt;/IMG&gt;Syntax&lt;/SPAN&gt;&lt;/H1&gt;
&lt;DIV class=section id=syntaxSection&gt;
&lt;DIV class=code id=syntaxCodeBlocks&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;PRE&gt;dtexec /option [value] [/option [value]]...&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;H1 class=heading&gt;&lt;SPAN style="CURSOR:default;"&gt;&lt;IMG class=toggle id=parametersToggle&gt;&lt;/IMG&gt;Parameters&lt;/SPAN&gt;&lt;/H1&gt;
&lt;DIV class=section id=parametersSection&gt;
&lt;P&gt;To understand how the command prompt options used with the SQL Server 2000 &lt;B&gt;dtsrun&lt;/B&gt; utility map to the command prompt options used with the SQL Server 2005 &lt;B&gt;dtexec&lt;/B&gt; utility, see dtsrun to dtexec Command Option Mapping. For suggestions about how to upgrade these utilities, see Upgrading dtsrun Command Lines.&lt;/P&gt;
&lt;H3 class=subHeading&gt;&lt;/H3&gt;
&lt;TABLE style="BACKGROUND-COLOR:#cccccc;" cellSpacing=0 cellPadding=0 width="100%" border=1&gt;

&lt;TR&gt;
&lt;TH&gt;Option &lt;/TH&gt;
&lt;TH&gt;Description &lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/? &lt;/B&gt;[&lt;I&gt;option_name&lt;/I&gt;]&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Displays the command prompt options, or displays help for the specified &lt;I&gt;option_name&lt;/I&gt; and then closes the utility. &lt;/P&gt;
&lt;P&gt;If you specify an &lt;I&gt;option_name&lt;/I&gt; argument, &lt;B&gt;dtexec&lt;/B&gt; starts SQL Server Books Online and displays the dtexec Utility topic.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/CheckF[ile]&lt;/B&gt; &lt;I&gt;filespec&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Sets the &lt;B&gt;CheckpointFileName&lt;/B&gt; property on the package to the path and file specified in &lt;I&gt;filespec&lt;/I&gt;. This file is used when the package restarts. If this option is specified and no value is supplied for the file name, the &lt;B&gt;CheckpointFileName&lt;/B&gt; for the package is set to an empty string. If this option is not specified, the values in the package are retained.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/CheckP[ointing]&lt;/B&gt; &lt;I&gt;{on\off}&lt;/I&gt; &lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Sets a value that determines whether the package will use checkpoints during package execution. The value &lt;B&gt;on&lt;/B&gt; specifies that a failed package is to be rerun. When the failed package is rerun, the run-time engine uses the checkpoint file to restart the package from the point of failure.&lt;/P&gt;
&lt;P&gt;The default value is on if the option is declared without a value. Package execution will fail if the value is set to on and the checkpoint file cannot be found. If this option is not specified, the value set in the package is retained. For more information, see Using Checkpoints in Packages. &lt;/P&gt;
&lt;P&gt;The &lt;B&gt;/CheckPointing on&lt;/B&gt; option of dtexec is equivalent to setting the &lt;B&gt;SaveCheckpoints&lt;/B&gt; property of the package to True, and the &lt;B&gt;CheckpointUsage&lt;/B&gt; property to Always.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Com[mandFile]&lt;/B&gt; &lt;I&gt;filespec&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Specifies that during the command sourcing phase of the utility, the file specified in &lt;I&gt;filespec&lt;/I&gt; is opened, options from the file are read until EOF is found in the file. &lt;I&gt;filespec&lt;/I&gt; is a text file that contains additional &lt;B&gt;dtexec&lt;/B&gt; command options. The &lt;I&gt;filespec&lt;/I&gt; argument specifies the file name and path of the command file to associate with the execution of the package.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Conf[igFile]&lt;/B&gt; &lt;I&gt;filespec&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Specifies a configuration file to extract values from. Using this option, you can set a run-time configuration that differs from the configuration that was specified at design time for the package. You can store different configuration settings in an XML configuration file and then load the settings before package execution by using the &lt;B&gt;/ConfigFile&lt;/B&gt; option.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Conn[ection]&lt;/B&gt; &lt;I&gt;id_or_name;connection_string [[;id_or_name;connection_string]…]&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Specifies that the connection manager with the specified name or GUID is located in the package, and specifies a connection string.&lt;/P&gt;
&lt;P&gt;This option requires that both parameters be specified: the connection manager name or GUID must be provided in the &lt;I&gt;id_or_name&lt;/I&gt; argument, and a valid connection string must be specified in the &lt;I&gt;connection_string&lt;/I&gt; argument. For more information, see Connection Managers.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Cons[oleLog]&lt;/B&gt; [[&lt;I&gt;displayoptions&lt;/I&gt;];[&lt;I&gt;list_options&lt;/I&gt;;&lt;I&gt;src_name_or_guid&lt;/I&gt;]...]&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Displays specified log entries to the console during package execution. If this option is omitted, no log entries are shown in the console. If the option is specified without parameters that limit the display, every log entry will display. To limit the entries that are displayed to the console, you can specify the columns to show by using the &lt;I&gt;displayoptions&lt;/I&gt; parameter, and limit the log entry types by using the &lt;I&gt;list_options&lt;/I&gt; parameter.&lt;/P&gt;
&lt;P&gt;The &lt;I&gt;displayoptions&lt;/I&gt; values are as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;N (Name)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;C (Computer)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;O (Operator)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;S (Source Name)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;G (Source GUID)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;X (Execution GUID)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;M (Message)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;T (Time Start and End)&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The &lt;I&gt;list_options&lt;/I&gt; values are as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;I&gt;I&lt;/I&gt; - Specifies the inclusion list. Only the source names or GUIDs that are specified are logged.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;&lt;I&gt;E&lt;/I&gt; - Specifies the exclusion list. The source names or GUIDs that are specified are not logged. &lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;The &lt;I&gt;src_name_or_guid&lt;/I&gt; parameter specified for inclusion or exclusion is an event name, source name, or source GUID. &lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;If you use multiple &lt;B&gt;/ConsoleLog&lt;/B&gt; options on the same command prompt, they interact as follows: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Their order of appearance has no effect.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;If no inclusion lists are present on the command line, exclusion lists are applied against all kinds of log entries.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;If any inclusion lists are present on the command line, exclusion lists are applied against the union of all inclusion lists.&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;For several examples of the &lt;B&gt;/ConsoleLog&lt;/B&gt; option, see the &lt;B&gt;Remarks&lt;/B&gt; section.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/D[ts]&lt;/B&gt; &lt;I&gt;package_path&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Loads a package from the SSIS Package Store. The &lt;I&gt;package_path&lt;/I&gt; argument specifies the relative path of the SSIS package, starting at the root of the SSIS Package Store, and includes the name of the SSIS package. If the path or file name specified in the &lt;I&gt;package_path&lt;/I&gt; argument contains a space, you must put quotation marks around the &lt;I&gt;package_path&lt;/I&gt; argument.&lt;/P&gt;
&lt;P&gt;The &lt;B&gt;/DTS&lt;/B&gt; option cannot be used together with the &lt;B&gt;/File&lt;/B&gt; or &lt;B&gt;/SQL&lt;/B&gt; option. If multiple options are specified, &lt;B&gt;dtexec&lt;/B&gt; fails.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/De[crypt]&lt;/B&gt; &lt;I&gt;password&lt;/I&gt; &lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Sets the decryption password that is used when you load a package with password encryption.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/F[ile]&lt;/B&gt; &lt;I&gt;filespec&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Loads a package that is saved in the file system. The &lt;I&gt;filespec&lt;/I&gt; argument specifies the path and file name of the package. You can specify the path as either a Universal Naming Convention (UNC) path or a local path. If the path or file name specified in the &lt;I&gt;filespec&lt;/I&gt; argument contains a space, you must put quotation marks around the &lt;I&gt;filespec&lt;/I&gt; argument.&lt;/P&gt;
&lt;P&gt;The &lt;B&gt;/File&lt;/B&gt; option cannot be used together with the &lt;B&gt;/DTS&lt;/B&gt; or &lt;B&gt;/SQL&lt;/B&gt; option. If multiple options are specified, &lt;B&gt;dtexec&lt;/B&gt; fails.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/H[elp]&lt;/B&gt; [&lt;I&gt;option_name&lt;/I&gt;]&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Displays help for the options, or displays help for the specified &lt;I&gt;option_name&lt;/I&gt; and closes the utility. &lt;/P&gt;
&lt;P&gt;If you specify an &lt;I&gt;option_name&lt;/I&gt; argument, &lt;B&gt;dtexec&lt;/B&gt; starts SQL Server Books Online and displays the dtexec Utility topic.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/L[ogger]&lt;/B&gt; &lt;I&gt;classid_orprogid;configstring&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Associates one or more log providers with the execution of an SSIS package. The &lt;I&gt;classid_orprogid&lt;/I&gt; parameter specifies the log provider, and can be specified as a class GUID. The &lt;I&gt;configstring&lt;/I&gt; is the string that is used to configure the log provider.&lt;/P&gt;
&lt;P&gt;The following list shows the available log providers:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Text file:&lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;ProgID: DTS.LogProviderTextFile.1&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;ClassID: {59B2C6A5-663F-4C20-8863-C83F9B72E2EB}&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;SQL Server Profiler:&lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;ProgID: DTS.LogProviderSQLProfiler.1&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;ClassID: {5C0B8D21-E9AA-462E-BA34-30FF5F7A42A1}&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;SQL Server:&lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;ProgID: DTS.LogProviderSQLServer.1&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;ClassID: {6AA833A1-E4B2-4431-831B-DE695049DC61}&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;Windows Event Log:&lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;ProgID: DTS.LogProviderEventLog.1&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;ClassID: {97634F75-1DC7-4F1F-8A4C-DAF0E13AAA22}&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;XML File:&lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;ProgID: DTS.LogProviderXMLFile.1&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;ClassID: {AFED6884-619C-484F-9A09-F42D56E1A7EA}&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/M[axConcurrent]&lt;/B&gt; &lt;I&gt;concurrent_executables&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Specifies the number of executable files that the package can run concurrently. The value specified must be either a non-negative integer, or -1. A value of -1 means that SSIS will allow a maximum number of concurrently running executables that is equal to the total number of processors on the computer executing the package, plus two.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/P[assword]&lt;/B&gt; &lt;I&gt;password&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Allows the retrieval of a package that is protected by SQL Server Authentication. This option is used together with the &lt;B&gt;/User&lt;/B&gt; option. If the &lt;B&gt;/Password&lt;/B&gt; option is omitted and the &lt;B&gt;/User&lt;/B&gt; option is used, a blank password is used. The &lt;I&gt;password&lt;/I&gt; value may be quoted.&lt;/P&gt;
&lt;DIV class=alert&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;IMG class=note&gt;&lt;/IMG&gt;Security Note: &lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;When possible, use Windows Authentication. 
&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Rem&lt;/B&gt; &lt;I&gt;comment&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Includes comments on the command prompt or in command files. The argument is optional. The value of &lt;I&gt;comment&lt;/I&gt; is a string that must be enclosed in quotation marks, or contain no white space. If no argument is specified, a blank line is inserted. &lt;I&gt;comment&lt;/I&gt; values are discarded during the command sourcing phase.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Rep[orting]&lt;/B&gt; &lt;I&gt;level&lt;/I&gt; [&lt;I&gt;;event_guid_or_name&lt;/I&gt;[&lt;I&gt;;event_guid_or_name&lt;/I&gt;[...]]&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Specifies what types of messages to report. The available reporting options for &lt;I&gt;level&lt;/I&gt; are as follows:&lt;/P&gt;
&lt;P&gt;&lt;B&gt;N&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; No reporting.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;E&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Errors are reported.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;W&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Warnings are reported.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;I&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Informational messages are reported.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;C&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Custom events are reported.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;D&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Flow task events are reported.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;P&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Progress is reported.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;V&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verbose reporting.&lt;/P&gt;
&lt;P&gt;The arguments of V and N are mutually exclusive to all other arguments; they must be specified alone. If the &lt;B&gt;/Reporting&lt;/B&gt; option is not specified then the default level is &lt;B&gt;E&lt;/B&gt; (errors), &lt;B&gt;W&lt;/B&gt; (warnings), and &lt;B&gt;P&lt;/B&gt; (progress).&lt;/P&gt;
&lt;P&gt;All events are preceded with a timestamp in the format "YY/MM/DD HH:MM:SS", and a GUID or friendly name if available. &lt;/P&gt;
&lt;P&gt;The optional parameter &lt;I&gt;event_guid_or_name&lt;/I&gt; is a list of exceptions to the log providers. The exception specifies the events that are not logged that otherwise might have been logged.&lt;/P&gt;
&lt;P&gt;You do not have to exclude an event if the event is not ordinarily logged by default&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Res[tart]&lt;/B&gt; {&lt;I&gt;deny | force | ifPossible&lt;/I&gt;}&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Specifies a new value for the CheckpointUsage property on the package. The meaning of the parameters are as follows:&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Deny&lt;/I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sets &lt;B&gt;CheckpointUsage&lt;/B&gt; property to DTSCU_NEVER.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Force&lt;/I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sets &lt;B&gt;CheckpointUsage&lt;/B&gt; property to DTSCU_ALWAYS.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;ifPossible&lt;/I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sets &lt;B&gt;CheckpointUsage&lt;/B&gt; property to DTSCU_IFEXISTS.&lt;/P&gt;
&lt;P&gt;The default value of &lt;B&gt;force&lt;/B&gt; is used if no value is specified. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Set&lt;/B&gt; &lt;I&gt;propertyPath;value&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Overrides the configuration of a variable, property, container, log provider, Foreach enumerator, or connection within a package. When this option is used, &lt;B&gt;/SET&lt;/B&gt; changes the &lt;I&gt;propertyPath&lt;/I&gt; argument to the value specified. Multiple &lt;B&gt;/SET&lt;/B&gt; options can be specified.&lt;/P&gt;
&lt;P&gt;You can determine the value of &lt;I&gt;propertyPath&lt;/I&gt; by running the Package Configuration Wizard. The paths for items that you select are displayed on the final &lt;B&gt;Completing the Wizard&lt;/B&gt; page, and can be copied and pasted. If you have used the wizard only for this purpose, you can cancel the wizard after you copy the paths.&lt;/P&gt;
&lt;P&gt;The following is an example of executing a package and providing a new value for a variable:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;dtexec /f mypackage.dtsx /set \package.variables[myvariable].Value;myvalue&lt;/CODE&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Ser[ver]&lt;/B&gt; &lt;I&gt;server&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). When the &lt;B&gt;/SQL&lt;/B&gt; or &lt;B&gt;/DTS&lt;/B&gt; option is specified, this option specifies the name of the server from which to retrieve the package. If you omit the &lt;B&gt;/Server&lt;/B&gt; option and the &lt;B&gt;/SQL&lt;/B&gt; or &lt;B&gt;/DTS&lt;/B&gt; option is specified, package execution is tried against the local server. The &lt;I&gt;server_instance&lt;/I&gt; value may be quoted.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/SQ[L]&lt;/B&gt; &lt;I&gt;package_path&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Loads a package that is stored in SQL Server. The &lt;I&gt;package_path&lt;/I&gt; argument specifies the name of the package to retrieve. If folders are included in the path, they are terminated with backslashes ("\"). The &lt;I&gt;package_path&lt;/I&gt; value can be quoted. If the path or file name specified in the &lt;I&gt;package_path&lt;/I&gt; argument contains a space, you must put quotation marks around the &lt;I&gt;package_path&lt;/I&gt; argument.&lt;/P&gt;
&lt;P&gt;You can use the &lt;B&gt;/User&lt;/B&gt;, &lt;B&gt;/Password&lt;/B&gt;, and &lt;B&gt;/Server&lt;/B&gt; options together with the &lt;B&gt;/SQL&lt;/B&gt; option.&lt;/P&gt;
&lt;P&gt;If you omit the &lt;B&gt;/User&lt;/B&gt; option, Windows Authentication is used to access the package. If you use the &lt;B&gt;/User&lt;/B&gt; option, the &lt;B&gt;/User&lt;/B&gt; login name specified is associated with SQL Server Authentication. &lt;/P&gt;
&lt;P&gt;The &lt;B&gt;/Password&lt;/B&gt; option is used only together with the &lt;B&gt;/User&lt;/B&gt; option. If you use the &lt;B&gt;/Password&lt;/B&gt; option, the package is accessed with the user name and password information provided. If you omit the &lt;B&gt;/Password&lt;/B&gt; option, a blank password is used.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Security Note&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;When possible, use Windows Authentication.&lt;/P&gt;
&lt;P&gt;If the &lt;B&gt;/Server&lt;/B&gt; option is omitted, the default local instance of SQL Server is assumed.&lt;/P&gt;
&lt;P&gt;The &lt;B&gt;/SQL&lt;/B&gt; option cannot be used together with the &lt;B&gt;/DTS&lt;/B&gt; or &lt;B&gt;/File&lt;/B&gt; option. If multiple options are specified, &lt;B&gt;dtexec&lt;/B&gt; fails.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Su[m]&lt;/B&gt; &lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Shows an incremental counter that contains the number of rows that will be received by the next component. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/U[ser]&lt;/B&gt; &lt;I&gt;user_name&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Allows the retrieval of a package that is protected by SQL Server Authentication. This option is used only when the &lt;B&gt;/SQL&lt;/B&gt; option is specified. The &lt;I&gt;user_name&lt;/I&gt; value can be quoted.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Security Note&lt;/B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;When possible, use Windows Authentication.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/Va[lidate]&lt;/B&gt; &lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Stops the execution of the package after the validatation phase, without actually running the package. During validation, use of the &lt;B&gt;/WarnAsError&lt;/B&gt; option causes &lt;B&gt;dtexec&lt;/B&gt; to treat a warning as an error; therefore the package fails if a warning occurs during validation.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/VerifyB[uild]&lt;/B&gt; &lt;I&gt;major&lt;/I&gt;[&lt;I&gt;;minor&lt;/I&gt;[&lt;I&gt;;build&lt;/I&gt;]]&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Verifies the build number of a package against the build numbers that were specified during the verification phase in the &lt;I&gt;major&lt;/I&gt;, &lt;I&gt;minor&lt;/I&gt;, and &lt;I&gt;build&lt;/I&gt; arguments. If a mismatch occurs, the package will not execute.&lt;/P&gt;
&lt;P&gt;The values are long integers. The argument can have one of three forms, with a value for &lt;I&gt;major&lt;/I&gt; always required:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;I&gt;major &lt;/I&gt;&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;&lt;I&gt;major&lt;/I&gt;;&lt;I&gt;minor&lt;/I&gt; &lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;&lt;I&gt;major&lt;/I&gt;;&lt;I&gt; minor&lt;/I&gt;;&lt;I&gt; build&lt;/I&gt;&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/VerifyP[ackageID]&lt;/B&gt; &lt;I&gt;packageID&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Verifies the GUID of the package to be executed by comparing it to the value specified in the &lt;I&gt;package_id&lt;/I&gt; argument.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/VerifyS[igned]&lt;/B&gt; &lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). If specified, this option causes the package to fail if the package is not signed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/VerifyV[ersionID]&lt;/B&gt; &lt;I&gt;versionID&lt;/I&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Verifies the version GUID of a package to be executed by comparing it to the value specified in the &lt;I&gt;version_id&lt;/I&gt; argument during package Validation Phase.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;B&gt;/W[arnAsError]&lt;/B&gt; &lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;(Optional). Causes the package to consider a warning as an error; therefore, the package will fail if a warning occurs during validation. If no warnings occur during validation and the &lt;B&gt;/Validate&lt;/B&gt; option is not specified, the package is executed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;H1 class=heading&gt;&lt;SPAN style="CURSOR:default;"&gt;&lt;IMG class=toggle id=remarksToggle&gt;&lt;/IMG&gt;Remarks&lt;/SPAN&gt;&lt;/H1&gt;
&lt;DIV class=section id=remarksSection&gt;
&lt;P&gt;The order in which you specify command options can influence the way in which the package executes: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Options are processed in the order they are encountered on the command line. Command files are read in as they are encountered on the command line. The commands in the command file are also processed in the order they are encountered.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;If the same option, parameter, or variable appears in the same command line statement more than one time, the last instance of the option takes precedence.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;&lt;B&gt;/Set&lt;/B&gt; and &lt;B&gt;/ConfigFile&lt;/B&gt; options are processed in the order they are encountered.&lt;BR&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;
&lt;H1 class=heading&gt;&lt;SPAN style="CURSOR:default;"&gt;&lt;IMG class=toggle id=sectionToggle0&gt;&lt;/IMG&gt;Examples&lt;/SPAN&gt;&lt;/H1&gt;
&lt;DIV class=section id=sectionSection0&gt;
&lt;P&gt;&lt;B&gt;Running Packages&lt;/B&gt; &lt;/P&gt;
&lt;P&gt;To execute an SSIS package saved to SQL Server using Windows authentication, use the following code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;dtexec /sq pkgOne /ser productionServer&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;To execute an SSIS package saved to the File System folder in the SSIS Package Store, use the following code: &lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;dtexec /dts "\File System\MyPackage"&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;To validate a package that uses Windows Authentication and is saved in SQL Server without executing the package, use the following code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;dtexec /sq pkgOne /ser productionServer /va&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;To execute an SSIS package that is saved in the file system, use the following code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;dtexec /f "c:\pkgOne.dtsx" &lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;To execute an SSIS package that is saved in the file system, and specify logging options, use the following code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;dtexec /f "c:\pkgOne.dtsx" /l "DTS.LogProviderTextFile;c:\log.txt"&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;To execute a package that uses Windows Authentication and is saved to the default local instance of SQL Server, and verify the version before it is executed, use the following code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;dtexec /sq pkgOne /verifyv {c200e360-38c5-11c5-11ce-ae62-08002b2b79ef}&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;To execute an SSIS package that is saved in the file system and configured externally, use the following code:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;dtexec /f "c:\pkgOne.dtsx" /conf "c:\pkgOneConfig.cfg"&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=alert&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;IMG class=note&gt;&lt;/IMG&gt;Note: &lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;The &lt;I&gt;package_path&lt;/I&gt; or &lt;I&gt;filespec&lt;/I&gt; arguments of the /SQL, /DTS, or /FILE options must be enclosed in quotation marks if the path or file name contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space. 
&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;B&gt;Logging Option&lt;/B&gt; &lt;/P&gt;
&lt;P&gt;If there are three log entry types of A, B, and C, the following &lt;B&gt;ConsoleLog&lt;/B&gt; option without a parameter displays all three log types with all fields:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following option displays all log types, but with the Name and Message columns only:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG NM&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following option displays all columns, but only for log entry type A:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG I;LogEntryTypeA&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following option displays only log entry type A, with Name and Message columns:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG NM;I;LogEntryTypeA&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following option displays log entries for log entry types A and B:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG I;LogEntryTypeA;LogEntryTypeB&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;You can achieve the same results by using multiple &lt;B&gt;ConsoleLog&lt;/B&gt; options:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG I;LogEntryTypeA /CONSOLELOG I;LogEntryTypeB&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;If the &lt;B&gt;ConsoleLog&lt;/B&gt; option is used without parameters, all fields are displayed. The inclusion of a &lt;I&gt;list_options&lt;/I&gt; parameter causes the following to displays only log entry type A, with all fields:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG NM;I;LogEntryTypeA /CONSOLELOG&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following displays all log entries except log entry type A: that is, it displays log entry types B and C:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG E;LogEntryTypeA&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following example achieves the same results by using multiple &lt;B&gt;ConsoleLog&lt;/B&gt; options and a single exclusion:&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG E;LogEntryTypeA /CONSOLELOG
/CONSOLELOG E;LogEntryTypeA /CONSOLELOG E;LogEntryTypeA
/CONSOLELOG E;LogEntryTypeA;LogEntryTypeA&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;The following example displays no log messages, because when a log file type is found in both the included and excluded lists, it will be excluded.&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/CONSOLELOG E;LogEntryTypeA /CONSOLELOG I;LogEntryTypeA&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;B&gt;SET Option&lt;/B&gt; &lt;/P&gt;
&lt;P&gt;The following shows how to use the &lt;B&gt;/SET&lt;/B&gt; option, which lets you change the value of any package property or variable when you start the package from the command line.&lt;/P&gt;
&lt;DIV class=code&gt;&lt;SPAN&gt;
&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;

&lt;TR&gt;
&lt;TH align=left&gt;&lt;/TH&gt;
&lt;TH align=right&gt;&lt;SPAN class=copyCode style="CURSOR:default;"&gt;&lt;IMG class=copyCodeImage align=absMiddle&gt;&lt;/IMG&gt;Copy Code&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colSpan=2&gt;&lt;PRE&gt;/SET \package\DataFlowTask.Variables[User::MyVariable].Value;newValue&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description></item><item><title>Δυναμικό SSIS πακέτο</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/37779.aspx</link><pubDate>Wed, 28 Nov 2007 04:39:52 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:37779</guid><dc:creator>klelia</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/37779.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=37779</wfw:commentRss><description>&lt;P&gt;&lt;FONT color=#0000ff&gt;Καλησπέρα,&lt;BR&gt;Προσπαθώ να δημιουργήσω ένα δυναμικό πακέτο SSIS. Θέλω το path (και το filename)&amp;nbsp;του source&amp;nbsp;connection manager να αλλάζει δυναμικά. Χρησιμοποιώ λοιπόν στο data flow μου έναν excel connection manager(στο source) και έχω βάλει το data flow να εκτελείται μέσα σε έναν foreach loop container. Στον container έχω προσθέσει μια variable η οποία παίρνει κάθε φορά το όνομα και το path του αρχείου που βρίσκει ο container. Στον excel connection manager προσθέτω στα expressions το ConnectionString να αντλεί την τιμή του από τη variable που έχω δημιουργήσει. Ωστόσο μόλις προσθέσω αυτό το expression εμφανίζεται το παρακάτω σφάλμα.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;TITLE: Microsoft Visual Studio&lt;BR&gt;------------------------------&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;Error at Package [Connection manager "Excel Connection Manager"]: An OLE DB error has occurred. Error code: 0x80040E4D.Error at Data Flow Task [Excel Source [9]]: The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;------------------------------&lt;BR&gt;ADDITIONAL INFORMATION:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;------------------------------&lt;BR&gt;BUTTONS:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;OK&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT color=#0000ff&gt;Θα εκτιμούσα τη βοήθειά σας...Ευχαριστώ...............&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description></item></channel></rss>