Re: Transactions, PostgreSQL and MS Access front end.

From: arthurjr07(at)gmail(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Transactions, PostgreSQL and MS Access front end.
Date: 2006-04-24 08:48:33
Message-ID: 1145868513.284747.222700@e56g2000cwe.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Try to use ADO

Dim con as ADODB.Connection
set con = new ADODB.Connection
con.Open "DRIVER={PostgreSQL};
SERVER=ipaddress; port=5432;
DATABASE=dbname;
UID=username;PWD=password;"

con.BeginTrans
con.Execute "UPDATE accounts SET balance = balance + 100.00
WHERE acctnum = 12345"
con.Execute "UPDATE accounts SET balance = balance - 100.00
WHERE acctnum = 7534"
Con.CommitTrans

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2006-04-24 08:59:19 How to avoid empty temp schemas
Previous Message Richard Huxton 2006-04-24 08:48:16 Re: to know