on 12-20-2008 12:51 AM
quisiera saber, tengo algunos problemas con el sistema, de repente en alguns ocasiones se me traba, he estado haciendo trazas con el sql profiler y en algunas ocasiones cuando esta trabado el sistema no esta haciendo ninguna transaccion lo cual se me hace raro. de todas formas hay una consulta que me causa duda que es la siguiente:
exec sp_executesql N'SELECT COUNT(''A'') FROM .[OINV] T0 WHERE (T0.[OwnerCode] = (@P1) OR T0.[OwnerCode] = (@P2) OR T0.[OwnerCode] = (@P3) OR T0.[OwnerCode] = (@P4) OR T0.[OwnerCode] = (@P5) OR T0.[OwnerCode] = (@P6) OR T0.[OwnerCode] = (@P7) OR T0.[OwnerCode] = (@P8) OR T0.[OwnerCode] = (@P9) OR T0.[OwnerCode] IS NULL OR EXISTS (SELECT U0.[LineNum] FROM .[INV1] U0 WHERE ((U0.[OwnerCode] = (@P10) OR U0.[OwnerCode] = (@P11) OR U0.[OwnerCode] = (@P12) OR U0.[OwnerCode] = (@P13) OR U0.[OwnerCode] = (@P14) OR U0.[OwnerCode] = (@P15) OR U0.[OwnerCode] = (@P16) OR U0.[OwnerCode] = (@P17) ) AND T0.[DocEntry] = U0.[DocEntry] ) ) ) ',N'@P1 int,@P2 int,@P3 int,@P4 int,@P5 int,@P6 int,@P7 int,@P8 int,@P9 int,@P10 int,@P11 int,@P12 int,@P13 int,@P14 int,@P15 int,@P16 int,@P17 int',25,26,27,28,29,37,44,54,0,25,26,27,28,29,37,44,54
diganme si esta bien pues en la duracion me avienta un tiempo de 1278. entonces alguien mas experto me podría ayudar con esto...
Hola Mary,
Esa parece sólo una consulta que cuenta datos. No creo que sea la que esté demorando la operación sino debe ser una anterior que parece que bloquea la consulta. Trata de mirar el trace de manera más amplia.
Saludos,
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.