0

According to the Sybase Documentation (http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.sqlanywhere.12.0.1/dbusage/udtisol.html) there is one paragraph:

[...] The default isolation level is 0, except for [...] and TDS connections, which have a default isolation level of 1. [...]

Im connecting to that server using FreeTDS on Unix. Till now I haven't found a solution to change the Isolation-Level to 0 (Read-Uncommitted) (maybe using /etc/freetds.conf but here I also haven't found anything). For me its not possible to modify SQL-Statements so I'm looking for a config-option.

Anyone an idea?

4

2 回答 2

0

You can set the isolation level for the connection using :

SET TEMPORARY OPTION isolation_level = 0;

If you need more details check the documentation.

You can see the current isolation level with:

SELECT CONNECTION_PROPERTY('isolation_level');
于 2013-11-07T11:18:32.737 回答
0

That does the trick:

set TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
于 2013-11-20T07:23:57.800 回答