From: | Rowan Collins <rowan(dot)collins(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Connect postgres to SQLSERVER |
Date: | 2013-09-17 19:55:37 |
Message-ID: | 5238B3B9.3050109@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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]
From | Date | Subject | |
---|---|---|---|
Next Message | Lonni J Friedman | 2013-09-17 20:12:33 | Re: upgrade from 9.2.x to 9.3 causes significant performance degradation |
Previous Message | tdev457 | 2013-09-17 19:35:04 | Re: Number of WAL segment |