Solved

SSIS Compare TEXT Fields

Posted on 2013-12-19
3
427 Views
Last Modified: 2016-02-10
I need to compare two TEXT Fields from two tables to identify the changed records using SSIS 2005. How do I compare TEXT fields? can you please suggest any approach?
0
Comment
Question by:MRPT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 39729631
We can suggest any approach as long as you can clearly define what you wish to do.

Spell out for us the table design of these two tables and which columns you wish to comapre.
Also spell out for us the movement of data so we know what is 'old' and 'new'.
0
 

Author Comment

by:MRPT
ID: 39729908
I have a Stage table which has new and updated  data
STAGE TABLE
CREATE TABLE [dbo].[StageData](
      ID int NOT NULL,
      Date datetime NULL,
      Name VARCHAR(50) NULL,
      NOTES TEXT NULL
)

This stage table columns needs to be compared to the another table (dbo.FinalTable- which has old data) to determine if any column value has changed, If changed, then update the value in the Final Table with the new value from stage table

CREATE TABLE [dbo].[FinalTable](
      ID int NOT NULL,
      Date datetime NULL,
      Name VARCHAR(50) NULL,
      NOTES TEXT NULL
)

I use CozyRoc to determine new and updated records. It works fine for all columns expect TEXT field Column

How can I compare TEXT Fields column to determine if the value as changed?
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 39733189
How can I compare TEXT Fields column to determine if the value as changed?
Answer: Don't use text data types use varchar(MAX) instead.

Text data types have been deprecated for over 8 years and should not be used any more.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question