Unix Technical Forum

problem with Linkedserver-Odbc-oledb-informix

This is a discussion on problem with Linkedserver-Odbc-oledb-informix within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Dear friends, I want to create linked server to Informix server, so I do bellow steps -installed Informix OLEDB ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:13 PM
Tarvirdi
 
Posts: n/a
Default problem with Linkedserver-Odbc-oledb-informix

Dear friends,
I want to create linked server to Informix server, so I do bellow steps
-installed Informix OLEDB provider (IBM Informix Connect v2.9)
-create a Odbc names (informix-bsi) and tested the connection, ok
-On mssql2005 create a linked server as bellow
exec sp_addlinkedserver @server= 'bronz' ,
@srvproduct= ''
, @provider= 'MSDASQL'
, @datasrc= 'Informix_bsi'
, @location= ''
, @provstr= ''
, @catalog= ''
-write a stored procedure to do some data transformations. there a delete
statement in it as
//////
delete bronz.bsi_db.informix.atm_traps where id<=@MaxID and
convert(char(8),datetimesn,121)=@CURDate
///
>>>> problem : I run above stored procedure every 1 minute (though a job),
>>>> but I get error sometimes(about 50%) as

/////////////////
Executed as user: NT AUTHORITY\SYSTEM. The OLE DB provider "MSDASQL" for
linked server "bronz" could not delete from table
"bsi_db:informix.atm_traps". There was a recoverable, provider-specific
error, such as an RPC failure. [SQLSTATE 42000] (Error 7345). The step
failed.
////////////
interesting thing is that it occurs sometimes not always!!
I worked with delete statement manytimes can't find and problem and also
runned in Informix directly without any problem. it seems that middle
libraries like oledb and odbc make problem.
>> another strange thing is that I convert above delete statement to

(delete bronz.bsi_db.informix.atm_traps where id<=160000) but I get syntax
error and says that this sql in incorrect (delete
bronz.bsi_db.informix.atm_traps where id<=(160000))!!! changed end condition
(add parentheses) and get syntax error
Thanks for any idea
Tarvirdi


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com