November 11, 2011 at 11:36 am
Looking for a utility (or scripted TSQL routine) that will work inside of SQL Server 2008 to compare the values in two text columns and generate output that cleanly displays the differences. Functionality would be similar to reports that Beyond Compare software creates; show lines on one side, but not the other, show where text was modified in lines that were in the same location of the file. Output could be HTML.
We use Beyond Compare in our company, but we don't want to have to write a complicated process to export the two text values to files, run Beyond compare from the command line, then get the result back into SQL Server. Our PC application code will need to call the utility when a change is made to a text string in the database and write the difference between the old text and next text to another location in the database.
November 11, 2011 at 11:40 am
WinMerge has a great GUI, windiff can be called forma command line, they are for comparing two text files for differences...is that what you are after?
Lowell
November 11, 2011 at 12:56 pm
RedGate's SQL Data Compare does that.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
November 11, 2011 at 1:30 pm
Visual Studio 2010 has something similar built-in, but that is expensive if you don't already have it.
November 14, 2011 at 10:36 am
The utility I am looking for should be 'integrated' with SQL Server or a seamless call can be made by a VB6 application when the user makes a change to data. I do not want to write out the 'before' and 'after' data to text files, shell out to Windows, transfer control to a stand-alone product, then import the results back into SQL Server. If that is my only option, I'll just stick with Beyond Compare because I know how it works.
November 15, 2011 at 9:02 am
you could give a try to ECMerge component (this is an ActiveX) from Ellié Computing. you just have to create a document (FHAxMergeDocument) with your two texts as sources (FHAxMergeSource) and export a patch and get it as a string (using something like source.getValue() ). it is pretty straight forward. there is a VB.Net sample in the SDK, vb6 or c# would work as well.
November 16, 2011 at 7:03 am
SQLRNNR (11/11/2011)
RedGate's SQL Data Compare does that.
And does it very nicely too - and it can generate sync scripts too, among other things.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
November 16, 2011 at 7:35 am
This one has possibilities. Especially the VB6 integration.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply