SQL script to AX

Hi,

I have writen a script in SQL (view) and i want to implement or pull it into the system (AX2009).

I need this so i will have the security that is in the sys for the users.