From PostgreSQL to SQL Server (No User/Pass) Some of you MAY be able to crack a really tough nut...

I have to move all the data from a PostgreSQL (9.1 - Windows) database to SQL Server because the company I am contracting with is upgrading the old program with a newer .NET version.

The real nut is that the User/Password for Postgres are baked in the old program... Of course the guy who wrote it is gone. No source code or any way to contact him. (Smaaaart)

I was able to obtain the WHOLE Postgres directory (Bin, Data... The whole thing) and I hope it can be done.

Is there a way out of this mess, or should I just blow the contract and look for something else?

THANK YOU!
I think currently you are not able to log into the postgresql database? If this is the case you can get access of the database by changing the access authorization. Please open  pg_hba.conf and change the following line:

local   all             postgres                                md5


to:

local   all             postgres                                peer


or

local   all             postgres                                trust


Now restart the postgresql service. You should now be able to connect to the database by typing: psql

You can get list of databases by typing: psql -l