Hi Friends
Hi Friends,
I am using Using Delphi 5+ infomix, Delphi 5+ informix on unix, and delphi 2006+ Sql Server.(All 3 source code has same functionality)
Now i am merging all source code to one single code(delphi 2006) but i am facing issue while connecting Infomrix unix with ADO component of delphi 2006. Informix on windows + delphi 5's souce code works fine while i used them by creating DSN. DSN of unix informix database created successfully but while i used them with any ADO component of delphi 2006 its give error like "Unspecified Error". Connection done successfully as i debug application but when i write any SQL statement and try to OPEN it then it gives error "Unspecified Error".
Any help on this is appreciated, Please let me know if you need any more details.
I am using Using Delphi 5+ infomix, Delphi 5+ informix on unix, and delphi 2006+ Sql Server.(All 3 source code has same functionality)
Now i am merging all source code to one single code(delphi 2006) but i am facing issue while connecting Infomrix unix with ADO component of delphi 2006. Informix on windows + delphi 5's souce code works fine while i used them by creating DSN. DSN of unix informix database created successfully but while i used them with any ADO component of delphi 2006 its give error like "Unspecified Error". Connection done successfully as i debug application but when i write any SQL statement and try to OPEN it then it gives error "Unspecified Error".
Any help on this is appreciated, Please let me know if you need any more details.
Which SKU of Delphi 2006? Pro or Enterprise?
ReplyDeleteThere is another post here somewhere about the db drivers requiring Enterprise version - but there also was a workaround.
Edit: Found it: https://plus.google.com/105621406928214712237/posts/Zy6rk9VfVco
Duh! Strike that comment - you are already using ADO... then I don't know what is wrong.
ReplyDeleteHave you tried making a minimum app with only a single ADO component?
Thanks Lars Fosdal , Yes i am trying with sample application which has only one ADO connection and ADOQuery components and DSN is created successfully.
ReplyDeleteIt connecting successfully with DSN but when i execute any SQL on that, its giving error.
I am using professional.
Try using Process Monitor from SysInternals to see if it fails at loading the drivers?
ReplyDeletehttps://technet.microsoft.com/en-us/library/bb896645.aspx
Ok, Let me check. Thanks for help Lars Fosdal
ReplyDeleteI think, Its not a driver loading issue, because it gives error while returning result set of query.
ReplyDeleteIf i write table name in query which is not exist, then it gives error as well that "Specified table does not exist".
Let me check more..
Can it be a rights issue with the login you are using?
ReplyDeleteDSN connecting successfully and fetching tables's names as well
ReplyDeleteTricky one. It has to be a problem with your query then. Is it complex? Are there typecasts or conversions in there? Can it fail on NULL value comparisons?
ReplyDeleteNo, Simple "Select * From "
ReplyDeleteIt works fine on sample application of firemonkey with firedac controls, but when we try with ADO controls then it gives error like "Unspecified Error"
ReplyDeleteAny reason to not use FireDAC? We migrated from ADO to FireDAC for our MS SQL Server connectivity last year, and it was a good improvement in performance and stability. We did this for a Windows service, and several VCL apps.
ReplyDeleteits very big legacy system, and we require too much time to change all structure. and client also not in favor to change all this.
ReplyDeleteHi Lars Fosdal ,
ReplyDeleteI got solution of above matter..I just changed cursor location property from client to server for dataset and it works fine..for unix-informix dataset. Thanks for all your support
Glad you figured it out!
ReplyDelete