Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Postgres linked server inserts twice

Author  Topic 

azrael120
Starting Member

1 Post

Posted - 2007-04-16 : 08:55:01
Hello,

I have setup a Postgres linked server via ODBC. But if I do inserts the data (only sometimes) gets inserted twice on the PostgreSQL system.
This is the statement:
select * from openquery(htssw,'select 1 as ret from htssw where 1=0;insert into public.htssw(user, pass, gb, nr, rf) values (''123'',''456'',''x'',''12345'',''2'')')

Of course I tried changing the settings for linked server and the ODBC-driver - but with no success.

Anyone seen this strange behaviour before?

thanks
azrael
   

- Advertisement -