X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B1867D1B4EB for ; Mon, 15 Sep 2003 19:57:35 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 32703-09 for ; Mon, 15 Sep 2003 16:57:06 -0300 (ADT) Received: from localhost.localdomain (unknown [65.217.53.66]) by svr1.postgresql.org (Postfix) with ESMTP id 1D673D1B4E5 for ; Mon, 15 Sep 2003 16:57:03 -0300 (ADT) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h8FIlvqd030924; Mon, 15 Sep 2003 14:47:58 -0400 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h8FJuwZ09922; Mon, 15 Sep 2003 15:56:59 -0400 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id Q65SLVR0; Mon, 15 Sep 2003 15:56:56 -0400 Subject: Re: Trigger updates MS SQL table From: Robert Treat To: "Home (E-mail)" Cc: pgsql-interfaces@postgresql.org In-Reply-To: <001001c377d1$d7db2780$f403a8c0@harvestswiftads.com> References: <001001c377d1$d7db2780$f403a8c0@harvestswiftads.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 15 Sep 2003 15:56:58 -0400 Message-Id: <1063655818.20709.65.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/36 X-Sequence-Number: 4454 IIRC some folks on -hackers are working on cross database queries to interface with oracle databases, theres a chance that could work for sql server too. Someone else on -hackers was looking at an internal soap/xml communications method to do similar things to what your describing. You might want to check the archives on both ideas. The other option, and probably more doable, is to write a function in one of the untrusted languages to communicate with your xml service via sockets. Robert Treat On Wed, 2003-09-10 at 15:29, Home (E-mail) wrote: > Is it too presumptious that there should be a direction I can go to solve my > problem. > > Right now, I have a postgres environment that our business is run on and SQL > Server 2000 databases that our customer ASP solutions run in. Both serve > their purposes well. So, I need both. What I was hoping, was to get a form > of replication going between the two. In a perfect world, my trigger would > just create an ODBC connection to the MS Sql server and run the > update/insert query. I know that cannot exactly happen, it just doesn't work > that way. > > But can I create a trigger that allows me to connect to a SOAP/XML service > and deliver the update via a stored procedure call? Is this too much to hope > for, or are people doing this already? > > Thanks > Don Sceifers > > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend -- Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL