REPEATABLE_READ or SERIALIZABLE isolation level

25/07/2006 - 16:22 por Flavio Narvaez | Informe spam
Resulta que estoy creando un cursor con una tabla remota y otra local
(primero definí el linksserver y el linksserverlogin) pero al ejecutar el
proceso me indica el siguiente error



Updatable key set cursors on remote tables require a transaction with the
REPEATABLE_READ or SERIALIZABLE isolation level

Preguntas similare

Leer las respuestas

#1 Alejandro Mesa
25/07/2006 - 16:40 | Informe spam
Flavio,

Puedes postear la declaracion del cursor?


AMB

"Flavio Narvaez" wrote:

Mostrar la cita
#2 Flavio Narvaez
25/07/2006 - 16:57 | Informe spam
El cursor es sencillo solamente regresa tres valores uno de ellos de la tabla
remota

declare Vendor_En_Sie Cursor for

select A.N_REGISTRO_PATRONAL,
A.C_REGISTRO_PATRONAL_ANTERIOR, B.VENDOR_ID

from SIE.SIE_DESA.dbo.SIE_r_nomina A,
PS_VENDOR_ID_NBRS B

where A.C_REGISTRO_PATRONAL_ANTERIOR is not
null

AND A.C_REGISTRO_PATRONAL_ANTERIOR
=SUBSTRING(B.STD_ID_NUM,1,3)+SUBSTRING(B.STD_ID_NUM,5,5)

AND B.STD_ID_NUM_QUAL = 'NOP'


"Alejandro Mesa" wrote:

Mostrar la cita
#3 Alejandro Mesa
25/07/2006 - 17:11 | Informe spam
Flavio,

Trata usando un cursor "fast_forward" si no vas a usar la clausula "for
update".

declare Vendor_En_Sie Cursor
local
fast_forward
for
...


AMB





"Flavio Narvaez" wrote:

Mostrar la cita
#4 Miguel Egea
25/07/2006 - 18:41 | Informe spam
aunque no me importe flavio ¿para qué usas el cursor? a ver si podemos hacer
que no lo uses (y como dicen en españa, muerto el perro, se acabó la rabia).

Saludos
Miguel Egea
"Flavio Narvaez" wrote in message
news:
Mostrar la cita
#5 Flavio Narvaez
26/07/2006 - 00:04 | Informe spam
El cursor es sencillo solamente regresa tres valores uno de ellos de la tabla
remota

declare Vendor_En_Sie Cursor for

select A.N_REGISTRO_PATRONAL,
A.C_REGISTRO_PATRONAL_ANTERIOR, B.VENDOR_ID

from SIE.SIE_DESA.dbo.SIE_r_nomina A,
PS_VENDOR_ID_NBRS B

where A.C_REGISTRO_PATRONAL_ANTERIOR is not
null

AND A.C_REGISTRO_PATRONAL_ANTERIOR
=SUBSTRING(B.STD_ID_NUM,1,3)+SUBSTRING(B.STD_ID_NUM,5,5)

AND B.STD_ID_NUM_QUAL = 'NOP'


"Miguel Egea" wrote:

Mostrar la cita
Ads by Google
Search Busqueda sugerida