message d'erreur incompris
Bonjour, j'ai une requête qui récupère stock d'un article, mais à son lancement un message d'erreur surgit:
" SqlDumpExceptionHandler : Le processus 53 a provoqué l'exception irrécupérable c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server termine ce processus. "
pouvez vous m'indiquer l'erreur?
voici la requete:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
select code
,
isnull(
((select isnull(sum(qte),0) from be_lignes b,be a
where b.num_e=a.num_e and c_art=code and a.valid=1
and ((depot='DC01')))-
(select isnull(sum(qte),0)
from bs_lignes b,bs a where b.num_s=a.num_s and c_art=code and valid=1
and ((depot='DC01')))
)
,0) as Stock_Actuel
from produit where vendu=1 and fabrique=1 and
code in(select code from PROD_MIN06.dbo.produit where atelier='ROULEAUX' )
order by code |