Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 2nd, 2004, 05:37 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default DTC or other way to merge data

I am trying to merge two sets of data, that will, most likely, be done daily, but I am not sure how to do it. It was suggested that it be done with a DTC script (which I have never used before) or I was thinking of a stored procedure. I am not sure how to write either one.

Here is what I need to accomplish:

What I need is a way take any of the records in the IIM_NHOsetupSheets table that have a 6 digit, numeric only value in Iprod and concatenate the IDesc field (add a space) and the IDSCE field and write the result into the ToolDesc field of T_Tooling. Any records that exist in T_Tooling should be overwritten, any records that do not exist should be created.

It would be really cool if I could also generate a log file that reports changes performed, but not absolutely necessary.

I can either connect to the original table located in the Data Warehouse, or I can connect to an instance that could be kept current with a MS-DTC process that can be located within the PM-Data database. My data admin is pushing for the latter.

Table: IIM_nhosetupsheets

      Name Type Length
      IPROD Char 15
      IDESC Char 30
      IDSCE Char 30
Table: T_Tooling

      Name Type Length
      ToolID nvarchar 25
      ToolDesc nvarchar 25

I have worked with stored procedures before, that use Case...When logic, but nothing that would be this complex I think.

Any help is welcome.

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataSet - Merge Data Tables srish ADO.NET 0 September 8th, 2007 10:04 AM
help merge same column data okboy SQL Server 2000 6 July 24th, 2007 01:36 AM
DTC in SQL server 2000 wssaravanan SQL Server 2000 1 June 26th, 2006 08:54 AM
DTC in SSIS wssaravanan SQL Server 2005 0 June 22nd, 2006 08:09 AM
merge data in tables-access 2003 megank Access 2 April 5th, 2006 11:31 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.