SQL Server Integration Services ForumAll questions related to SSIS, transforms/data flow, control flow, and other related topics.© 2009 Microsoft Corporation. All rights reserved.Mon, 23 Jul 2012 10:42:04 Z00e50af7-5f43-43ad-af05-d98b73c1f760http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/6ff3948b-1c1c-466d-bcf3-e6fee55818fahttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/6ff3948b-1c1c-466d-bcf3-e6fee55818fakdinukhttp://social.msdn.microsoft.com/profile/kdinuk/?type=forumDifferent sheetname for each loop container<p>I followed the steps given in&nbsp;<span style="color:#333333; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13.333333015441895px; line-height:16.66666603088379px; text-align:left">.</span><a href="http://sql-bi-dev.blogspot.in/2010/06/foreach-loop-container-in-ssis.html" style="border:none; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; margin:0px; outline:0px; padding:0px; color:#0066dd; text-decoration:none; list-style-type:none; font-size:13.333333015441895px; line-height:16.66666603088379px; text-align:left">http://sql-bi-dev.blogspot.in/2010/06/foreach-loop-container-in-ssis.html</a></p> <p>to read data. But there is a change in sheetname. How do I handle when am using the steps given in the link and what and where should I change?</p>Sun, 22 Jul 2012 10:59:33 Z2012-07-23T09:44:42Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/0d4ece1e-f016-4e62-964f-f73602ff64behttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/0d4ece1e-f016-4e62-964f-f73602ff64beAshishSingh_DWHhttp://social.msdn.microsoft.com/profile/ashishsingh_dwh/?type=forumError in upload XLS file through SSIS<p>First i create Data Flow Task, in that i create Excel Source &amp; configure particular xl file in it. Preview is file. But when i connecting this OLEDB Destination &amp; define connection with Excel source .... Preview query result is showing Nothing &amp; while executing its giving error</p> <p>[Excel Source [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.&nbsp; The AcquireConnection method call to the connection manager &quot;Excel Connection Manager&quot; failed with error code 0xC00F9304.&nbsp; There may be error messages posted before this with more information on why the AcquireConnection method call failed.<br/> </p> <p></p> <p>[SSIS.Pipeline] Error: component &quot;Excel Source&quot; (1) failed validation and returned error code 0xC020801C.<br/> </p>Mon, 23 Jul 2012 08:47:35 Z2012-07-23T09:23:35Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/4ceae4fa-cafe-44ec-9c7f-e63f43cb422dhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/4ceae4fa-cafe-44ec-9c7f-e63f43cb422dsathiya.shttp://social.msdn.microsoft.com/profile/sathiya.s/?type=forumError in Excel Destination <p><strong>[Excel Destination [1663]] Error: SSIS Error Code DTS_E_OLEDBERROR.&nbsp; An OLE DB error has occurred. Error code: 0x80040E21. </strong><strong></strong></p> <p><strong>[Excel Destination [1663]] Error: Cannot create an OLE DB accessor. Verify that the column metadata is valid. </strong></p> <p><strong>[DTS.Pipeline] Error: component &quot;Excel Destination&quot; (1663) failed the pre-execute phase and returned error code 0xC0202025. </strong></p> <p><strong>[DTS.Pipeline] Information: &quot;component &quot;Excel Destination&quot; (1663)&quot; wrote 0 rows. </strong></p> <p><strong>Task Data Flow Task 1 failed</strong></p> <p><strong></strong></p> <p><strong></strong></p> <p><strong></strong></p>Fri, 20 Jul 2012 14:37:27 Z2012-07-23T09:18:39Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/c313e57f-dc81-4ff7-a27c-6c2d3a0a052chttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/c313e57f-dc81-4ff7-a27c-6c2d3a0a052cRevathy Menonhttp://social.msdn.microsoft.com/profile/revathy%20menon/?type=forumInterview QuestionsHi<br/>Could any one of you guys help me with Interview questions (with Answers) in SSIS?..<br/><br/>Thanks in advance..Thu, 10 Sep 2009 16:04:02 Z2012-07-23T08:12:04Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/155a54a7-dea4-4132-9f40-9153f6c9c12ehttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/155a54a7-dea4-4132-9f40-9153f6c9c12eGaurav_Xhttp://social.msdn.microsoft.com/profile/gaurav_x/?type=forumError: Incompatible transaction context was specified for a retained connection. <p>Hi All,</p> <p>Problem Scenario:</p> <p>Implemented One package with a single sequence container, inside that there are 5-6 DFT and Data is read from multiple excel sheets and then after all validations inserted into database. So DFT are implemented somewaht like this -</p> <p>DFT1 - To check row Count from Source Excel and store same into variable</p> <p>DFT2- Data Validation based on Lookup operations and in same DFT if data is valid it is dumped into one CSV file at end. which is also updating RowEnd variable count.</p> <p>Precednce Constarint: If RowSource count == Row END validated count then to DFT 3</p> <p>DFT3- I am simply reading same buffer CSV file and inserting it into SQL server(Employees table).</p> <p>NEXT UPON success I have one execute SQL task which reads same table where I have dumped the data and inserts into different table after fetching from Employees table...</p> <p>After this likewsie to above I am reading some more excel sheets and inserting into 2 more tables with above DFT logic.</p> <p>My package contains Isolation level as &quot;Read Commited&quot;(Although I tried with snapshot &amp; Read uncomitted, Serilizable&nbsp;also). All my DFT are under one sequence container....which by Transaction property set to - Support....When I&nbsp;change Transaction property to &quot;Required&quot; my package fails with this error -</p> <p>Error: Incompatible transaction context was specified for a retained connection. <br/> This connection has been established under a different transaction context. Retained connections can be used under exactly one transaction context.</p> <p>Just one more info Retain Connection property is set to True for Sequence Container and package also.</p> <p>For now I have implemented Explicit Transaction by specifying Execute SQL task (BEGIN TRAN) and in case of any errors &quot;Rollback Transaction&quot;...this seems to be working perfectly also, but I want to use DTSC service for same. Yes just for FYI my DTC service is up and running for Netowrk connections with allowed for any inbound connections on server, User credentials used for SSIS package are sysadmin role mapped.</p> <p>I am not able to understand why package is continously getting failed when I set Transaction property to Required?</p> <p>Any help will be appreciated -</p>Mon, 16 Jul 2012 13:18:20 Z2012-07-23T08:08:25Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/b9c2e061-f6fd-49b0-ad81-eeb64c18f47ahttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/b9c2e061-f6fd-49b0-ad81-eeb64c18f47aSifiso W. Ndlovuhttp://social.msdn.microsoft.com/profile/sifiso%20w.%20ndlovu/?type=forumSSIS 2012 Script Task Error<p>Hi Guys,</p> <p>What causes the below error? It does not come up&nbsp;every time&nbsp;I run the script task in debug mode, but when it does appear it's annoying.</p> <p>Could I be missing an update?</p> <p><img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/141498"></p> <p></p><hr class="sig"><p>MCTS, MCITP: BI Technical Consultant| Karabina, South Africa Blog: www.selectsifiso.net</p>Mon, 23 Jul 2012 08:06:52 Z2012-07-23T08:41:40Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/81f65f49-444d-46ce-93ce-55701723d8a6http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/81f65f49-444d-46ce-93ce-55701723d8a6Valiant1982http://social.msdn.microsoft.com/profile/valiant1982/?type=forumHow to get three first lines from multi text files to database<p>Hi, </p> <p>&nbsp;&nbsp; I have about 500 text files.&nbsp; I need to import data from three first lines in those text file into database. How can I do this?</p> <p>Thanks</p>Mon, 23 Jul 2012 05:02:33 Z2012-07-23T08:49:52Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/4a40c34a-dd6d-4d3d-951d-2159d329af41http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/4a40c34a-dd6d-4d3d-951d-2159d329af41MarcusDallasandrohttp://social.msdn.microsoft.com/profile/marcusdallasandro/?type=forumOLE Db Source Object Truncating CHR(0) <p>Hi I am experiencing a truncation of characters following the incidence of CHR(0) in my encrypted data colulm.</p> <p>I am attempting to iterate through the rows of the resultset in an SSIS Script Component. The OLE DB Source produces a column with the value:</p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">a¤ˆÀµ=b8Ä&#43;¤0Ž¢&gt;o</span><br/> </p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">The ascii values are:</span><br/> </p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">a-97</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">¤-164</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">ˆ-136</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">À-192</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">µ-181</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">=-61</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">b-98</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">8-56</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">Ä-196</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">&#43;-43</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">¤-164</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">_0</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">Ž-142</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">¢-162</span></p> <p style="line-height:19px; margin-bottom:0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:#2a2a2a"> <span style="line-height:14px; font-size:8pt; font-family:'Courier New'">&gt;-62</span></p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px"></span><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px"></span><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">The SSIS Script component sees this as&nbsp;</span><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">a¤ˆÀµ=b8Ä&#43;¤ &nbsp;- truncating the trailing characters after the&nbsp;</span><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">¤ character.</span></p> <p><span style="font-size:15px; line-height:19px; color:#2a2a2a; font-family:Calibri,sans-serif">I am unsure if the OLE DB Source column is truncated when exposed in the InputBuffer to the SSIS Script Component or if the truncation is&nbsp;</span><span style="font-size:15px; line-height:19px; color:#2a2a2a; font-family:Calibri,sans-serif">occurring</span><span style="font-size:15px; line-height:19px; color:#2a2a2a; font-family:Calibri,sans-serif">&nbsp;as a behavior of the OLE DB Source itself.</span><br/> </p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">I have tried changing the code page and switching over to Unicode with same results.</span></p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">I am unable to apply any Replace methods because the CHR(0) is part of the encoded data that I need to decode.</span></p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">Do I need to send the data as a varbinary and do something else?</span></p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px">Advance thanks to any efforts in responding.</span><br/> </p> <p><span style="color:#2a2a2a; font-family:Calibri,sans-serif; font-size:15px; line-height:19px"></span></p> <p></p> <p></p>Sun, 22 Jul 2012 19:50:36 Z2012-07-23T07:51:56Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/c5e84f1f-2c3f-4c2c-aff7-e272d268c1f5http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/c5e84f1f-2c3f-4c2c-aff7-e272d268c1f5Smash126http://social.msdn.microsoft.com/profile/smash126/?type=forumIssue with data type when importing rows from Flat File to SQL Server<p>Package fails when importing data from flat to SQL Server</p> <p>Number of columns in Flat File </p> <p>ProductID,Name,ProductNumber,MakeFlag,FinishedGoodsFlag,Color,SafetyStockLevel,ReorderPoint,StandardCost</p> <p>Table structure in SQL Server<br/> </p> <p>&nbsp;&nbsp;&nbsp; [ProductID] [int] NULL,<br/> &nbsp;&nbsp; &nbsp;[Name] [nvarchar](50) NULL,<br/> &nbsp;&nbsp; &nbsp;[ProductNumber] [nvarchar](25) NULL,<br/> &nbsp;&nbsp; &nbsp;[MakeFlag] [bit] NULL,<br/> &nbsp;&nbsp; &nbsp;[FinishedGoodsFlag] [bit] NULL,<br/> &nbsp;&nbsp; &nbsp;[Color] [nvarchar](15) NULL,<br/> &nbsp;&nbsp; &nbsp;[SafetyStockLevel] [smallint] NULL</p> <p>Used derived column to convert the data types </p> <p>MakeFlag1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;add as new column&gt;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;MakeFlag == &quot;False&quot; ? &quot;0&quot; : &quot;1&quot;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Unicode string [DT_WSTR]&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp;</p> <p>FinishedGoodsFlag1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;add as new column&gt;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;FinishedGoodsFlag == &quot;False&quot; ? &quot;0&quot; : &quot;1&quot;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Unicode string [DT_WSTR]&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</p> <p>SafetyStockLevel1&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;add as new column&gt;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;(DT_I2)SafetyStockLevel&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;two-byte signed integer [DT_I2]&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</p> <p></p> <p>Mapped the columns correctly&nbsp; with the newly created derived columns in OLE DB destination.I am getting error message in the case of&nbsp; &nbsp; 'SafetyStockLevel' . As far i know everything has been done properly here what could be the issue.Please correct me if i am going wrong any where. Please find the error message as below&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <br/> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br/> </p> <p>Error: 0xC0049064 at Data Flow Task, Derived Column [58]: An error occurred while attempting to perform a type cast.<br/> Error: 0xC0209029 at Data Flow Task, Derived Column [58]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.&nbsp; The &quot;component &quot;Derived Column&quot; (58)&quot; failed because error code 0xC0049064 occurred, and the error row disposition on &quot;output column &quot;SafetyStockLevel1&quot; (83)&quot; specifies failure on error. An error occurred on the specified object of the specified component.&nbsp; There may be error messages posted before this with more information about the failure.<br/> Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.&nbsp; The ProcessInput method on component &quot;Derived Column&quot; (58) failed with error code 0xC0209029 while processing input &quot;Derived Column Input&quot; (59). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.&nbsp; There may be error messages posted before this with more information about the failure&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <br/> </p> <p></p> <p></p> <p><br/> </p> <p><br/> </p> <hr> <p>Smash126</p> <br/> <br/>Fri, 20 Jul 2012 18:53:25 Z2012-07-23T07:27:27Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9ab86c74-c956-44ab-abb7-f40fb8e6f45bhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9ab86c74-c956-44ab-abb7-f40fb8e6f45bBiaxhttp://social.msdn.microsoft.com/profile/biax/?type=forumHow can I add non additive measure to destination database<p><img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/141330"></p> <p>I have 3 non additive measure that were calculated in derived column transformation.Now, I did the aggregate transofrmation to sum up my additive measure as the the last 3 I didnt put them in the aggregate but when I was trying to insert my measure to fact table those last 3 didn't show up ! How to insert them in the fact table should I use another transofrmation and what is it ? </p> <p></p> &nbsp;Sun, 22 Jul 2012 19:24:58 Z2012-07-23T06:26:31Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/fa5d74ae-2794-4e52-afbf-c55c33b26c86http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/fa5d74ae-2794-4e52-afbf-c55c33b26c86Vipin jhahttp://social.msdn.microsoft.com/profile/vipin%20jha/?type=forumExcle file does not found in source folderHi All,<br/> <br/> I have a package which contains approx 10 &nbsp;data flow task to read Excel file and populate a SQL table. Excel File source task will read input file from the INPUT folder and process them and at the end it will delete from the folders. So, sometimes there will not be any input files present (if support team does not populate new input files) in the INPUT folder and my package throws error that source file does not exist.<br/> My aim is to don’t process the Data Flow task when &nbsp;file not present and go to next&nbsp;Data flow&nbsp;task. But still try trying to execute the Dataflow task, so getting an error.<br/> &nbsp;I wanted to make package should NOT run such situation. Since we do not have the File in Source path.&nbsp;<br/> Thanks in advance.<br/> Vipin jha<hr class="sig"><p>Thankx & regards, Vipin jha MCP</p>Sun, 22 Jul 2012 17:04:45 Z2012-07-23T06:40:55Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/01e67723-854b-4aee-9108-ba26ac65c833http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/01e67723-854b-4aee-9108-ba26ac65c833kdinukhttp://social.msdn.microsoft.com/profile/kdinuk/?type=forumdifferent excel sheet name in different workbooks <p>I am having two folders - &nbsp;C:\2012\apr\4 excel files ; say file1,file2,fil3,file4 &amp; C:\2012\june\ 4 excel files say file1,file2,file3,file4. I am reading these files using for each file...The problem is out of &nbsp;4 excel files, two sheets name are same it means file1-sheet1,file2-sheet2,file3-sheet1,file4-sheet2 and same situation in other folder also. I created two variables query1, query2 storing select statements to fetch data.&nbsp;</p> <p>I followed the steps as mentioned in the site...<a href="http://sql-bi-dev.blogspot.in/2010/06/foreach-loop-container-in-ssis.html">http://sql-bi-dev.blogspot.in/2010/06/foreach-loop-container-in-ssis.html</a>&nbsp;to get data.</p> <p>My requirement - when I read these files, it shouldn't throw an error because of different sheetname. How do I handle this? I am not using any code.&nbsp;</p>Thu, 19 Jul 2012 19:01:16 Z2012-07-23T05:05:06Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/cf266b12-9302-42a1-b157-ecd7be89c619http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/cf266b12-9302-42a1-b157-ecd7be89c619guest369http://social.msdn.microsoft.com/profile/guest369/?type=forumSP executed around 6 mins in Execute SQL Task but still executing from past 30 mins in SSMS. I have huge SP which is executed around 6 mins in Execute SQL Task in my SSIS package. However, It's still executing from past 30 mins in SSMS query window. Any thoughts? PleaseThu, 19 Jul 2012 21:15:05 Z2012-07-23T02:39:31Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/61a1cf91-2cb2-4632-b6c0-9a6f31284282http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/61a1cf91-2cb2-4632-b6c0-9a6f31284282r_nishhttp://social.msdn.microsoft.com/profile/r_nish/?type=forumretrieve the address url from the hyperlink property <div> <p>Hi, </p> <p>I have a scenario: <br/> In the html page (eg: <a href="http://website.com/home.html" target="_blank"><span id="x_x_lw_1342478142_1">http://website.com/home.html</span></a>), there is a hyperlink. I right click the hyperlink to see the properties and that where i see the address (url) to the file (eg: <a href="http://website.com/sample.zip" target="_blank"><span id="x_x_lw_1342478142_2">http://website.com/sample.zip</span></a>&quot;).&nbsp;<br/> <br/> how can i use the webclient or http method in script task if i dont know the file path. </p> <p>(or) </p> <p>how can i retrieve the address url from the hyperlink property using vb.net.</p> <p>I appreciate your help. </p> <p>Thanks, </p> <p>NR</p> </div>Tue, 17 Jul 2012 05:36:08 Z2012-07-22T19:13:25Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/e1513e29-a484-4912-95a0-7c92f869297bhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/e1513e29-a484-4912-95a0-7c92f869297bberlihttp://social.msdn.microsoft.com/profile/berli/?type=forumevent 12291 SQLISPackage100<p>one&nbsp;maintenance&nbsp;job (rebuild index task on user databases) is failing with event 12291. all other&nbsp;maintenance&nbsp;jobs like backup are working fine. the sql server agents runs under a domain admin account. the problem is not related to a specific database. it crashes on any db chosen. we have deleted and recreated to&nbsp;maintenance&nbsp;plan and it still&nbsp;doesn't work</p> <p>the job history:</p> <p></p> ep ID<span style="white-space:pre"> </span>1<br/> Server<span style="white-space:pre"> </span>STZ-SQL1<br/> Job Name<span style="white-space:pre"> </span>MaintenancePlan.weekly_reb_indexes<br/> Step Name<span style="white-space:pre"> </span>weekly_reb_indexes<br/> Duration<span style="white-space:pre"> </span>00:27:43<br/> Sql Severity<span style="white-space:pre"> </span>0<br/> Sql Message ID<span style="white-space:pre"> </span>0<br/> Operator Emailed<span style="white-space:pre"> </span><br/> Operator Net sent<span style="white-space:pre"> </span><br/> Operator Paged<span style="white-space:pre"> </span><br/> Retries Attempted<span style="white-space:pre"> </span>0<br/> <br/> Message<br/> Executed as user: IBA\iba_admin. ...sion 10.0.5500.0 for 64-bit &nbsp;Copyright (C) Microsoft Corp 1984-2005. All rights reserved. &nbsp; &nbsp;Started: &nbsp;00:25:00 &nbsp;Progress: 2012-07-22 00:25:01.17 &nbsp; &nbsp; Source: {B00EA0E0-FFD0-48C4-B704-8CAE5645858D} &nbsp; &nbsp; &nbsp;Executing query &quot;DECLARE @Guid UNIQUEIDENTIFIER &nbsp; &nbsp; &nbsp;EXECUTE msdb..sp...&quot;.: 100% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:21.35 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 0% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:22.03 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_ALT_1] ON [dbo].[A10] REBUILD PAR...&quot;.: 0% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:22.03 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 0% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:24.01 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_ALT_2] ON [dbo].[A10] REBUILD PAR...&quot;.: 0% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:24.01 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 0% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:25.02 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_ALT_3] ON [dbo].[A10] REBUILD PAR...&quot;.: 1% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:25.02 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 1% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:26.56 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_ALT_4] ON [dbo].[A10] REBUILD PAR...&quot;.: 1% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:26.56 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 1% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:28.23 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_ALT_5] ON [dbo].[A10] REBUILD PAR...&quot;.: 1% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:28.23 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 1% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:29.22 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_F_ID] ON [dbo].[A10] REBUILD PART...&quot;.: 2% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:29.22 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 2% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:30.23 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_FL00001] ON [dbo].[A10] REBUILD P...&quot;.: 2% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:30.23 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 2% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:31.20 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_FL00002] ON [dbo].[A10] REBUILD P...&quot;.: 2% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:31.20 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 3% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:32.07 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_FL00003] ON [dbo].[A10] REBUILD P...&quot;.: 3% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:32.07 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 3% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:33.23 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_FL00004] ON [dbo].[A10] REBUILD P...&quot;.: 3% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:33.23 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 3% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:34.42 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_FL00005] ON [dbo].[A10] REBUILD P...&quot;.: 3% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:34.42 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;USE [adalib] &nbsp;&quot;.: 4% complete &nbsp;End Progress &nbsp;Progress: 2012-07-22 00:29:35.58 &nbsp; &nbsp; Source: Rebuild Index Task &nbsp; &nbsp; &nbsp;Executing query &quot;ALTER INDEX [A10_FL00006] ON [dbo].[A10] REBUILD P...&quot;.: 4% complete &nbsp;End Pro... &nbsp;The package execution fa... &nbsp;The step failed.<br/> <p></p> <p></p> <p></p><hr class="sig"><p>???</p>Sun, 22 Jul 2012 12:19:36 Z2012-07-22T12:19:37Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/f7a18549-0906-4cc4-a6ea-ba665f030250http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/f7a18549-0906-4cc4-a6ea-ba665f030250Willgart1http://social.msdn.microsoft.com/profile/willgart1/?type=forumdisabling or enabling lock escalation for large insert and updates<p>Hi,</p> <p>What's better, enabling or disabling the lock escalation in the tables?</p> <p>I have a large table to load (30Gb), during the loading there is no read access to my tables. so nobody will be locked.</p> <p>what the best lock escalation option?</p> <p>also what are the best option for the indexes used in the destination&nbsp;tables?</p> <p>I read some articles about this, but there is no clear path as they talk about reducing the lock duration while I want to reduce the loading time and the memory usage.</p> <p>thanks.</p>Sun, 22 Jul 2012 01:35:02 Z2012-07-22T12:04:52Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/fbe1a33f-33fd-44d8-88f5-6d8eec9b6162http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/fbe1a33f-33fd-44d8-88f5-6d8eec9b6162Kongathihttp://social.msdn.microsoft.com/profile/kongathi/?type=forumSSIS vs SQL ServerI have a typical questions, what is the main advantage of using SSIS rather SQL Server. What ever we do with SSIS, we also can&nbsp;achieve&nbsp;with stored&nbsp;procedures.&nbsp;Sat, 21 Jul 2012 18:25:05 Z2012-07-22T16:54:21Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9aa889bb-ee67-4ada-a312-01302f4cda58http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9aa889bb-ee67-4ada-a312-01302f4cda58kdinukhttp://social.msdn.microsoft.com/profile/kdinuk/?type=forumI want ignore truncation error and redirect rowsI am having Excel file that contains a column say 'H' having more than 255 chars. I put ignore error, ignore truncation so that I can import data into Database. When I do this, data truncating and importing into DB only 255 char.&nbsp;<br/> <br/> My requirement is now, how do I find out those rows that were truncated and inserted into DB.Tue, 10 Jul 2012 20:43:01 Z2012-07-22T11:10:28Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/97fa6283-35e2-423a-8321-fd4dd8c594d9http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/97fa6283-35e2-423a-8321-fd4dd8c594d9Vipin jhahttp://social.msdn.microsoft.com/profile/vipin%20jha/?type=forumFile does not find in Error SSIS<p style="word-wrap:break-word; color:#333333; font-family:Arial,Helvetica; font-size:14px"> Dear Sir, </p> <p style="word-wrap:break-word; color:#333333; font-family:Arial,Helvetica; font-size:14px"> I am facing below problem for last 1 week, i have not found any proper solution for same.suppose I am having 3 excel connection ,each excel have different data flow task. My ETL Process load daily by daily. after loading data from excel to sql table I am deleting the file to avoid duplicate entry next day. in some dataflowtask will not get excel file some day due to that my package is failing</p> <p style="word-wrap:break-word; color:#333333; font-family:Arial,Helvetica; font-size:14px"> My aim is , if DFT1 does not find file then it should go to next DFT2 without failing</p> <p style="word-wrap:break-word; color:#333333; font-family:Arial,Helvetica; font-size:14px"> Please suggest the best way with example as this is very important for me</p> <p style="word-wrap:break-word; color:#333333; font-family:Arial,Helvetica; font-size:14px"> Regards, </p> <p style="word-wrap:break-word; color:#333333; font-family:Arial,Helvetica; font-size:14px"> Vipin jha</p><hr class="sig"><p>Thankx & regards, Vipin jha MCP</p>Sun, 22 Jul 2012 07:52:50 Z2012-07-22T11:06:06Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8cbd519e-89d5-4102-b5b4-61aa4d2d6ac4http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8cbd519e-89d5-4102-b5b4-61aa4d2d6ac4d jandyhttp://social.msdn.microsoft.com/profile/d%20jandy/?type=forumSSIS package not running with job<p><br/> Hi,</p> <p>I'm using SQL Server 2008 R2 SP1 on Windows 7 OS. <br/> I'm running an SSIS package on my local machine and the package is located in C drive.</p> <p>I created a SSIS package with 32 bit version of Excel as source and destinations in different DFTs.<br/> For this to run properly, I changed the Run64BitRuntime to False.<br/> The package is running fine. But when I create a job to run this package it failed.<br/> I created a Credential, Proxy and windows user login with access to the folders where excel files are present.<br/> I changed the job owner to the new login which I created and job step RunAs to the proxy account.</p> <p>This time I got a different error as below:</p> <p>Executed as user: USHYDDJANDHYAL7\SQLAgent. Microsoft (R) SQL Server Execute Package Utility&nbsp; Version 10.50.2500.0 for 32-bit&nbsp; Copyright (C) Microsoft Corporation 2010. All rights reserved.&nbsp;&nbsp;&nbsp; Started:&nbsp; 1:51:23 AM&nbsp; Info: 2012-07-22 01:51:24.32&nbsp;&nbsp;&nbsp;&nbsp; Code: 0x4004300A&nbsp;&nbsp;&nbsp;&nbsp; Source: DFT_Excel To SQL -- Dates SSIS.Pipeline&nbsp;&nbsp;&nbsp;&nbsp; Description: Validation phase is beginning.&nbsp; End Info&nbsp; Progress: 2012-07-22 01:51:24.32&nbsp;&nbsp;&nbsp;&nbsp; Source: DFT_Excel To SQL -- Dates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Validating: 0% complete&nbsp; End Progress&nbsp; Error: 2012-07-22 01:51:24.40&nbsp;&nbsp;&nbsp;&nbsp; Code: 0xC0202009&nbsp;&nbsp;&nbsp;&nbsp; Source: SSIS_Pkg_RU Connection manager &quot;Excel Connection Manager 1&quot;&nbsp;&nbsp;&nbsp;&nbsp; Description: SSIS Error Code DTS_E_OLEDBERROR.&nbsp; An OLE DB error has occurred. Error code: 0x80004005.&nbsp; An OLE DB record is available.&nbsp; Source: &quot;Microsoft Access Database Engine&quot;&nbsp; Hresult: 0x80004005&nbsp; Description: &quot;Unspecified error&quot;.&nbsp; End Error&nbsp; Error: 2012-07-22 01:51:24.40&nbsp;&nbsp;&nbsp;&nbsp; Code: 0xC020801C&nbsp;&nbsp;&nbsp;&nbsp; Source: DFT_Excel To SQL -- Dates Excel Source [1]&nbsp;&nbsp;&nbsp;&nbsp; Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.&nbsp; The AcquireConnection method call to the connection manager &quot;Excel Connection Manager 1&quot; failed with error code 0xC0202009.&nbsp; There may be error messages posted before this with more information on why the AcquireConnection method call failed.&nbsp; End Error&nbsp; Error: 2012-07-22 01:51:24.40&nbsp;&nbsp;&nbsp;&nbsp; Code: 0xC0047017&nbsp;&nbsp;&nbsp;&nbsp; Source: DFT_Excel To SQL -- Dates SSIS.Pipeline&nbsp;&nbsp;&nbsp;&nbsp; Description: component &quot;Excel Source&quot; (1) failed validation and returned error code 0xC020801C.&nbsp; End Error&nbsp; Progress: 2012-07-22 01:51:24.40&nbsp;&nbsp;&nbsp;&nbsp; Source: DFT_Excel To SQL -- Dates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Validating: 50% complete&nbsp; End Progress&nbsp; Error: 2012-07-22 01:51:24.40&nbsp;&nbsp;&nbsp;&nbsp; Code: 0xC004700C&nbsp;&nbsp;&nbsp;&nbsp; Source: DFT_Excel To SQL -- Dates SSIS.Pipeline&nbsp;&nbsp;&nbsp;&nbsp; Description: One or more component failed validation.&nbsp; End Error&nbsp; Error: 2012-07-22 01:51:24.40&nbsp;&nbsp;&nbsp;&nbsp; Code: 0xC0024107&nbsp;&nbsp;&nbsp;&nbsp; Source: DFT_Excel To SQL -- Dates&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Description: There were errors during task validation.&nbsp; End Error&nbsp; DTExec: The package execution returned DTSER_FAILURE (1).&nbsp; Started:&nbsp; 1:51:23 AM&nbsp; Finished: 1:51:24 AM&nbsp; Elapsed:&nbsp; 1.31 seconds.&nbsp; Process Exit Code 1.&nbsp; The step failed.</p> <p><br/> When I run the package from the SSMS --&gt; Stored Packages --&gt; MSDB, this is executing perfectly and when I run it from CMD, it is running successfully. But when I run the job, it is failing.</p> <p>I gave the required permissions to the login like Sysadmin server role, and in user mapping, for msdb database, checked the SQL Agent related db roles and db_owner as well.<br/> In the job step, I selected CMD and gave the fully qualified path of the 32 bit of DTExec.exe&nbsp; and the remaining parameters like /SQL, Server name, package name etc.<br/> I even changed the Protection level to DoNotSaveSensitive but still no luck.</p> <p>I'm not understanding why the package is failing through job but not through BIDS, CMD, SSMS.</p> <p>Could anyone please help me out with this issue?</p> <p>Regards,<br/> djandy</p>Sat, 21 Jul 2012 21:27:17 Z2012-07-22T10:53:24Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9b41baeb-9a03-4fe9-989b-466942dfa8a0http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9b41baeb-9a03-4fe9-989b-466942dfa8a0Willgart1http://social.msdn.microsoft.com/profile/willgart1/?type=forumssis 2008r2 dataflow freeze<p>Hi,</p> <p>today my dts package freeze during the loading of my data.</p> <p>I have multiple dataflows in my package, and the freeze occurs in the dataflow 5 or 6, never on the first dataflows.</p> <p>the 5 is pretty simple, I get data from SQL server to fill a cache transform.</p> <p>but the freeze could occurs here, even if the execution normaly takes 5 to 10 sec.</p> <p>and if the freeze is not in the DF 5, its in the 6 which is the biggest one.</p> <p>yesterday everything works fine!!!</p> <p>I try to execute inside VS and using DTExec, same behavior.</p> <p>on the SQL Server side, I see that the network IO wait task is at 1000ms and no more activity. </p> <p></p> <p>so why this could occurs?</p> <p>why today and not yesterday? (I try this 10 times and always the same behavior occurs at different point in time)</p> <p>why never on my first dataflows and only the DF 5 or 6?</p> <p></p>Sat, 21 Jul 2012 14:19:40 Z2012-07-22T07:57:14Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/ef4860b0-49ab-4267-917b-0fb2c5664184http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/ef4860b0-49ab-4267-917b-0fb2c5664184karteek_miryalahttp://social.msdn.microsoft.com/profile/karteek_miryala/?type=forumsys_guid using Execute Sql Task<p>Hi Everyone,</p> <p>i have column&nbsp;&nbsp; name&nbsp;: DATA_U(target)&nbsp; which is an <strong> unqiue constraint</strong> column ,&nbsp;here </p> <p>my requirement is i want to assign a <strong>unique </strong>value i.e, SYS_GUID() value to this column</p> <p>for this i have took a Global&nbsp; variable with string Datatype,</p> <p>in Execute Sql Task:</p> <p>sql query is:</p> <p><span style="text-decoration:underline"><span style="color:#0000aa"><span style="text-decoration:underline">SELECT RAWTOHEX (SYS_GUID())as DATA_U FROM DUAL</span></span></span></p> <p>this i am assign to global variable .now&nbsp; i am using this variable inside &nbsp;derived column,&nbsp; assign to that column. </p> <p></p> <p>But above mentioned query generates&nbsp; value which is same &nbsp;for every row., first record will enter , next&nbsp; value is same,this column is unique so it will not accept same value into this.</p> <p></p> <p>error message is :</p> <p><span style="text-decoration:underline"><span style="color:#0000aa"><strong><span style="text-decoration:underline">[Oracle Destination [487]] Error: OCI error encouneterd. ORA-00001: unique constraint (SYSSS.SYS_C00295113) violated</span></strong></span></span></p> <p><span style="text-decoration:underline"><span style="color:#0000aa"><strong><span style="text-decoration:underline"></span></strong></span></span></p> <p><span style="color:#0000aa"><span style="color:#000000">i can make use of script component&nbsp; :</span><br/> </span><a href="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/86c375c2-98fa-4fc3-b9be-2e11aa1aacdd">http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/86c375c2-98fa-4fc3-b9be-2e11aa1aacdd</a></p> <p></p> <p></p> <p>but i want to make use of Execute sql Task, with variable, then this variable can be used in different dataflow task, because when ever i am using script component it is taking some time to load. is this possible to make use of Execute sql Task.</p> <p></p> <p>Please Suggest me.</p> <p></p> <p></p> <p></p><hr class="sig"><p>karteek_miryala</p>Fri, 20 Jul 2012 14:53:59 Z2012-07-22T04:46:24Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/53b02879-437d-4e79-a841-c8bc4274dc7bhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/53b02879-437d-4e79-a841-c8bc4274dc7bKamranJhttp://social.msdn.microsoft.com/profile/kamranj/?type=forumSSIS real time / simply extract and Load into DW<p>Ok, so here is a simple question. I want to extract data from a SQL DB, and load it as is into my SQL server 2008 r2 database. Even though I will be running this every 30 minutes via a job on proxy account, but what is the best way to do it. When new to BIDS, I first simply used wizard to drop and recreate. Then due to performance hits on windows server 2008 r2, i changed drop and recreate to truncate. </p> <p></p> <p>So, to keep things very simple what is the best way to simply extract all the tables from sql and load it into my Data warehouse which is also on sql server 2008R2. I don;t make almost fast as real time. Can you guys give me some steps to do. All I am currently doing which i want to continue to do is take the raw data and integrate it as is into my Data warehouse. </p> <p>thanks</p>Sun, 22 Jul 2012 03:31:36 Z2012-07-22T04:35:56Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9e800921-fe0e-44ff-a541-2583d5bd4403http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/9e800921-fe0e-44ff-a541-2583d5bd4403Marko279http://social.msdn.microsoft.com/profile/marko279/?type=forumSSIS Execute SQL Task Parameter passing<p>My Execute SQL Task has OLE DB Connection to master table as initial catalog;</p> <p>SQL statement is <strong>CREATE DATABASE ?;</strong></p> <p>BypassPrepare-&gt;true<br/> </p> <p>Parameter Maping, Variable Name-&gt;User::InitialCatalog, Direction-&gt;Input,&nbsp; Data Type-&gt;NVARCHAR, Parameter Name-&gt;0, ParameterSize-&gt;20;</p> <p><br/> </p> <p>Variable User::InitialCatalog is of type string with initial value set as Project3;</p> <p></p> <p>So, it should be executed <strong>CREATE DATABASE Project3;</strong></p> <p><strong>I get&nbsp; an error [Execute SQL Task] Error: Executing the query &quot;CREATE DATABASE ?;&quot; failed with the following error: &quot;Incorrect syntax near '@P1'.&quot;. Possible failure reasons: Problems with the query, &quot;ResultSet&quot; property not set correctly, parameters not set correctly, or connection not established correctly.</strong><br/> </p> <p></p> <p>If i try to execute CREATE DATABASE Project3 without parameters, it works. </p> <p>As i understand it just change CREATE DATABASE ?; with name of parameter CREATE DATABASE @P1; but not with value of parameter CREATE DATABASE Project3; as it should be.</p> <p>Please help.</p> <br/> <br/> <br/> <br/> <br/>Sat, 21 Jul 2012 18:37:03 Z2012-07-22T10:10:10Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8948538e-bfe5-4ef5-b76b-527ecbcf019bhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8948538e-bfe5-4ef5-b76b-527ecbcf019bNick Noranzahttp://social.msdn.microsoft.com/profile/nick%20noranza/?type=forumFail Package If any of the Task fails<p>Hi, i have an SSIS package having two Sequence Containers connected to Execute sql task in Parallel.</p> <p>I have an expression in between execute sql and both sequence containers if @Test = 1. @Test gets value from execute sql task.</p> <p>I want to fail the package if any of the two sequence container fails. So i set FailpackageOnFailure to TRUE for both containers but even though one of them fails, the package wont fail and other one still runs as i have an expression for both.</p> <p>Any ideal how do i solve this?</p> <p>This is how the package looks like:</p> <p><img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/141072"></p>Sat, 21 Jul 2012 00:08:10 Z2012-07-22T02:58:12Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/a27f106f-97b1-4414-bfac-4af4b6b74329http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/a27f106f-97b1-4414-bfac-4af4b6b74329santhosh437http://social.msdn.microsoft.com/profile/santhosh437/?type=forumStrange---Script Task Question<p>I am trying to post the file to ftp site, file is posted as empty whenever i run the package. but when i run the task individually the file is posted in the ftp site, could you please tell what could be the error. i am using same code to post another file in the same location it works perfect....</p> <p>i am using following code<br/> </p> Imports System<br/> Imports System.Data<br/> Imports System.Math<br/> Imports Microsoft.SqlServer.Dts.Runtime<br/> Public Class ScriptMain<br/> &nbsp; &nbsp; Public Sub Main()<br/> &nbsp; &nbsp; &nbsp; &nbsp; Try<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Create the connection to the ftp server<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim cm As ConnectionManager = Dts.Connections.Add(&quot;FTP&quot;)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Set the properties like username &amp; password<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cm.Properties(&quot;ServerName&quot;).SetValue(cm, &quot;XXXXX&quot;)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cm.Properties(&quot;ServerUserName&quot;).SetValue(cm, &quot;XXX&quot;)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cm.Properties(&quot;ServerPassword&quot;).SetValue(cm, &quot;XXXX&quot;)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cm.Properties(&quot;ServerPort&quot;).SetValue(cm, &quot;21&quot;)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cm.Properties(&quot;Timeout&quot;).SetValue(cm, &quot;0&quot;) 'The 0 setting will make it not timeout<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cm.Properties(&quot;ChunkSize&quot;).SetValue(cm, &quot;1000&quot;) '1000 kb<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cm.Properties(&quot;Retries&quot;).SetValue(cm, &quot;1&quot;)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'create the FTP object that sends the files and pass it the connection created above.<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim ftp As FtpClientConnection = New FtpClientConnection(cm.AcquireConnection(Nothing))<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Connects to the ftp server<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ftp.Connect()<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Build a array of all the file names that is going to be FTP'ed (in this case only one file)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim files(2) As String<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; files(0) = &quot;F:\NNExtract\Staging\PDI_NN_Program_&quot; &#43; Format(Now(), &quot;yyyyMMdd&quot;) &#43; &quot;.xls&quot;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'ftp the file<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ftp.SendFiles(files, &quot;/veeva/VeevaShipments/NewFolder&quot;, True, True)<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ftp.Close()<br/> &nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Exception<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dts.TaskResult = Dts.Results.Failure<br/> &nbsp; &nbsp; &nbsp; &nbsp; End Try<br/> &nbsp; &nbsp; &nbsp; &nbsp; Dts.TaskResult = Dts.Results.Success<br/> &nbsp; &nbsp; End Sub<br/> End Class <p></p> <p></p>Fri, 20 Jul 2012 16:42:35 Z2012-07-21T12:21:27Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/1eb59353-ee78-4995-b62e-dd13839f62fbhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/1eb59353-ee78-4995-b62e-dd13839f62fbsql.anandanhttp://social.msdn.microsoft.com/profile/sql.anandan/?type=forumExcel sheet to database<p>HI</p> <p>&nbsp; I create a package in SSIS,in that package i want to load from excel to sql server db..in that excel sheet i am having column called order in that i am having </p> <p>3</p> <p>3.1</p> <p>3.1.1</p> <p>3.1.2</p> <p>3.1.2.1</p> <p>like this order is in Excel sheet..My table contain that Order as string ..But when i try to load that excel sheet to database it takes only 3,3.1 values </p> <p>i think that problem is in Excel .if i change that columns string its takes only </p> <p>3.1.1</p> <p>3.1.2</p> <p>3.1.2.1 these value to load </p> <p>if i gave number format in Excel</p> <p>it takes </p> <p>3</p> <p>3.1 these value only..How to solve this issue in SSIS</p> <p></p>Sat, 21 Jul 2012 11:11:12 Z2012-07-23T10:38:21Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/948cb156-d280-4bd5-baea-b1dfe723b582http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/948cb156-d280-4bd5-baea-b1dfe723b582Sanjeewan Kumarhttp://social.msdn.microsoft.com/profile/sanjeewan%20kumar/?type=forumExcel Destination .<p>Hi All,</p> <p>I have requirement is as below </p> <p>1. I MDX query which pulls 108736 record in all my requirements is if the records are more than 65K then record should go to next sheet and so on </p> <p>2. I have excel template with some header and Columns heading and the data insertion shoulod start from row 6 </p> <p></p> <p>Thanks </p> <p></p><hr class="sig"><p><br/> Hope this will help you !!! <br/> Sanjeewan</p>Mon, 16 Jul 2012 09:41:54 Z2012-07-21T04:19:12Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/ee80f072-499b-4192-8e68-658cb6b47c34http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/ee80f072-499b-4192-8e68-658cb6b47c34Ben F NDhttp://social.msdn.microsoft.com/profile/ben%20f%20nd/?type=forumAttach MS Access Report to Send Email?<p>MS SQL 2008 </p> <p>Prior to recently converting our MS Access 2003 BE to SQL 2008 I ran a scheduled task from my local PC to run a MS Access FE module that would run select Reports and send them as email attachments. </p> <p>This is a very painful process for my local PC as it is opening the MS Access FE across our company WAN (Wide Area Network).&nbsp; IT will not give me access to scheduled tasks control panel on our Citrix Server Farm.&nbsp;</p> <p>Now that we have coverted our BE to SQL 2008. I would like to move this process of sending weekly/daily reports to SSIS package is possible. </p> <p></p> <p>So the question is.&nbsp;&nbsp; Can I attach a MS Access Report to the Send Mail Task in SSIS?&nbsp; If I can,&nbsp; how?&nbsp; </p> <p>If not hopefully there is an alternative via stored procedures.</p>Thu, 19 Jul 2012 17:42:25 Z2012-07-21T03:59:45Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/053aa84e-f593-43a2-82ba-65fa5dfa35d8http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/053aa84e-f593-43a2-82ba-65fa5dfa35d8SeanOmahttp://social.msdn.microsoft.com/profile/seanoma/?type=forumForEach Loop for CSV files<p>I created an SSIS package that will grab CSV files in a folder and import them into the SQL Server. &nbsp;I've done imports in the past with Excel and experienced no problems. &nbsp;However, I'm having trouble in the deployed environment whereas the test environment is working without any problems.</p> <p>The ForEach loop has a variable under expressions for the directory and it seeks CSV files (by name and extension). &nbsp;The import file is also listed under variable mappings. &nbsp;The process should check the folder for ANY CSV file and import them into SQL Server. &nbsp;In the test environment, this works. &nbsp;However, in the deployed environment, it does not grab the files (the directories are the same, test file names are the same).</p> <p>Does anyone know what the problem might be?</p> <p>(Note: in the deployed environment, SSIS will show that it successfully completed with no debug errors, however, no data were imported).</p>Fri, 20 Jul 2012 23:17:53 Z2012-07-22T05:07:18Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/a4d5cc02-b44f-428e-97fb-d8d2b9b53d4bhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/a4d5cc02-b44f-428e-97fb-d8d2b9b53d4bghankothttp://social.msdn.microsoft.com/profile/ghankot/?type=forumPK violation<p></p> <p>my dataflow task in SSIS 2008 is failing with PK violation error, when run as job. I checked the source data and couldn't find any duplicate . The destination is always truncated before the dataflow task runs. But when I run the same package from visual studio, I executes successfully. there is around 13mil rows. Any idea what could be causing this?</p> <p></p> <p>Thanks</p>Fri, 20 Jul 2012 16:11:05 Z2012-07-21T00:01:51Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/cc049007-06b7-4e6a-879e-8a45a7ffa78ehttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/cc049007-06b7-4e6a-879e-8a45a7ffa78eJyo1105http://social.msdn.microsoft.com/profile/jyo1105/?type=forumHow to load data from SQL to TERADATA table using ODBC connection <p>Hi all,</p> <p></p> <p>I need to send data from SQL to Teradata destination. TPT load is not working properly on my machine. I have 32 bit ODBC driver for Tera data on my machine. SO can any one please let me know the procedure like what kind of destination i should use and how to set properties. </p> <p>Thanks in advance,</p> <p>Jyo</p>Fri, 20 Jul 2012 20:44:19 Z2012-07-20T23:53:26Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8cf4ea55-5d99-4e76-a092-d06cd8ae5a64http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8cf4ea55-5d99-4e76-a092-d06cd8ae5a64sohail.khanhttp://social.msdn.microsoft.com/profile/sohail.khan/?type=forumFTP Automated downloader<div> <p>I dont have much experiance with&nbsp;SSIS but i know this is doable on it. What i am looking for is a script that would let me download from an FTP website. Couple of critierias that are important:</p> <p>unix server</p> <p>files from server are deleted every four days that is why i want to download the files to company hard drive. </p> <p>i dont want a duplicate of folders/files downloaded every time. </p> <p>when i log in as the admin, there are 20 folders. each folder is named after a company member. when the company member logs in they see only the content of the folder that is specified to them. i want to download the content of the folders. because if i download the folder. it will just download the whole folder and i'll have a lot of folders by the same name. so the thing i did was make directories on my hard drive that has the same name as the folders i see. (this part might be confusing so ask me to explain if needed. )</p> <p>also i think it would be a good idea&nbsp; to delete the contents of the folder once the download happens so no duplicates are downloaded. </p> <p>if anyone has written a similer script or has a&nbsp;SSIS(visual studio)&nbsp;file that will help me out, i'd appricate it. </p> <p>&nbsp;basic steps:</p> <p>log in ftp website with username and password.</p> <p>go into folder A</p> <p>download the content of folder A to hard drive(time stamping would help)</p> <p>delete the content of folder A.</p> <p>go into folder B</p> <p>download the content of folder B to hard drive</p> <p>delete the content. </p> <p>keep on doing until done to all folder. </p> <p>Thank you!</p> </div>Wed, 18 Jul 2012 17:59:51 Z2012-07-20T19:55:38Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/37bea7cb-0a28-4abc-b310-b9f151c06a9ehttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/37bea7cb-0a28-4abc-b310-b9f151c06a9eFrankPlhttp://social.msdn.microsoft.com/profile/frankpl/?type=forumHow to access different versions of ADO.net driver?<p>Hi,</p> <p>we want to access data via a SQL Anywhere ADO.net driver. The issue is that this driver has slightly different versions on different servers and developer machines, while the package should be the same across the servers.</p> <p>The version info, as found in machine.config is e. g. as follows:</p> <p><span lang="EN-US" style="font-size:10pt; font-family:'Arial','sans-serif'; color:#1f497d">&lt;add name=&quot;SQL Anywhere 12 Data Provider&quot; invariant=&quot;iAnywhere.Data.SQLAnywhere&quot; description=&quot;.Net Framework Data Provider for SQL Anywhere 12&quot; type=&quot;iAnywhere.Data.SQLAnywhere.SAFactory, iAnywhere.Data.SQLAnywhere.v3.5, Version=12.0.1.31523, Culture=neutral, PublicKeyToken=f222fc4333e0d400&quot; /&gt;</span></p> <p><span lang="EN-US" style="font-size:10pt; font-family:'Arial','sans-serif'; color:#1f497d">&lt;add name=&quot;SQL Anywhere 12 Data Provider&quot; invariant=&quot;iAnywhere.Data.SQLAnywhere&quot; description=&quot;.Net Framework Data Provider for SQL Anywhere 12&quot; type=&quot;iAnywhere.Data.SQLAnywhere.SAFactory, iAnywhere.Data.SQLAnywhere.v3.5, Version=12.0.1.34573, Culture=neutral, PublicKeyToken=f222fc4333e0d400&quot; /&gt;</span><span lang="EN-US" style="font-size:10pt; font-family:'Arial','sans-serif'; color:#1f497d"></span></p> <p>It seems that the ADO.net connection manager references the exact version of the driver in its &quot;Qualifier&quot; property, which is e. g.</p> <p>iAnywhere.Data.SQLAnywhere.SAConnection, iAnywhere.Data.SQLAnywhere.v3.5, Version=12.0.1.3473<span lang="EN-US" style="font-size:10pt; font-family:'Arial','sans-serif'; color:#1f497d"></span>, Culture=neutral, PublicKeyToken=f222fc4333e0d400</p> <p>This property is not available for configurations.</p> <p>I tried to edit the machine.config file to contain:</p> <p>&nbsp; &lt;runtime&gt;<br/> &nbsp;&nbsp;&nbsp; &lt;assemblyBinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dependentAssembly&gt;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity name=&quot;SQL Anywhere 12 Data Provider&quot; publicKeyToken=&quot;f222fc4333e0d400&quot; culture=&quot;neutral&quot; /&gt;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindingRedirect oldVersion=&quot;12.0.1.0-12.0.1.65534&quot; newVersion=&quot;12.0.1.34573&quot; /&gt;<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dependentAssembly&gt;<br/> &nbsp;&nbsp;&nbsp; &lt;/assemblyBinding&gt;<br/> &nbsp; &lt;/runtime&gt;<br/> </p> <p>where the newVersion value matches the version installed on the machine. But this does not seem to be used, and I get the same error as without this entry if the version in the Qualifier property does not exactly match the version installed on the machine:</p> <p>Error: Microsoft.SqlServer.Dts.Runtime.DtsCouldNotCreateManagedConnectionException: Could not create a managed connection manager.</p> <p>This error does not occur if the version info exactly matches the version of the driver installed.</p> <p>Any idea how I could get this running?</p> <p>Frank</p> <p></p>Wed, 18 Jul 2012 17:08:02 Z2012-07-20T19:52:30Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/2968740b-0bd3-43fb-b1b5-8cd0f74b74e8http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/2968740b-0bd3-43fb-b1b5-8cd0f74b74e8Balvinder Singhhttp://social.msdn.microsoft.com/profile/balvinder%20singh/?type=forumSSIS Logging<p>Hi,</p> <p></p> <p>I have enabled SSIS SQL logging on my package for OnInformation event. When I run it on my machine (Windows 7 32-bit), it logs component level log such as row count for data flow tasks.</p> <p>Example: </p> <p>&quot;The final commit for the data insertion in &quot;component &quot;xxxxxxxxxxxx&quot; (392)&quot; has started.&nbsp; &quot;</p> <p>&quot;component &quot;xxxxxxx&quot; (97)&quot; wrote 1 rows.&nbsp; </p> <p>But when I deploy same package to server (Win2008 R2 64 bit) then it logs all other informational messages except above msgs. I did not find anything on google or bing related to this issue.</p> <p>What is the cause?</p> <p></p> <p>Thanks,</p> <p>Balvinder Singh</p>Tue, 17 Jul 2012 14:47:56 Z2012-07-20T19:29:33Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/274dc245-cfd0-4026-9b03-f4c511d39c96http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/274dc245-cfd0-4026-9b03-f4c511d39c96HallMarchttp://social.msdn.microsoft.com/profile/hallmarc/?type=forumAccess To the Path is Denied<p>First, I have read through the numerous posts on this topic and now of the provided solutions have worked.&nbsp; So I post my specidifc issue.</p> <p>Using VSTA2008 from SQL2008 STD edition.</p> <p>Using local machine for development.&nbsp; I&nbsp;am the local and domain admin.</p> <p>The path that I am denied access to is the Local C:\TEMP directory.</p> <p>In BId, I now have two scripts that run.&nbsp; the first script sets the file level permissions to full control under the context of the task that is being run.</p> <p>The secong task performs a PGP decryption of the files.&nbsp; This is were I get the error.&nbsp; I can set the file permissions with out an issue, yet as soon as I caaess the same files to decrypt them, I get the error.&nbsp; The error is being thrown as soon as I access the files.&nbsp; The PGP decryption routine will run when attached to a windows forms project on the same machine.&nbsp; This is how I was able to test and debug the code prior to adding it to the SSIS Task.&nbsp; </p> <p>In total the job picks up a file from an FTP site, moves it to the local machine, decrypts file, then pipes it along for further processing. The only point of failure is in the one script task.&nbsp; and I am at a loss.</p> <p>Let me add this in case it is relevant.&nbsp; in the affected script, I reference a third party dll (bouncycastle.crypto) for the PGP encrypt/decrypt utilities.&nbsp; A second code (class)&nbsp;file exists that performs all of the logic, and i call it&nbsp;from the script main() passing in the&nbsp;validated arguments.</p> <p>If anyone has any ideas, I am open to any and all&nbsp;suggestions.</p> <p>Thanks in advance.</p> <p></p>Mon, 09 Jul 2012 18:28:52 Z2012-07-20T18:12:31Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/c950b27d-860c-4b98-8e67-d8538ba232bbhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/c950b27d-860c-4b98-8e67-d8538ba232bbCoolDbGuyhttp://social.msdn.microsoft.com/profile/cooldbguy/?type=forumSSIS Excel Source Returning NULL Values<p>Hi All,</p> <p>In my SSIS package excel source i am building the expression at the run time. In the excel sheet for a particular column the rows are blank up to certain no of rows from beginning. So while loading the whole column value is loading as NULL value. I have put IMEX=1 in the connection string.</p> <p>Still i am getting all NULL values.</p> <p>Any suggestion is appreciated.</p> <p></p> <p>Thanks</p>Sat, 14 Jul 2012 03:06:31 Z2012-07-20T17:16:12Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/0a8b9193-c400-4dc7-88c8-6cdf0478df2ehttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/0a8b9193-c400-4dc7-88c8-6cdf0478df2eSmash126http://social.msdn.microsoft.com/profile/smash126/?type=forumPackage fails when trying to load Flat file to SQL Server 2008<p><span><span id="x__ctl5_ctlTopic"><span id="x__ctl5_ctlTopic_ctlPanelBar"><span id="x__ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl8_lblFullMessage">Trying to load Flat File to SQL Server. Number of columns in Flat file<br/> <br/> ProductID - two-byte signed integer [DT_I2]<br/> Name -Unicode string [DT_WSTR](50)<br/> ProductNumber-Unicode string [DT_WSTR](25)<br/> MakeFlag-Boolean [DT_BOOL]<br/> <br/> Getting issue with last column 'MakeFlag'.<br/> <br/> I have attached sample Flat file if some body wants to test it<br/> <br/> Error: 0xC02020A1 at Data Flow Task, Flat File Source [1]: Data conversion failed. The data conversion for column &quot;MakeFlag&quot; returned status value 2 and status text &quot;The value could not be converted because of a potential loss of data.&quot;.<br/> Error: 0xC0209029 at Data Flow Task, Flat File Source [1]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The &quot;output column &quot;MakeFlag&quot; (22)&quot; failed because error code 0xC0209084 occurred, and the error row disposition on &quot;output column &quot;MakeFlag&quot; (22)&quot; specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.<br/> Error: 0xC0202092 at Data Flow Task, Flat File Source [1]: An error occurred while processing file &quot;D:\Users\Administrator\Desktop\New Folder\IndiaIndia.txt&quot; on data row 211.<br/> Error: 0xC0047038 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component &quot;Flat File Source&quot; (1) returned error code 0xC0202092. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.</span></span></span></span></p> <p><span><span id="x__ctl5_ctlTopic"><span id="x__ctl5_ctlTopic_ctlPanelBar"><span id="x__ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl9_lblFullMessage">Need to convert the boolean value to a 0 or 1 before importing it</span></span></span></span></p> <p><span><span id="x__ctl5_ctlTopic"><span id="x__ctl5_ctlTopic_ctlPanelBar"><span id="x__ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl12_lblFullMessage">Used derived column to convert the boolean value to a 0 or 1 <br/> <br/> Expressions what i used in derived column for two columns MakeFlag and FinishedGoodsFlag <br/> <br/> MakeFlag ? (DT_BOOL)1 : (DT_BOOL)0<br/> <br/> FinishedGoodsFlag ? (DT_BOOL)1 : (DT_BOOL)0<br/> <br/> I get error messages as below.Any thing wrong with the expression i am using here.Please let me know.Please send me the correct expression<br/> <br/> Error: 0xC02020A1 at Data Flow Task, Flat File Source [1]: Data conversion failed. The data conversion for column &quot;MakeFlag&quot; returned status value 2 and status text &quot;The value could not be converted because of a potential loss of data.&quot;.<br/> Error: 0xC0209029 at Data Flow Task, Flat File Source [1]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The &quot;output column &quot;MakeFlag&quot; (22)&quot; failed because error code 0xC0209084 occurred, and the error row disposition on &quot;output column &quot;MakeFlag&quot; (22)&quot; specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.</span></span></span></span><span><span id="x__ctl5_ctlTopic"><span id="x__ctl5_ctlTopic_ctlPanelBar"><span id="x__ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl8_lblFullMessage"></span></span></span></span></p> <p></p> <p></p>Thu, 19 Jul 2012 15:45:42 Z2012-07-20T15:57:16Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8d723667-90f6-4636-a55f-7a2793a85ad2http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/8d723667-90f6-4636-a55f-7a2793a85ad2encryptorashttp://social.msdn.microsoft.com/profile/encryptoras/?type=forumXML-->SQL Table:: table load questionI'm loading a table that has&nbsp;a generated&nbsp;primary key.&nbsp; For every&nbsp;records being&nbsp;pushed to this table I want to&nbsp;see if Serial Number has already been pushed.&nbsp; If it has been pushed once I will change&nbsp;new record's column ActionCode to &quot;U&quot; for update.&nbsp; The default value for ActionCode is &quot;I&quot;.&nbsp; How can I do that if serialNumber doesn't have a primary key?&nbsp; Duplicate records are allowed in table as a requirement. <hr> <p>Evan Johnson</p> <br/>Thu, 19 Jul 2012 17:14:57 Z2012-07-20T15:56:59Zhttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/e3101d5d-b7de-4103-aa04-83d255883aachttp://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/e3101d5d-b7de-4103-aa04-83d255883aacSébastien Nuneshttp://social.msdn.microsoft.com/profile/s%C3%A9bastien%20nunes/?type=forumSSIS does not recognize CRLF as the en of line<p>Hi all, </p> <p>I'm having a strange behavior here, or maybe I'm doing something wrong, I'm not sure. </p> <p> </p> <p>Anyway, I have a csv file, the Flat File Connection Manager is configured like this:<br>Row delimiter: {CR}{LF}<br>Column delimiter: {;}</p> <p>For some rows in my file the last two columns are empty and the there is no semicolon for these empty rows but these rows are still ended by a CRLF but SSIS does not consider the CRLF as the end of the row, it consider the first 2 columns of the next row as the last 2 columns of the current row. </p> <p>Sample: </p> <p>CSV file: <br>Col 1;Col 2;Col 3;Col 4;Col 5<br>AAAA;BBB;CCC;;<br>AAA1;BBB1;CCC1;;<br>AAA2;BBB2;CCC2<br>AAA3;BBB3;CCC3<br><br>Imported rows in SSIS:<br>Col 1      Col 2       Col 3    Col 4    Col 5<br>AAAA    BBB        CCC<br>AAA1    BBB1      CCC1<br>AAA2    BBB2      CCC2   AAA3   BBB3;CCC3</p> <p>Any idea ?</p> <p>Sébastien</p>Fri, 14 Jul 2006 08:29:46 Z2012-07-20T15:40:59Z