Actually I had found that solution yesterday night, jejeje and it worked perfectly, anyway thanks for your fast collaboration
So help ful mikael, it made me clear some things, yesterday I was trying with SELECT LAST_INSERT_ID() but working with MSSQL : )
regards