Transformation Object To Filter Data In Pipeline
Hi,
I have some data coming through pipeline and I wanna add some component at some point to pass on only selected rows based on conditions to the objects onwards. My opinion is I should use conditional split object, but Please suggest me something if you know better.
Thanks,
Fahad
View Complete Forum Thread with Replies
Related Forum Messages:
Filter Rows With Script Transformation
I want to filter rows in script transformation. Since there is no isnumeric function in SSIS, i want to use script transformation to remove or block some rows in script. My question is how to remove or block some rows from data flow? For some other reasons, script transformation is my preferred choice for this problem.. Thanks Saeed
View Replies !
Pipeline Error-excel Source-data Reader Does Not Read In Meta Data
Hi all, i got this error: [DTS.Pipeline] Error: "component "Excel Source" (1)" failed validation and returned validation status "VS_NEEDSNEWMETADATA". and also this: [Excel Source [1]] Warning: The external metadata column collection is out of synchronization with the data source columns. The column "Fiscal Week" needs to be updated in the external metadata column collection. The column "Fiscal Year" needs to be updated in the external metadata column collection. The column "1st level" needs to be added to the external metadata column collection. The column "2nd level" needs to be added to the external metadata column collection. The column "3rd level" needs to be added to the external metadata column collection. The "external metadata column "1st Level" (16745)" needs to be removed from the external metadata column collection. The "external metadata column "3rd Level" (16609)" needs to be removed from the external metadata column collection. The "external metadata column "2nd Level" (16272)" needs to be removed from the external metadata column collection. I tried going data flow->excel connection->advanced editor for excel source-> input and output properties and tried to refresh the columns affected. It seems that somehow the 3 columns are not read in from the source file? ans alslo fiscal year, fiscal week is not set up up properly in my data destination? anyone faced such errors before? Thanks
View Replies !
&&<Data&&>Microsoft.SqlServer.Dts.Pipeline.BlobColumn&&</Data&&>
I have a custom (dataset) destination component from ms samples and it has an input holds DT_NTEXT value. Whenever I try to retrieve data from this it returns "Microsoft.SqlServer.Dts.Pipeline.BlobColumn" as value. I try this but didn't work: String sValue = System.Text.Encoding.Default.GetString(Convert.FromBase64String(this.dataSet.Tables[0].Rows["Data"].ToString())); It throws an execption "invalid character in.." Please help how I can convert this? Thanks in advance
View Replies !
How Do I Write Multiple Pipeline Buffer To Multiple Targets Based On A Calculated Value In The Pipeline Buffer
The scenario is as follows: I have a source with many rows. Each row has a column called max_qty_value. I need to perform a calculation using another column called qty. This calculation is something similar to dividing qty/(ceiling) max_qty_value. Once I have that number I need to write an additional duplicate row for each value from the prior calculation performed. For example, 15/4 = 4. I need to write 4 rows to the same target table as in line information for a purchase order. The multicast transform appears to only support fixed and/or predetermined outputs. How do I design this logic in SSIS to write out dynamic number of rows to a target table. Any ideas would be greatly appreciated. thanks John
View Replies !
Object Reference Not Set To An Instance Of An Object (Inserting Data Into Database)
Each time I press submit to insert data into the database I receive the following message. I use the same code on another page and it works fine. Here is the error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 125: MyCommand.Parameters("@Balance").Value = txtBalance.Text Line 126: Line 127: MyCommand.Connection.Open() Line 128: Line 129: Try Source File: c:inetpubwwwrootCreditRepairCreditor_Default.aspx.vb Line: 127 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] CreditRepair.CreditRepair.Vb.Creditor_Default.btnSaveAdd_Click(Object sender, EventArgs e) in c:inetpubwwwrootCreditRepairCreditor_Default.aspx.vb:127 System.Web.UI.WebControls.Button.OnClick(EventArgs e) System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) System.Web.UI.Page.ProcessRequestMain() Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click If (Page.IsValid) Then Dim DS As DataSet Dim MyCommand As SqlCommand Dim AddAccount As String = "insert into AccountDetails (Account_ID, Report_ID, Balance) values (@Account_ID, @Report_ID, @Balance)" MyCommand = New SqlCommand(AddAccount, MyConnection) MyCommand.Parameters.Add(New SqlParameter("@Account_ID", SqlDbType.Char, 50)) MyCommand.Parameters("@Account_ID").Value = txtAccount_ID.Text MyCommand.Parameters.Add(New SqlParameter("@Report_ID", SqlDbType.Char, 50)) MyCommand.Parameters("@Report_ID").Value = txtReport_ID.Text MyCommand.Parameters.Add(New SqlParameter("@Balance", SqlDbType.Char, 50)) MyCommand.Parameters("@Balance").Value = txtBalance.Text MyCommand.Connection.Open() MyCommand.ExecuteNonQuery() Response.Redirect("Customer_Details.aspx?SS='CustHeadGrid.Columns[0].Item.lblSS.Text)") MyCommand.Connection.Close() End If
View Replies !
&"Object Reference Not Set To An Instance Of An Object&" When Retrieving Data/Schema In Design Time
Hi There,This is related to a ms access database but since I use the SqlDataSource control I thought I should post here.I have a project that I was working on with this ms access db and using sql controls, everything was working just finesince one day I started getting "Object reference not set to an instance of an object" messages when I try to designa query or retrieve a schema, nothing works at design time anymore but at runtime everything is perfect, its a lotof work for me now to create columns,schemas and everything manually, I've tried reinstalling visualstudio, ado componentsbut nothing seems to fix it, did this ever happen to any of you guys?any tip is really appreciated thanks a lot
View Replies !
Data Link Support For Data Transformation Services
Hi All, I am looking to use DTS to manipulate data from a number of sources (access, oracle, etc.) and am looking for some direction as to best practices and gotchas that I should worry about. Do people recommend using DTS or is there a better way of doing this type of data import/manipulation? What would I use Data Link for when using DTS? Thanks in advance,
View Replies !
Data Transformation Services -- Import Data
Hello, I need to import a text file into a database using the "Import Data". My text file has 9 column and my table has 10 column which the 10th column is the timestamp. The folowing is my script: Function Main() DTSDestination("SDate") = CDate(Mid(DTSSource("Col001"),1,2)+"/"+Mid(DTSSource("Col001"),3,2)+"/"+Mid(DTSSource("Col001"),5,4) ) DTSDestination("Customer Number") = DTSSource("Col002") DTSDestination("SalesNote") = DTSSource("Col003") DTSDestination("ItemCode") = DTSSource("Col004") DTSDestination("SerialNo") = DTSSource("Col005") DTSDestination("CpyCountry") = DTSSource("Col006") DTSDestination("POrder") = DTSSource("Col007") DTSDestination("DN") = DTSSource("Col008") DTSDestination("ShipTo") = DTSSource("Col009") DTSDestination("LastModifiedTime") = CURRENT_TIMESTAMP Main = DTSTransformStat_OK End Function The text file is imported successfully but the "LastModifiedTime" which suppose to be the timestamp is NULL. What I can think of is that at the "Column Mapping" all the columns have been mapped to the table column. No extra column is available for "LastModifiedTime". So, the source is an "ignore" to "LastModifiedTime". How can create a timestamp to the last column when this job is running ?
View Replies !
Data Transformation
i have something like this: select * from accounts name type amount ==== ==== ====== mary saving 123.00 mary chequing 246.00 mary investment 135.00 john saving 678.00 john chequing 987.00 john investment 0.00 what should i do to present the data in the following format? name saving cheq investment ==== ====== ==== ========== mary 123.00 246.00 135.00 john 678.00 987.00 0.00 Thanks.
View Replies !
Data Transformation
We are transferring data between AS/400 and SQL Server 7.0 using DTS. Some of these transfers may need to be very close to real time. It doesn't seem like a continuously running job is the best solution for that. Do you know any tools or utilities that can help us to move the data? Thank you, Anastasia.
View Replies !
Data Transformation
Hi, newbie here with a simple?(maybe)question. I have an Access Database that I have imported into SQL Server2000 and that worked great, but now I have to get it into 2005. My question is, How can I get the tables and all info in the tables into an SQL Script so I can run that script on the 2005 server? The SQL 2000 is on my dev server and I have all the Tools, (Ent Manager, Query Analyzer,etc...) but the 2005 Server is Godaddy's and they only have the basic web interface. I can run Sql files and create databases and tables, but thats about it.
View Replies !
Pre-filter Data In SQL
I need to query the Employees table in the ABC database to find all employees who report to EmployeeID 5 (indicated by a value of 5 in the €˜ReportsTo€™ column) and who have the word €˜Sales€™ in their job title (i.e the Title column). In my database the Employees table is very large so you want to pre-filter the data before doing more complicated processing on it. How would I use the following statement to to pre-filter the data? SELECT * FROM EMPLOYEES WHERE ReportsTo = 5
View Replies !
SSIS Data Transformation
I have begun using SSIS and I am a little taken aback by the complexity of it especially since I just want to do a simple data transformation such as in DTS. Are there any tutorials for data transformation for SSIS on the web/this forum and what if I want to do a simple transformation from Access to SQL Server?
View Replies !
Data Transformation Services
HiI was told that using DTS will allow me to schedule stored procedures to keep an sql database up to date. For example if a user registers but does not activate the registration, his details will be removed by a stored procedure which is scheduled to run every 24 hours. I use to use the global.asax file to fire a update by using a file containing a the date of the last update and then by adding 24 hours to it, it would execute a SP to delete unwanted data.I have tried to install DTS with no success. I am running the followingVisual web studio expressSQL 2005 Express. (From SQLExpr_exe) and I have told it to install all the extra componentsInstalled SQLEXPR_Toolkit.exe with all its optionsInstalled SQLServer2005_DTS.MSI When I go into the sql server using MS SQL Server Management Studio Express. I cannot see the Data transformation services node. I have also just installed server reports which I had no problems installing.Can somebody please help me.
View Replies !
Data Transformation - Hanging
I'm running a DTS package on SQL Server. The source is MS Access and thetarget is Oracle.On a "Drop Table" command the process just hangs. There are no foreign keys onthe table. Several tables have already been processed successfully by thistime.I think I've ruled out corruption by dropping and recreating the targetdatabase on Oracle.Any ideas?M Man
View Replies !
Data Transformation Services
I`m trying to import a plain text file. Many columns to one. If I do a straigth copy everything works fine. If I make the Source and Destination Columns the same I can do transforms. But If I make the destination column ignore the source column, When I try to access the source column I generate an error. I trying to concatenate 3 columns from the source to one column in the destination. Any place I can find help on DTS --jvc--
View Replies !
Data Transformation Services
Hi, we're trying to import data from an Access database to SQL Server. We're using the DTS Import Wizard. All except one table is able to be imported. We get the following error: Insert error, column 8('EndTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow Insert error, column 8('StartTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow Invalid character value for cast specification Invalid charcter value for cast specification In the Access database the fields are of type 'date/time' and their format is 'medium time'. Does anyone know why this error happens?
View Replies !
Data Transformation Services
Hi, I've two different databases, viz., Access and SQL Server 2000. I want to copy data from Access to SQL Server. But the problem is the Access tables are not in the normalized form whereas in SQL Server it's in the normalized form. In other words, the structure of the tables in Access and SQL Server differs drastically. How can I copy data between two of these? Thanks, Harish Kumar
View Replies !
DTS Data Pump Transformation
Hi people, I have written a VB.NET 2005 application that reads configuration information from an ini file. Then builds a DTS package based on the values specified in the ini package. If I then open and execute the package using Enterprise Manager I receive the following error message for each Data Pump Task. Step Error Source: Microsoft Data Transformation Services Flat File Rowset Provider Step Error Description:Incomplete file format information - file cannot be opened. Step Error code: 80004005 Step Error Help File: DTSFFile.hlp Step Error Help Context ID:0 What could be causing this? If I then go to each transformation task an specify source columns from the designer it works fine. Regards, Hank :confused:
View Replies !
Data Transformation Services
Has anyone had problems using the data transformation services in Beta 3. I keep getting a Com error where it says it can not call the object. I am running Windows NT workstation with service pack 3. There are no errors during installation. I have even uninstalled all components and reinstalled. Everything else works great except the Data transformation stuff. Any Ideas. Thanks Tom
View Replies !
Data Transformation Services
I have SQL 7.0 Enterprise Edition, SP1 running on a test server, and have installed the client utilities on my workstation (NT 4.0 SP4). I've mainly been setting up the system to as closely match our production server as possible, but recently I have been doing a little exploring around the MMC. I've clicked on the Metadata object in the Data Transformation Services' tree, and I receive the following error: An error occurred while trying to access the database information. The msdb database could not be opened. This only occurs on my workstation. If I go to the console and do the same thing, MMC displays the appropriate object information. What could be the problem? I've been searching Microsoft's knowledge base to no avail. Thanks for any help. Chris
View Replies !
DTS Error During Data Transformation
I tried transforming data from one server to another using DTS. and then i got an error as below, ----------------------------------------------------------------------------- Details: Error Source: Pump Data Step Details: The Data Transformation Services cannot copy or transform data from a Desktop or server to a standard, Enterprise, or small business server version of SQL server unless your destination server is per user licensing mode. Facility: 4, Severity 1,Code: 1176, HRESULT:0x80040498 Desc: The Data Transformation Services cannot copy or transform data from a Desktop or server to a standard, Enterprise, or small business server version of SQL server unless your destination server is per user licensing mode. Source : Microsoft Data Transformation Services(DTS) Package Source : Microsoft Data Transformation Services(DTS) Package Code: 0x80040428 Description: Package failed because step'Pump data step' failed. Error Message: IDispatch error #552 -------------------------------------------------------------------------- This is the full description of the error dialog... Please suggest me some solutions.... Thanks in advance, Kamalesh D
View Replies !
Data Transformation Services
Hi there, Can anyone tell what is the difference between the LOCAL PACKAGE, REPOSATERY PACKAGE AND METADATA in DATA Transformation services in SQL Server 7.0 thanks in advance. Madhuker.
View Replies !
Lookup Transformation (Can It Be Using The Old Data?)
I have a lookup transformation that retrieves a key for a certain column of values, in this case, a name. So, I go in to the lookup table with a name and come out with its key. I had it working and then I added new entries to the lookup table for a bunch of new names. Now, for some reason, I am not getting the matches for the new names. But I am still getting the matches for the names that existed before I added the new ones. I'm wondering if the lookup transformation is using the old set of data and some how not picking up the new names. Do I have to trigger something in the lookup transformation to let it know that the lookup table data has changed?
View Replies !
Data Transformation Question
I have a student table that needs some clean up. My first task is to remove all the periods (.) from the middle name column. Some people have two char middle initials with two periods. Can this be done via a SSIS package (I sure it can, but not how)? I can't think of a simple update statement that would accomplish the same thing. Any direction would be appreciated.
View Replies !
Best To Filter Data For A Report?
Hi All, I have an SQL2005 db where I have some data I want to retrieve for a report. There are a couple of related tables holding some secondary info linked by foreign keys and one large table holding the bulk of the data. On my site I want to have a page where people can select filter options such as to display items that were entered before a date, after a date, between two dates, objects that are marked as complete in the table, etc.... Essentially various optional filters. What I'm wondering is what's the best way to handle building the query to retrieve this data for the next page to display the report? I can think of a couple of ways but would essentially result in a lot of messy combining of strings to create the SQL query either in the C# code or in the stored procedure itself. I'm guessing, and hopping, there might be a cleaner method for this as it's a rather common thing I would think. Thanks :)
View Replies !
Using A Loop To Filter Data?
Current Code SELECT [Patient Identifier], Date, [Operator Index], Time FROM (SELECT ISNULL(t9.[Patient Identifier], t8.[Patient Identifier]) AS [Patient Identifier], ISNULL(t9.Date, t8.Date) AS Date, ISNULL(t9.Rows, t8.Rows) AS Rows, c.[Operator Index], c.Time, ROW_NUMBER() OVER (PARTITION BY ISNULL(t9.[Patient Identifier], t8.[Patient Identifier]), ISNULL(t9.Date, t8.Date) ORDER BY c.Time) AS RowNum FROM (SELECT [Patient Identifier], Date, 2 AS [Rows] FROM [First Step] WHERE [Operator Index] >= 90 GROUP BY [Patient Identifier], Date HAVING COUNT(*) >= 2) AS t9 FULL JOIN (SELECT [Patient Identifier], Date, 4 AS [Rows] FROM [First Step] WHERE [Operator Index] >= 80 GROUP BY [Patient Identifier], Date HAVING COUNT(*) >= 4) AS t8 ON t8.[Patient Identifier] = t9.[Patient Identifier] AND t8.Date = t9.Date INNER JOIN Complete AS c ON c.[Patient Identifier] = ISNULL(t9.[Patient Identifier], t8.[Patient Identifier]) AND c.Date = ISNULL(t9.Date, t8.Date)) AS d WHERE d .RowNum <= d .[Rows] Current Input Patient IDDATE Time Operator Index 5170000318OCT2006 11:48 91 5170000318OCT200611:50 100 5170000417OCT200611:41 89 5170000417OCT200611:50 93 5170000417OCT200611:52 91 5170000417OCT200612:00 93 Current Output Patient IDDATE Time Operator Index 0517_0000318OCT200611:48 91 0517_0000318OCT200611:50 100 0517_0000417OCT200611:41 89 0517_0000417OCT200611:50 93 It should be Patient IDDATE Time Operator Index 5170000318OCT2006 11:48 91 5170000318OCT200611:50 100 5170000417OCT200611:50 93 5170000417OCT200611:52 91 The data is organized by patient id, date, time (ascending) For a given patient id, on a certain data, testing was performed. A value between 80 and 100 is acceptable data. I need either the first 2 tests with a score above 90 or the first 4 tests above 80. (The tests are further sorted by time because the testing is time dependant. On some occassions, there is just too much data. What is wrong with my current query?
View Replies !
Filter Data By Row Number
SELECT * FROM (SELECT [Patient Identifier], [Operator Index], Date, Time, ROW_NUMBER() OVER (PARTITION BY [Patient Identifier], Date ORDER BY [Patient Identifier], Date, Time) AS RowNum FROM Complete WHERE [Operator Index] <= 89) AS a WHERE RowNum <= 4 UNION SELECT * FROM (SELECT [Patient Identifier], [Operator Index], Date, Time, ROW_NUMBER() OVER (PARTITION BY [Patient Identifier], Date ORDER BY [Patient Identifier], Date, Time) AS RowNum FROM Complete WHERE [Operator Index] >= 90) AS a WHERE RowNum <= 2 This query returns values above 90 (I need 2 of them) or values between 80 and 89 (data is already filtered for only greater >=80) and I need 4 values above 80. I only need either 2 above 90 or 4 above 80, not both, and this query returns 2 above 90, but also the values between 80 and 89. If there are already 2 above 90, I do not want any values between 80 and 89. If there are 4 above 80, I do not need any additional values. If the are two above 80 and 1 above 90, I will take all of them (max I will ever take is 4).
View Replies !
Filter Cube Data
Hi i am using pivot table 11 to display the data from SSAS Cube. the problem is 1- pivot table fetches all the data and display it according to the design. but what i need is a- the user could only see the data which was posted by himself. b. He must be unaware of the data posted by other users. in database table there is a field named userId which is also which is part of dimenssion in myCube. i dont want to use filteraxes for this purpose actually i want the user to be unaware of other users of system also any single helping word will be appriciated Regards Salman Bashir
View Replies !
Filter Data By Hours
Hello! I need to create a report that shows daily events per hours, like this: 15.5. Example 00:00 8 01:00 9 02:00 34 Is this possible? The data should be filtered by the datetime. If the datetime is for example 15.5.2008 00:45, it goes to the first row of that example table I created. Edit. I am using Sql server 2005. Thanks, Aleksi Rytkönen
View Replies !
How Do I Filter All The Data Not In The List?
Hi I am using below code to fetch the data hit our webserver from different website or engine. ex: If I pass the parameter Ref as google and the dates, will fetch the data (hits) from google. I have created a table (PoList) to have names like google,amazon,aol upto 14 names. My Question : How do I filter all (hits) the data which the name (Ref) is NOT in the PoList table. Thanks in advance CREATE PROCEDURE sp_Portals @Ref as nvarchar(255), @SDate as Decimal(18,0), @EDate as Decimal(18,0) AS SELECT COUNT(b.Pcode) AS totclicks, case when b.Pcode = 'NPF' then b.Pcode + '-- No Products Found' else a.prodmodel end as prodmodel, SUM(c.orderTot) AS [Sales Total], COUNT(c.cusID) AS NumSales, b.Pcode as Code FROM CusDetails c RIGHT OUTER JOIN View1 b LEFT OUTER JOIN Products a ON COALESCE (b.ProdID, 0) = a.ID ON c.sessID = b.SessID WHERE (b.Referer LIKE '%' + @Ref+ '%') AND (b.theDate >= @SDate) AND (b.theDate <= @EDate) GROUP BY b.Pcode, a.prodmodel ORDER BY totclicks DESC GO
View Replies !
[RESOLVED] Trying To Filter Some Data On SQL
Here is a simple grid view page I made. http://visualboxscore.com/boxscores/cfb_box_scores.aspx Ultimately I want to be able to filter every field that is listed. However, for now I am just learning this stuff and would like to just filter the by the name in the "offense" field. However, it is not binding the selection thus not filtering it out. Do you see any problems in my code? <%@ Page Language="VB" %> <html> <head id="Head1" runat="server"> <title>GridView DetailsView Master-Details (2 Page)</title> </head> <body> <form id="form1" runat="server"> <b>Choose a team:</b> <asp:DropDownList ID="DropDownList1" DataSourceID="SqlDataSource2" AutoPostBack="true" DataTextField="offense" Runat="server" /> <asp:SqlDataSource ID="SqlDataSource2" Runat="server" SelectCommand="SELECT DISTINCT [offense] FROM [cfb_boxscores]" ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>" /> <br /> <br /> <asp:GridView ID="GridView1" AllowSorting="True" AllowPaging="false" Runat="server" DataSourceID="SqlDataSource1" DataKeyNames="offense" AutoGenerateColumns="False"> <Columns> <asp:BoundField HeaderText="Date" DataField="date" DataFormatString="{0:MM/dd/yy}" ItemStyle-HorizontalAlign="Center" SortExpression="date" /> <asp:BoundField HeaderText="Offense" DataField="offense" ItemStyle-HorizontalAlign="Center" SortExpression="offense" /> <asp:BoundField HeaderText="Defense" DataField="defense" ItemStyle-HorizontalAlign="Center" SortExpression="defense" /> <asp:BoundField HeaderText="Rush Yards" DataField="rush_net" ItemStyle-HorizontalAlign="Center" SortExpression="rush_net" /> <asp:BoundField HeaderText="YPC" DataField="yards_per_carry" DataFormatString="{0:#.##}" ItemStyle-HorizontalAlign="Center" SortExpression="yards_per_carry" /> <asp:BoundField HeaderText="Pass Yards" DataField="pass_yards" ItemStyle-HorizontalAlign="Center" SortExpression="pass_yards" /> <asp:BoundField HeaderText="YPA" DataField="yards_per_att" ItemStyle-HorizontalAlign="Center" SortExpression="yards_per_att" /> <asp:BoundField HeaderText="Total Yards" DataField="total_yards" ItemStyle-HorizontalAlign="Center" SortExpression="total_yards" /> <asp:BoundField HeaderText="YPP" DataField="yards_per_play" ItemStyle-HorizontalAlign="Center" SortExpression="yards_per_play" /> <asp:BoundField HeaderText="Points" DataField="points" ItemStyle-HorizontalAlign="Center" SortExpression="points" /> </Columns> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" Runat="server" SelectCommand="SELECT [date], [offense], [defense], [rush_net], [yards_per_carry], [pass_yards], [yards_per_att], [total_yards], [yards_per_play], [points] FROM [cfb_boxscores]" ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>"> <SelectParameters> <asp:ControlParameter Name="Offense" ControlID="DropDownList1" /> </SelectParameters> </asp:SqlDataSource> </form> </body> </html> overall I want to format the table look and and background but for now I just want to see how this stuff functions. Thanks!!
View Replies !
How To Filter Data From Publisher
I have a master database at headquarters which will be the publisher. I have 5 databases at client sites that have the same database schemas as the master, which will be the subscribers. Each table in the database contains a Customer_No column, which is set as a default to 1 at client 1, 2 at client 2, 3 at client 3, etc. The master database contains data for all customers. How do I get Merge Replication to only replicate the data from the publisher based on the customer_no column in each table?
View Replies !
Data Transformation Services Question.
I am creating a DTS package for an import of data from MSAccess97 to SQLServer2000. I am quite new to the DTS so bear with me please. Everything was fairly simple until I got stumped by the following problem: In the source database there was a table with multiple fields (let's say A, B, C) for each record containing their values (let's say 1,2,3). Now, in the destination database the table is built differently. It is a table containing the field data and definition. So basically I need to turn this ID A B C 0 1 2 3 1 4 5 6 into this ID FieldName FieldVal 0 A 1 0 B 2 0 C 3 1 A 4 1 B 5 1 C 6 I am not sure how to go about that... any thoughts? :confused:
View Replies !
Data Transformation Services And Packages
I have been able to create my own packages with out too many problems. However when I want to create a custom package I am running into a wall. The Beta version does not have all of the help text associated with this piece of the product. Does anyone know where there is more information on how to customize and link all of your packages,active x scripts,and flow together. Any help would be appreciated. Thanks me
View Replies !
Data Transformation Service From One Server To Another
Let me explain what do i need before telling what happen. I'm generating a Crystal Report, i need to combine couple of SQL server located on two different machines,through ODBC i was able to get the required tables but once i join them when i check into the query it never shows me either server A table or Server B table depending on what i have started with. thus does not populate data. Now what i wanted to do was to get the table and synchronize the same evry 2 hrs so i went a head and created a DTS package,but when i execute it gives me an error message saying : The data transformation services cannot copy or transform data from desktop or msde server to a standard, enterprize or small business server version of sql server unless your destination server is per user licensing mode. i'm not sure what does this mean and how to change the licensing mode. Could any one help me with how can i find the licensing mode and change the same as well as will this impact any users who r presently connected to the machine or in future because of change in licensing mode. Or is there any other alternative which is much easier and straight forward to perform. Thanks in advance,ur help is appriciated.
View Replies !
CTE In OLE DB Command Data Flow Transformation
I am trying to use a CTE in an OLE DB Command data flow transformation object. However, when I enter the cte and corresponding query in the SqlCommand field of the OLE DB command editor dialog, I get a syntax error. Can CTE's be used data flow objects? I have been able to use them in an Execute SQL Control Flow Item, but not in any data flow item.
View Replies !
Transformation Component Data Store
i am developing one custom transfer component, where i am building one custom object and want the same to be transfered from ComponentUI to component.I explored in this issue and came to know that we can make use of SaveToXML and LoadXML methods of IDTSPersist90 interface. The problem is i could not able to make use of this interface.If any body faced same issue and got the solution, let me know the same. Thanks in advance Karun
View Replies !
Transformation Components And Moving Data
Hi, I am having a simple difficulty regarding my transformation component that I have created. I followed all of the relevant documentation to create the component, UI and such, and when I run a program that transfers data through my component (without it doing anything to the data) to a flat file source, all I get in the flat file is ,,,,,,,,,, Meaning that the data is not actually being passed through my component to the destination, but it does recongize the correct number of columns. I get this warning for each column: [DTS.Pipeline] Warning: The output column "PurchaseOrderDetailID" (20) on output "OLE DB Source Output" (11) and component "Source - PurchaseOrderDetail" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. To fix this issue, all I need to do is "check" the boxes in the advanced editor for my component. However, I want to be able have these boxes "checked" automatically. My question is, when you "check" a box next to a column name in the advanced editor, what does that exactly do that allows you to transfer the data? What do I need to program in order for it to replicate that? I actually want it to happen automatically, so by default, all data in all columns are transfered through my component out the other side, so I just need to know how to do this by code, and not how to replicate the UI. My component, I thought, did that automatically, as I specified everything that I thought was required based on all of the documentation I read. Obviously, I am missing something. Here are the methods that I believe would all be involved. Please let me know what I am missing. int[] inputColumnBufferIndexes; // ... int[] outputColumnBufferIndexes; // ... used in PreExecute PipelineBuffer outputBuffer; // used in ProcesInput public override void OnInputPathAttached(int inputID) { IDTSInput90 input = ComponentMetaData.InputCollection.GetObjectByID(inputID); IDTSOutput90 output = ComponentMetaData.OutputCollection[0]; IDTSVirtualInput90 vInput = input.GetVirtualInput(); foreach (IDTSVirtualInputColumn90 vCol in vInput.VirtualInputColumnCollection) { IDTSOutputColumn90 outCol = output.OutputColumnCollection.New(); outCol.Name = vCol.Name; outCol.SetDataTypeProperties(vCol.DataType, vCol.Length, vCol.Precision, vCol.Scale, vCol.CodePage); } } public override void PreExecute() { //base.PreExecute(); IDTSInput90 input = ComponentMetaData.InputCollection[0]; IDTSOutput90 output = ComponentMetaData.OutputCollection[0]; inputColumnBufferIndexes = new int[input.InputColumnCollection.Count]; outputColumnBufferIndexes = new int[output.OutputColumnCollection.Count]; for (int x = 0; x < input.InputColumnCollection.Count; x++) { IDTSInputColumn90 column = input.InputColumnCollection[x]; inputColumnBufferIndexes[x] = BufferManager.FindColumnByLineageID(input.Buffer, column.LineageID); } for (int x = 0; x < output.OutputColumnCollection.Count; x++) { IDTSOutputColumn90 column = output.OutputColumnCollection[x]; outputColumnBufferIndexes[x] = BufferManager.FindColumnByLineageID(output.Buffer, column.LineageID); } } public override void PrimeOutput(int outputs, int[] outputIDs, PipelineBuffer[] buffers) { //base.PrimeOutput(outputs, outputIDs, buffers); if (buffers.Length != 0) { outputBuffer = buffers[0]; } } public override void ProcessInput(int inputID, PipelineBuffer buffer) { //base.ProcessInput(inputID, buffer); if (!buffer.EndOfRowset) { IDTSInput90 input = ComponentMetaData.InputCollection.GetObjectByID(inputID); while (buffer.NextRow()) { // TODO: Examine the columns in the current row. // Add a row to the output buffer. outputBuffer.AddRow(); for (int x = 0; x < inputColumnBufferIndexes.Length; x++) { // Copy the data from the input buffer column to the output buffer column. outputBuffer[outputColumnBufferIndexes[x]] = buffer[inputColumnBufferIndexes[x]]; } } } else { // EndOfRowset on the input buffer is true. // Set EndOfRowset on the output buffer. outputBuffer.SetEndOfRowset(); } }
View Replies !
Data Transformation Task In SSIS
Hi, How I set the Transform Data Task Property in SSIS package As I designed SSIS where I mapped my text file columns to database table columns but if I selected wrong input text file having less columns than database table then how I will get error that it will not found remaining columns suppose my DB table contain 3 columns and my (wrong) text file contain 2 columns then i should get error message that column003 is not found???? T.I.A
View Replies !
|