ALTER PROCEDURE sp_Import__Personaldata (
@Content xml
/*@LastChangeUserID uniqueIdentifier,
@MandantID uniqueIdentifier */
)
AS
BEGIN
SET NOCOUNT ON
DECLARE @ErrMSG nvarchar(1000)
BEGIN TRY
BEGIN TRANSACTION
BEGIN
SELECT
ref.value('@ERPBez' , 'varchar(20)') AS c1,
'x' as c2
FROM @Content.nodes('//dsPersonalstatistik/tblPersonalstatistik') AS R(ref)
END
COMMIT
END TRY
BEGIN CATCH
SET @ErrMSG = Error_Message()
raiserror(@ErrMSG,16,1)
ROLLBACK TRANSACTION
RETURN
END CATCH
END
|