SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Isolation level using linked server


Isolation level using linked server

Author
Message
_simon_
_simon_
SSC Veteran
SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)

Group: General Forum Members
Points: 245 Visits: 776
Our situation:
- our EPR system uses Progress database (blackbox for me, don't even know where it is installed)
- on a Windows Server 2003 instance we have a ODBC datasource (System DSN), which uses OpenEdge 10.1C driver and is connected to the Progress database. The driver's isolation level is 'read uncommitted'
- on the same Windows system there is a SQL server 2005 installed and if I run 'dbcc useroptions' in one of the database, the isolation level is set to 'read committed' (althoug I doubt that this has any relevance in my example)
- on the SQL Server 2005 we have a linked server to the Progress database, which uses the ODBC data source
- we query Progress database via the openquery command, simplified:

select Country
from openquery(LINKED_SERVER_NAME, '
select distinct Country
from XXX.Countries
where Id = 10
') x



The problem is, that sometimes the query throws
Cannot fetch a row from OLE DB provider "MSDASQL" for linked server "LINKED_SERVER_NAME"

exception. As I profiled the execution of the query, I saw that the exception is thrown by the OpenEdge driver:
OLE DB provider "MSDASQL" for linked server "LINKED_SERVER_NAME" returned message "[DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Failure getting table lock on table XXX.Countries"



So it seems, that the query tries to lock the XXX.Countries, although the OpenEdge driver is set to 'read uncommitted'. Why is this happening?

I will try to play with various settings (isolation level on database level, set transaction isolation level in each transaction, ...) and do a thorough profile for each query, but this will be time consuming and also - the exceptions is thrown randomly so it is hard to profile. Any additional informations about this topic would be much appreciated.
Evil Kraig F
Evil Kraig F
SSCrazy Eights
SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)

Group: General Forum Members
Points: 8551 Visits: 7660
I'm not sure we can help you with this. Openedge seems like a proprietary driver, and Progress appears to be a Teradata solution. The problem sounds like it's in the ODBC connection directly, or there may be settings on the foreign server that's overriding your isolation, but really, not many of us are experts in that database system.

Hopefully someone can come by and prove me incorrect but your best bet would probably be to get on a forum board dedicated to Progress, Teradata, or Openedge. I just didn't want to leave you hanging like you were being ignored though. I just think noone here really knows.


- Craig Farrell

Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

For better assistance in answering your questions | Forum Netiquette
For index/tuning help, follow these directions. |Tally Tables

Twitter: @AnyWayDBA
_simon_
_simon_
SSC Veteran
SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)

Group: General Forum Members
Points: 245 Visits: 776
Thanks for reply, willl try to find some ProgressDB forum and ask there.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search