Re: Connect postgres to SQLSERVER - Mailing list pgsql-general

From Rowan Collins
Subject Re: Connect postgres to SQLSERVER
Date
Msg-id 5238B3B9.3050109@gmail.com
Whole thread Raw
In response to Connect postgres to SQLSERVER  (Agustin Larreinegabe <alarreine@gmail.com>)
List pgsql-general
On 17/09/2013 19:05, Agustin Larreinegabe wrote:
> HI,
>
> Is there a way to connect to a sqlserver like dblink?
> I just need to execute a Procedure in sqlserver when something happen
>
> --
> Gracias
> -----------------
> Agustín Larreinegabe

If all you want to do is trigger a single stored proc, one option might
be to write a function in an unrestricted procedural language (e.g.
pl/PerlU) which connects and runs it using a shell command. It sounds
more complicated on the face of it, but it means you don't need to worry
so much about configuring drivers to make the two DBs talk to each
other, you can just concentrate on the single task you need to work.

This will probably seem less good an idea if you need to retrieve data
from the stored proc, or if there's a possibility of more complex
linkages being needed later anyway.
--
Rowan Collins
[IMSoP]


pgsql-general by date:

Previous
From: Vick Khera
Date:
Subject: Re: ZFS snapshots - to use pg_start_backup() and pg_stop_backup() or no?
Next
From: Lonni J Friedman
Date:
Subject: Re: upgrade from 9.2.x to 9.3 causes significant performance degradation