Re: Binary data migration from MSSQL

From: Joe Conway <mail(at)joeconway(dot)com>
To: Roman Fail <rfail(at)posportal(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Justin Clift <justin(at)postgresql(dot)org>
Subject: Re: Binary data migration from MSSQL
Date: 2003-01-08 04:47:28
Message-ID: 3E1BAD60.6000500@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Roman Fail wrote:
> Thanks for the idea, Joe. I wrote a 'varbinary-to-octal_string' UDF on the
> MSSQL Server that I could call within a query on the bcp command line.
> After some tweaking, it worked great and takes about an hour to dump all 20
> million rows to text (which I think is pretty fast!).
>
> Wes Sheldah suggested modifying the bcp output with a perl script, but I
> opted not to do it that way. Although I don't know perl, I could have just
> as easily used Java. The drawback of doing it this way is that it's harder
> for others to follow if there is another language involved. I know
> everyone who wants to do this will already have a MSSQL server, and that's
> all you need to create the modified file.
>
> I'd be happy to write up what I did and contribute it to techdocs, if
> someone would let me know where to send the document. I looked around on
> the techdocs site and didn't see any instructions. I'm still curious why
> the binary data won't migrate using pgAdminII, but I guess I'll ask that
> question on another list.

I think Justin Clift is the right person to help you there -- Justin?

Joe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas O'Connell 2003-01-08 05:36:12 Re: double precision to numeric overflow error
Previous Message Tom Lane 2003-01-08 04:28:52 Re: shared buffers in config