Re: Splitting "Large" SQL Script Into Several; Concat Hash Doesn't Match

2012-02-14 Thread Brandon McCaig
On Tue, Feb 14, 2012 at 07:59:18PM +0200, Shlomi Fish wrote: > Hi Brandon, Hi Shlomi: tl;dr: Fixed. See bottom of message for diff. > What I would do is write another program (possibly in Perl) to > compare the differences and report immediately the location > within the two files, and the conte

Re: Splitting "Large" SQL Script Into Several; Concat Hash Doesn't Match

2012-02-14 Thread Shlomi Fish
Hi Brandon, On Tue, 14 Feb 2012 12:12:07 -0500 Brandon McCaig wrote: > Hello: > > tl;dr: A program indended to split a large MS SQL script into > smaller ones appears to be losing data. See below for the script. > I guess that maybe I'm making a silly mistake with newlines or > file encoding or

Re: Splitting "Large" SQL Script Into Several; Concat Hash Doesn't Match

2012-02-14 Thread Brandon McCaig
On Tue, Feb 14, 2012 at 12:12:07PM -0500, Brandon McCaig wrote: > The program follows (also attached in case my wrapping for mail > breaks something): I knew I would forget to attach it. :-X This time hopefully I remember.. Regards, -- Brandon McCaig Castopulence Software

Splitting "Large" SQL Script Into Several; Concat Hash Doesn't Match

2012-02-14 Thread Brandon McCaig
Hello: tl;dr: A program indended to split a large MS SQL script into smaller ones appears to be losing data. See below for the script. I guess that maybe I'm making a silly mistake with newlines or file encoding or something.. My colleague is working with a relatively large generated SQL script t