pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedms access 97
3+ messages / 2 participants
[nested] [flat]
* ms access 97
@ 2005-06-09 10:45 Vidas Makauskas <vms@centras.lt>
0 siblings, 1 reply; 3+ messages in thread
From: Vidas Makauskas @ 2005-06-09 10:45 UTC (permalink / raw)
To: pgsql-odbc
Hi,
I can connect to database via DSN:
Set wrkODBC = CreateWorkspace("", "uname", "", dbUseODBC)
odbc="ODBC;DSN={PostgreSQL};DATABASE=db;SERVER=server;PORT=5432;Uid=uname;Pwd=pass;"
Set conODBC = wrkODBC.OpenConnection("uname", , , odbc)
Some years ago i've been using DRIVER instead of DSN:
odbc="ODBC;DRIVER={PostgreSQL};DATABASE=db;SERVER=server;PORT=5432;Uid=name;Pwd=pw;"
& _
'"A0=0;A1=6.4;A2=0;A3=0;A4=0;A5=0;A6=;A7=100;A8=4096;A9=0;"B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_"
but today i got error
what is wrong?
I can edit link'ed table. Primary key exists too. But
Set recordset = conODBC.OpenRecordset("SELECT * FROM table", dbOpenDynaset
[,dbOptimistic] )
recordset.updatable = false
what is wrong?
Thanks in advance,
Best regards,
Vidas
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ms access 97
@ 2005-06-09 13:23 Greg Campbell <greg.campbell@us.michelin.com>
parent: Vidas Makauskas <vms@centras.lt>
0 siblings, 1 reply; 3+ messages in thread
From: Greg Campbell @ 2005-06-09 13:23 UTC (permalink / raw)
To: Vidas Makauskas <vms@centras.lt>; +Cc: pgsql-odbc
If your recordset is going to be not updateable,
you should try a dbOpenReadOnly instead of dbOpenDynaset.
In fact I would say dbOpenDynaset should be reserved for Jet datasources.
Make DML updates using individual UPDATE, INSERT, and DELETE statements.
Vidas Makauskas wrote:
> Hi,
>
> I can connect to database via DSN:
> Set wrkODBC = CreateWorkspace("", "uname", "", dbUseODBC)
> odbc="ODBC;DSN={PostgreSQL};DATABASE=db;SERVER=server;PORT=5432;Uid=uname;Pwd=pass;"
> Set conODBC = wrkODBC.OpenConnection("uname", , , odbc)
>
> Some years ago i've been using DRIVER instead of DSN:
> odbc="ODBC;DRIVER={PostgreSQL};DATABASE=db;SERVER=server;PORT=5432;Uid=name;Pwd=pw;"
> & _
> '"A0=0;A1=6.4;A2=0;A3=0;A4=0;A5=0;A6=;A7=100;A8=4096;A9=0;"B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_"
> but today i got error
> what is wrong?
>
> I can edit link'ed table. Primary key exists too. But
> Set recordset = conODBC.OpenRecordset("SELECT * FROM table", dbOpenDynaset
> [,dbOptimistic] )
> recordset.updatable = false
> what is wrong?
>
> Thanks in advance,
> Best regards,
> Vidas
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
Attachments:
greg.campbell.vcf (text/x-vcard, 239B) download
begin:vcard
fn:Greg Campbell
n:Campbell;Greg
org:Michelin North America - US5 Lexington;ENG-ASE
email;internet:greg.campbell@us.michelin.com
title:ASE Systems Engineer
tel;work:803-951-5561/x75561
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ms access 97
@ 2005-06-14 13:20 Vidas Makauskas <vms@centras.lt>
parent: Greg Campbell <greg.campbell@us.michelin.com>
0 siblings, 0 replies; 3+ messages in thread
From: Vidas Makauskas @ 2005-06-14 13:20 UTC (permalink / raw)
To: pgsql-odbc
Much thanks,
As i understoot it do not imposible update recordset without table linking.
""Greg Campbell"" <greg.campbell@us.michelin.com> wrote in message
news:42A842B5.9050100@us.michelin.com...
> If your recordset is going to be not updateable,
> you should try a dbOpenReadOnly instead of dbOpenDynaset.
> In fact I would say dbOpenDynaset should be reserved for Jet datasources.
> Make DML updates using individual UPDATE, INSERT, and DELETE statements.
>> I can edit link'ed table. Primary key exists too. But
>> Set recordset = conODBC.OpenRecordset("SELECT * FROM table",
>> dbOpenDynaset
>> [,dbOptimistic] )
>> recordset.updatable = false
>> what is wrong?
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-06-14 13:20 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-09 10:45 ms access 97 Vidas Makauskas <vms@centras.lt>
2005-06-09 13:23 ` Greg Campbell <greg.campbell@us.michelin.com>
2005-06-14 13:20 ` Vidas Makauskas <vms@centras.lt>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox