August 9, 2011 at 4:22 pm
Hi masters!!! It's my first time here. Please, forgive my poor knowledge.
I've got a working linked Server with Oracle, but one problem:
When I execute a count query it gives me the right answer, but, when I execute a simple select to retrieve the data, it gives me just a part of my count.
SELECT * FROM OPENQUERY(myserver,'SELECT COUNT(*) FROM mytable') ==> This count returns 349, that is the number of lines in my table.
SELECT * FROM OPENQUERY(myserver,'SELECT * FROM mytable') ==> This select returns only 250 lines, that is a part of my table.
Please, can you help me with this scenario?
It would have the same result (349 lines instead of 250).
Thank you so very much (in advance)...
August 10, 2011 at 9:04 am
Hi masters!!!
Finally I found an answer.
I've just changed the (linkedserver properties) @srvproduct that was ODBC, to ORACLE and now it works fine.
Thank you so very much. I hope someone could use this.
August 10, 2011 at 9:09 am
neocoolio (8/10/2011)
Hi masters!!!Finally I found an answer.
I've just changed the (linkedserver properties) @srvproduct that was ODBC, to ORACLE and now it works fine.
Thank you so very much. I hope someone could use this.
Thanks for the feedback. How does that explain the differente behavior? Got a link that explains this?
August 19, 2011 at 11:05 am
Sorry... I don't know any link to explain the scenario.
I just compared my linkedserver with a friend's one and noticed that the @srvproduct was different. Then I changed this property and it has worked very well.
Unfortunately I don't have further information. Sorry again...
June 13, 2012 at 12:06 pm
I am also facing the same problem, but even though i chnaged the @srvproduct=N'oracle', its not returning all the rows. Any clue?
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply