ForEach File In Folder - Missing From Dropdown List
I'm working through the SSIS tutorial, and am on lesson 2.
This says
"Double-click Foreach File in Folder to reopen the Foreach Loop Editor.
Click Collection.
On the Collection page, select Foreach File Enumerator."
The drop down only contains
foreach ado enumerator
foreach ado.net schema_rowset.enumerator
foreach from variable.enumerator
foreach nodelist.enumerator
foreach smo.enumerator
How do I get the "foreach file in folder" to appear in the drop down list?
Gary
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Can I Use The Foreach Loop To Obtain The Sub Folder Names Within A Folder?
I have a set of folders with the following structure: MainFolder 1999 SpreadsheetA.xls SpreadsheetB.xls SpreadsheetC.xls 2000 SpreadsheetA.xls SpreadsheetB.xls SpreadsheetC.xls etc. Is there a way that I can use the foreach loop container to loop the sub folders? My plan was to get the folder name and path into a variable, use this to build the connection string for each file in this folder, carry out the upload for that folder, then move onto the next folder and do the same thing, but I cannot see a way to do this. Thanks, Sam
View Replies !
View Related
Get File List In Specified Folder Through Sqlserver
Problem: like in .net or any other language,we can get the file list in a specified folder How we can do this through sqlserver (stored procedure or any thing else) I want to show the file name list(by providing the path of any folder on system) in sql query analyser by running any script for that Thanks........
View Replies !
View Related
To List Ssis Packages Stored In File Folder
Hi, newbie to sql2005. I am trying to write a VB.NET program to list all ssis packages we have stored in a file folder (not in MSDB) where both SqlServer and ssis servers are located. These packages currently running on daily basis by automated jobs with no problem. I have found the following link on the web that includes VB.Net program. If you scroll down under Example (SSIS Package Store) , you'll see a VB.NET program that I am trying to get it to work for me but keep getting error message like "Cannot find folder......" http://msdn2.microsoft.com/en-us/library/ms403343.aspx My goal is to: 1. List all ssis packages stored in the file systems (.dstx) 2. List DB source and distination providers(tables in/out) in a ssis package 3. List properties for DB providers 4. List FlatFile & Excel file provider properties in a ssis package. My assumption, but not sure, is that I may need to register this file folder (where packages are located) to the SqlServer if that is not done already. Any command or sys table in Sql2005 to figure this out? I would appreciate any help on this in advance. Thank You.
View Replies !
View Related
Dropdown List Values
Dear Readers of this post, I have a dropdownlist that is populated with an sqldatasource as follows: SELECT [Project_ID], [Title] FROM [Projects] WHERE [Username] = @Username AND Hide ='false' The Datavalue vield of the DDL is populated with the [Title]. When the user submits the form [including the value of the of the drop down list] i want to be able to add the Project ID and the Title Values into another database table. any ideas Sat
View Replies !
View Related
DropDown List Values
For a controlParameter in the ASP code, how do I retreive the selectedValue of the drop down list?Would this work? <asp:controlParameter Name="InvoiceNumber" Type="String" ControlID="ddAdSize.Value" />
View Replies !
View Related
Passing Value From Dropdown List
Hi every one, I am trying to pass a seleted value into a sql query which I am writing as Sql Command text. I am not writign proper concatination I think I am writing like this cmd,CommandText = ("Select title_id from titleauthor where au_id ="&"Dropdownlist2.selectedvalue") Please let me know how to write this correctly Thanks for your help in advance
View Replies !
View Related
Dropdown List Width
Hi everybody, I created a multivalue parameter in SSRS 2005 SP2, but the problem is that the width of the dropdown list is too small to fit my data (I'd like to avoid scrolling horizontally). Is there any way to configure this? Thanks in advance for your help. Zoz
View Replies !
View Related
Dropdown List Issue
Hi All, I am having the following issue with one of my reports using Reporting Services 2005. When you chose a value from dropdown list , the page reloads but the dropdown list does not keep the value selected. It always display the first item from the dropdown list. Any idea? Thanks! Gonzalo
View Replies !
View Related
Foreach File Enumerator - Is Absent In Foreach Loop Component
Hi, I have no "Foreach File Enumerator" oprtion in the Enumerator Property of the Foreach Loop Component. I have this enumerator in the c:Program FilesMicrosoft SQL Server90DTSForEachEnumerators folder. Also I check it in the GAC - it does not here. I try to execute gacutil.exe -iF ForEachFileEnumerator.dll, but it is failed with "Failure adding assembly to the cache: The module was expected to contain an assembly manifest." Seems it is not managed enumerator. Please help me. Also information on how to regeister unmanaged enumerators are welcome!
View Replies !
View Related
Select Statement For Dropdown List
I have a dropdown list that is populated by two columns in a database.select (firstname+surname) AS Fullname from table where id = 'id'; It works fine but i want to know how i would get a space between the firstname and the surname because at the moment all the values come back as JoeBloggs....without any spaces
View Replies !
View Related
How To Populate Table From Dropdown List?
Hi,I have table (tbl_a) that get it values form three Dropdown List and the PK of this table is FK in different table(tbl_b).Since tbl_a get its values from three Dropdown List the number of rows in this table is limited to the number of combinations the three Dropdown List is offer (in any case the number of raws in that table will be final).Assuming tbl_a and tbl_b are both empty. The problem is that if i want to insert row to tbl_b i have to check first if there is a row that holds the values (or combination of values) i am getting from the Dropdown List in tbl_a .Then, if such row is exist i have to get the PK of that raw and insert it to tbl_b (as FK),if such row does not exist, i have to insert it and then get the PK of this row and insert it to tbl_b (as FK). In the end, tbl_a will have all the combination the three Dropdown List can offer so checking if raw exist in this table will not be necessary. In my opinion this is not effective way to do that.Can someone offer me better way to do it? Thanks
View Replies !
View Related
How To Populate Table From Dropdown List?
Hi, I have table (tbl_a) that get it values form three Dropdown List and the PK of this table is FK in different table(tbl_b). Since tbl_a get its values from three Dropdown List the number of rows in this table is limited to the number of combinations the three Dropdown List is offer (in any case the number of raws in that table will be final). Assuming tbl_a and tbl_b are both empty. The problem is that if i want to insert row to tbl_b i have to check first if there is a row that holds the values (or combination of values) i am getting from the Dropdown List in tbl_a . Then, if such row is exist i have to get the PK of that raw and insert it to tbl_b (as FK), if such row does not exist, i have to insert it and then get the PK of this row and insert it to tbl_b (as FK). In the end, tbl_a will have all the combination the three Dropdown List can offer so checking if raw exist in this table will not be necessary. In my opinion this is not effective way to do that. Can someone offer me better way to do it? Thanks
View Replies !
View Related
Parameter DropDown List Grayed-out
I am building a report with several search parameters; three of which are dropdown boxes each populated by a data set. I wanted something more user-friendly than the default "(Null)" in the dropdown, so for each data set, it returns a result set UNIONed with " N/A" to show up first as the default. For some reason, when the report loads, the first dropdown populates just fine and does indeed have the default value " N/A" but the other two dropdowns are grayed-out. Until you change the first dropdown (to anything, apparently it doesn't matter what you change it to) the other two stay grayed-out. When the first is changed, the other two are populated and default to the desired " N/A" default value. Why would it do this, when it didn't do it before; i.e. when the default for all of them was simply null. The dropdowns are not dependent on each other; they don't depend on other parameters for their values. Any help would be appreciated.
View Replies !
View Related
Special Characters In A Dropdown List
I have a web form that needs to be bilingual. It contains several dropdown lists. The "text" and "value" for each item in the dropdown list is retrieved from a database. The logic reads the database and then populates the various dropdowns with logic such as: dim newItem as new ListItem(textString, valueString) theDropDown.items.add(newItem) The problem that I am having occurs when the textString needs to contains special characters such as accented vowels or an "n" with a tilde. I have tried populating the database with HTML-formatted strings such as "Avión", hoping that this would display "Avion" with an accute accent over the "o". Unfortunately it displays "Avión". How do I get dynamically-created dropdowns to display special characters? If the answer is to simply store the special characters directly in the database, then the question becomes how do I get the special characters into the database? I tried to figure out how to write a T-SQL command such as update tablex set SpanishName = 'Avion' where id=999 but I can't figure out the syntax to insert an accented 'o' into the string. Thanks.
View Replies !
View Related
Trying To Populate Dropdown List From SQL Data Source
I am trying to populate a dropdownlist from a sql data source in my codebehind using c#. I thought I had the code correct but I keep getting the following error and I am stuck: "Only assignment, call, increment, decrement, and new object expressions can be used as a statement" Here is the code:protected void populateOppNameList(){ SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);SqlCommand cmd = new SqlCommand("SELECT empname FROM opportunity WHERE (username = " + userName + ")", conn); SqlDataAdapter adapter = new SqlDataAdapter(cmd); try { conn.Open();DataSet ds = new DataSet();DropDownList ddl_OppNames = (DropDownList)FormView1.FindControl("dropdownlist1"); ddl_OppNames.DataSource = ds; ddl_OppNames.DataBind;}catch (Exception e) { } finally {if (conn != null) { conn.Close(); } } }
View Replies !
View Related
Separate Dropdown List Selectedvalue Into Two Fields
i have two columns in a "release" table that i concatenate on my aspx page into one value for my dropdown list. for example, my database columns might look likeMajor: 3 | 3 | 4 | 4 | 5Minor: 1 | 2 | 1 | 2 | 1and my drop down list text like3.1 | 3.2 | 4.1 | 4.2 | 5.1my question comes when trying to take the drop down list's selected value and splitting it back into two fields so that i can use it for another query. how can i split my "major" and "minor" version numbers back up so that i can run a query similar to:SELECT * FROM [Version] WHERE (([Major] = @Major) AND ([Minor] = @Minor))but only having the one parameter of: <asp:ControlParameter ControlID="ddlVersion" Name="Version" PropertyName="Text" Type="String" /> where the selected value has a string of "<major>.<minor>" (where the numbers are separated by a period)?
View Replies !
View Related
Populate Dropdown List With Dimension Hierarchies
Hi, I am currently trying to develop an application which would help in retrieving data from cubes (Microsoft Analysis Services)! The user would not be accessing the Business Intelligence Studio, etc. but would be viewing the data from a custom made application developed in VB.Net2005. While implementing this, I want to populate the drop-down-list in the VB(.Net) Form, by retrieving the various hierarchies in the dimensions of the cubes (along with dimensions if possible). This should be done dynamically and in real-time! Can you please help in implementing this? Any code/method, etc would be highly appreciated! Thanks in advance. Best wishes! (Software : SQL Server 2005 Enterprise Edition (with Analysis Services and BI Studio), VS.Net 2005 Enterprise Edition, ADOMD.Net)
View Replies !
View Related
Oleddb Dropdown List Is Empty In Excel
Hello, I have an issue with connecting Excel to an analysis Services 2005 database. The computer is running Windows XP Sp2 and Office XP. I installed the oledb driver 9.0 but when I tried to connect with the pivot table and I want to create the connection, the dropdown list of the data provider is empty. I tried on another computer with Excel XP and the system is working fine. Is there somebody that could help? Thank you
View Replies !
View Related
Firefox In Mac Fails To Render Scrollbar In The Multi-value Parameter Dropdown List Generated By ReportViewer.
Our clients working with the Firefox browser on a Mac are unable to use the Multi-Value parameter drop down lists that the Report Viewer control generates. Of course I realize that the multi-select dropdown lists are not really dropdown option lists using the standard HTML select tag, but are rather tables within div tags with cells that contain spans, inputs, and labels. Originally the report viewer displayed these lists in the wrong position within Firefox on any platform (Mac or PC). Furthermore, there were other visibility problems with those lists that made it virtually impossible to select a checkbox within the list. Fortunately, Microsoft fixed this problem with the latest version of Report Viewer, which we downloaded from the following link: http://207.46.19.190/downloads/details.aspx?FamilyID=cc96c246-61e5-4d9e-bb5f-416d75a1b9ef&displaylang=en So currently we have SQL Reporting Services Report Viewer 9.0.21022.8 installed on our web server. And the dropdown lists do appear as expected, and they work properly in Firefox on a PC. But, when the control is rendered in Firefox on a Mac, the list is not scrollable. The scroll bar that should appear on the right-hand side of the dropdown list, which would enable users to select values toward the bottom of the list, does not appear. That scrollbar is missing in Firefox. This is likely related to a Firefox rendering issue with the overflow:auto style. There are numerous entries on the web that indicate Firefox for Mac has a problem with overflow:auto. For example: http://www.webdeveloper.com/forum/archive/index.php/t-96958.html http://www.daniweb.com/forums/thread44144.html http://iamthewalr.us/blog/2007/04/20/firefox-on-the-mac/#comment-2321 http://www.errorforum.com/mozilla-firefox-error/3503-will-float-mac-firefox-scrollbars-floating-pop-up-windows.html https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=187435 That being the case, it seems that there should be some workaround to address this, either via a style or through some alternate control. Or perhaps there is a property that we can apply to the ReportViewer control that I'm unaware of which addresses this. If you know of a workaround, or can suggest an alternate approach that we could implement quickly, please respond. Thanks.
View Replies !
View Related
Missing SAMPLES Folder
I have installed SQL Server 2005 on Windows Server 2003 Standard SP1. THe SAMPLES folder within the C:/Program Files/Microsoft SQL Server/90 folder is missing. I installed SQL Server 2005 SP2 thinking that this might create the SAMPLES folder, but it didn't get created. Please let me know what should I do to create it. Thanks in advance.
View Replies !
View Related
List The Folder Contents Using SQL
Hi all, I have built a Disaster Recovery Site for my DB.on periodic basis, trn files from production server reach DR server and DR setup will apply them locally. If the flow is smooth then no issues, if one of the file does not reach DR the entire setup will halt for the want of the file and I dn't have any means to know which file is missing. Both my production and DR site located remotely behind firewalls, i.e i can't physically access the servers or remotely login to the server. Can anyone tell me how to see the contents in a folder in the server using SQL query . Any help is highly appreciated Thanks and Regards Srinivas Varanasi
View Replies !
View Related
Missing Permission To Create Datasource, New Folder, Add Security..etc
I have windows 2003 reporting services 2005 that has been working fine. Now all of a sudden when I go to http://localhost/reports I am unable to assign security to folders(the link is hidden) the New data source button is hidden, the new folder button is hidden, upload folder and report builder are also hidden. I am logged in as aministrator. Also when I connect to reporting services through SQL Mgmt Studio I have the same issue, there are no options for permissions only a general option. I'm sure it's a permissions issue but what do i do to resolve? Thx
View Replies !
View Related
SSRS Missing/hidden Data Source Folder
I have inherited a SSRS setup and am trying to do some clean up. Problem is I cannot see the Data Sources Folder. I am setup as SA and SU on both the RS Server and SQL Server. When I go check the catalog in SQL db it does truly exist as well as a number of data sources in the folder that reports are currently using. How can I see this folder?
View Replies !
View Related
Sql Server 2005 Maintenance Plans Folder Missing
I've seen a few threads on this which seem to suppose the problem is on Express edition rather than Standard edition. Not so here. This is definitely Standard edition, SP3 as seen by running SELECT CONVERT(char(20), SERVERPROPERTY('Edition')) SELECT CONVERT(char(20), SERVERPROPERTY('ProductLevel')) In SSMS Under the Management folder there is no "Maintenance Plans" folder. There IS a "Maintenance Plans" folder under the Legacy Folder. I have another instance which is Standard and SP1 which looks just fine.
View Replies !
View Related
Moving Csv File From One Folder To Another Folder
I am having problem with moving a file from one folder to another folder. Here is the detailed scenario: I want to move a input.csv file from shared input folder to shared archive folder. i am using the below code to do this. declare @inpath varchar(100) SET @inpath = 'move "\abcdefINPUTinput*.csv" "\abcdefARCHIVEarchive.csv"' EXEC @filestatus = master..xp_cmdshell @inpath but the problem was it was cutting the input.csv file from INPUT folder but not pasting it in the ARCHIVE folder. I really appreciate if anyone can help me to solve this or anyone can tell some workarounds. Thanks,
View Replies !
View Related
Display List Of Databases In App_Data Folder
Hi All, The web site I'm working on will allow admin users to create a new database for each new client. I'm hoping to be able to keep all of the databases in the local App_Data folder, but I'm finding that I can't even find a way of generating a list of the databases in the App_Data folder. The code I have is:Dim serverConn As New ServerConnection(".SQLEXPRESS") serverConn.LoginSecure = True serverConn.ConnectTimeout = 30 serverConn.Connect() Dim sqlServer As Server = New Server(serverConn) For Each db As Database In sqlServer.Databases ListView1.Items.Add(db.Name) NextThis does populate a list of databases, but not the ones in the App_Data folder - just those attached directly to the server.Any help on this will be greatly appreciated as it's starting to drive me nuts!Thanks,Paul
View Replies !
View Related
Foreach File Enumerator, Skip File On Error.
Hi, I'm struck with a small issue.. would be great if somebody can help me out. Here is te scenario 1. There would be more than one CSV files in INPUT folder. 2. I'm using a Foreach Loop file enumerator to loop thru the files and load the data into database. 3. If loading is successful the file need to be moved to ARCHIVE folder and next file needs to be picked up for loading 4. In case if there is an error in loading the file has to be moved into ERROR folder, Error description should be logged to error log text file and next file needs to be picked up for loading. I don't think increasing max error count is an option as I don't know how many no. of input files are available as it depends upon the feed. What is the best way to go.
View Replies !
View Related
Data Provider List Missing...very Odd SQL 2000
Hey All! I have an interseting situation with one of my dev machines. (W2k3EE, SQL2k SP4) All my linked servers stopped working posting this error: Server: Msg 7302, Level 16, State 1, Line 1 Could not create an instance of OLE DB provider [enter provider name here, e.g. 'SQLOLEDB'. So...when attempting to drop and recreate the linked server, the Provider pull down in the GUI is completely empty. YIKES! I'm thinking of reinstalling MDAC, but I've never seen this in 10 years of DBA'ing. Have any of you? Any thoughts out there? Registry issues? Cheers, Odd
View Replies !
View Related
SQL 2005 Return A List Of Missing Rows By Date?
Hi, I have written a reporting application which has a SQL2005 backend. An import routine into SQL, written by a 3rd party, frequently fails. The main problems are missing rows in certain tables. I am going to write an SP that will accepts a from and to date. I then want to search for rows of type X between those dates that do not exist so we then know between a date range, we have no data for these XYZ days. I have this working by returning all rows between the dates into a dataset, sorted by date, and then running through the rows and testing if the next rows date is the next expected date. This works but I think is a very poor solution. This is all done on the client in C#. I want to learn and implement the most efficent way of doing this. My only solution in a SP was to make a temporary table of all dates between the date range for row type X and then do a right outer join against the data table, returning all rows which are missing. Something like this: SELECT twmd.date FROM #temp_table_with_all_dates ttwad RIGHT OUTER JOIN table_with_missing_date twmd ON ttwad.date = twmd.date WHERE twmd.date IS NULL Would this be a good, efficent solution, or should I just stick to my processing of a dataset in C#? Many thanks in advance, CB
View Replies !
View Related
Replication Error: Agent Message Code 20149. The File 'snapshot.cab' In Folder ... Is Not A Valid Cabinet File
Hi All, SQL Server 2000. Microsoft SQL Server Distribution Agent 8.00.2039 I have a replication setup between two remote SQL Server 2000 servers. The snapshot gets generated and compressed on the Publisher server and the Subscriber pulls the data. To debug the problem, I setup my agent parameters as -Publisher SCDC2EPMSION -PublisherDB [ION_Data] -Publication [CDC2_ION_Data_Pub] -Distributor [SCDC2EPMSION] -SubscriptionType 2 -Subscriber [SCDCREPORTSREPORT] -SubscriberSecurityMode 1 -SubscriberDB [CDC2_DATA] -Output D:MSSQLMSSQL$REPORTREPLDATAREPLICATION_LOGSCDC2_DATA.txt -Outputverboselevel 1 I get the following error message in the distribution agent's log file. Agent message code 20149. The file 'snapshot.cab' in folder '\scdc2epmssql_snapshotuncSCDC2EPMS$ION_ION_Data_CDC2_ION_Data_Pub20070828001505' is not a valid cabinet file The funny thing is that when started the synchronization again, it finished successfully off the same snapshot file, which it gave error for. Has anybody encountered this error message before? Could you comment on it please? Thanks in advance, Sinan Topuz
View Replies !
View Related
Foreach File
I loop through a list of files in a directory and one of the tasks in the container is to validate the xml file against dtd if this succeeds i process the file and the lforeachloop gets the next file. If validation fails i then delete that file,the problem i am having is that whe the xml task fails it stops the whole for each container even though the failparentonfailure is set to false. How can i get the foreach container to continue to the next file after the xmltask fails (validation) and the file is succesfully deleted? PS is their away of posting the DTSx screenshot as this might explain it better?
View Replies !
View Related
Foreach File Enumerator -
I am trying to use the Foreach File Enumerator and map it to a user variable. I select a folder in the colletion. I use *.* for file name. I left the default value for retrive file name. I assigned it to my user variable ( data type string) I am get the following error "The element cannot be found in a collection" I am sure that I have at lest 10 file in the folder. Can anyone tell me why I get the error?
View Replies !
View Related
ForEach Loop - Getting MD5 Hash Of File
Hi Guys, I'm importing logs from multiple servers from CSV format into a table. Inside the loop the 1st thing I do is insert the FileName into a table to ensure that I never process the same file twice. The problem is that multiple servers produce the same filename, so if server A produces Log20061110.csv - when I import the log from server B ( also called Log20061110.csv ) into the table, it of course runs into a problem. If there was some way for me to get an MD5 Hash of the file as a variable that would be solve my problem. Does anyone know how I could accomplish that? Thanks Warrick
View Replies !
View Related
ForEach File Enumerator Extension Bug?
I set up a basic ForEach enumerator loop and specified files of type *.sql. In the directory, I had some files I needed to keep but didn't want the package to touch, so I changed the extension to *.sqlo. Much to my dismay, the ForEach loop picked up those files. (Though it did skip the *.xml and *.bat and a few other types...) Sounds like a bug to me.
View Replies !
View Related
ForEach Loop File Locks
I vaguely remember a post a few weeks back about people having file locks using a ForEach container looping over a directory. I'm currently working on a package that loops through a directory and then performs multiple dataflows/operations inside the for loop and Here is the basic flow For Each srcF in Dir Build srcF, tempF, dstF variables, basically filename variables (Script Task) Parse srcF and output tempF (Data flow task using Flat File Source, Derived Columns, and Flat File Destination) Create dstF, write header, and copy contents of tempF into dstF (Script Task using StreamWriter and StreamReader) Next The reason I need to use the script task to create the final file is because I need to output a multi-line header to the top of the file. The problem is that occasionally the Create dstF Script Task fails because tempF is in use, almost like the Script Task is executing prior to the Flat File Destination closing it's handle to the file. Have other people run across this? Larry Pope
View Replies !
View Related
ForEach File - Filename Mask
Hello I'm using the ForEach File task and masking the files I want to process as ABC??.TXT. It all works well until I drop a file there like ABC12 Copy.TXT, which I don't expect to be process, but the loop still picks it up. Am I using the wrong wildcards? newstar1860
View Replies !
View Related
File Metadata And The Foreach Loop Container
Hello, I want to set up a Foreach loop container to loop through several flat files. I have a connection manager set up for individual flat files. The metadata for the files is all the same. They are fixed width files, and contain sixty five columns. I didn't see a place in the container properties to configure the metadata of the files. How can a Foreach Loop Container 'know' the metadata of the flat files that I want to loop through? Thank you for your help! cdun2
View Replies !
View Related
Using Variable Of Foreach Loop - File Enumerator
I have a Foreeach loop container that is looking for all the files in a specified directory. For each file in the directory I need to open the file, extract the contents, and pass the contents as a variable for a stored procedure call. I was able to loop thru the files in the directory and see each file and store the name to a variable. I was able to use an XML task to open one file via a file connection that connects to a specified file and store the contents in a variable and then execute the SQL task using the variable. What I am unable to figure out is how to put the two processes together and get the XML task to open the file by using the variable that contains the filename. If anyone could help I would really appreciate it. Thanks! GN
View Replies !
View Related
How To Fail When ForEach File Enumerator Doesn't See Files
I have a ForEach file enumerator that executes a data flow for every source file in a specified directory. If there are no files in the directory, the package executes with a result code of 0. I need the package to fail if there aren't any files found in the specified load directory. Is there a simple way to do this with the SSIS component, or will I have to script the entire file enumeration process inside script tasks to handle this requirement? Thanks in advance for any assistance with this question. Please post replies to this forum. -Doug
View Replies !
View Related
ForEach File Enumeration With Bulk Insert Problem
OK, a new package, with a Foreach container enumerating CSV files in a directory. I create the container pointing it at the directory and retrieving the fully qualified name, and create a variable (called 'CSVFiles') with a package scope, but no value. Inside the container is a bulk insert task. The destination db/table is set, and the input flat file connection manager for the CSV files is defined with the connection string set to the variable created above. As it iterates through the files, the variable is correctly set to the next file in the directory (I put a message box in the stream to display the file name/variable). It resembles 'C: empLocation1.csv'. But when it gets to the bulk insert, I get this error message: [Bulk Insert Task] Error: The specified connection "CSVFiles" is either not valid, or points to an invalid object. To continue, specify a valid connection. What's going on here? Can I not use a bulk insert task in the container? Or some other parameter needs to be set? SQL Server 9.00.3159
View Replies !
View Related
Foreach Loop Read Table Data And Write To File
Hi, I want to do the following with a ssis package: INPUT: A table contains 2 columns with data i need. column A=Filename and column B=FileContent PROCESS: I need to loop through ea record in the table and retrieve columns A and B. Then for ea column i need to write the Content hold in column B into File hold in column A. I so far found out, that i need a Execute SQL Task in Control Flow querying the table and get columns A and B into 2 variables, plus a 3rd var holding the object. Then the output goes into a Foreach Loop Container. From this point i don't know how to continue. I tried to put a Data Flow Task inside the Foreach Loop, but couldn't find out how i now get the 2 variables to the Data Flow Task and use them to for the file to be written and the content to be placed in the file. Is there any example similiar to that so i could learn how to start on that? Thanks Danny
View Replies !
View Related
|