SQL Server 2005 :probleme avec truncate et insert
Salut!
j ai cree une fonction qui retourne un nombre interger. Dans la fonction je dois truncate(vider) un tableau et puis inserer de nouveaux elements.
Je recois une erreur pendant la compilation
Code:
Invalid use of side-effecting or time-dependent operator in 'TRUNCATE TABLE' within a function
et
Code:
Invalid use of side-effecting or time-dependent operator in 'INSERT' within a function.
Pourquoi ces erreurs? comment contourner?
Merci d avance