ALTER TABLE IF EXISTS vmreports.storage
    OWNER to dbo;

REVOKE ALL ON TABLE vmreports.storage FROM analyst;
REVOKE ALL ON TABLE vmreports.storage FROM analytics;
REVOKE ALL ON TABLE vmreports.storage FROM appserver;

GRANT SELECT ON TABLE vmreports.storage TO analyst;

GRANT SELECT ON TABLE vmreports.storage TO analytics;

GRANT SELECT ON TABLE vmreports.storage TO appserver;

GRANT ALL ON TABLE vmreports.storage TO dbo;

GRANT ALL ON TABLE vmreports.storage TO designer;

GRANT ALL ON TABLE vmreports.storage TO nifi;

---------------
ALTER TABLE IF EXISTS vmreports.compute
    OWNER to dbo;

REVOKE ALL ON TABLE vmreports.compute FROM analyst;
REVOKE ALL ON TABLE vmreports.compute FROM analytics;
REVOKE ALL ON TABLE vmreports.compute FROM appserver;

GRANT SELECT ON TABLE vmreports.compute TO analyst;

GRANT SELECT ON TABLE vmreports.compute TO analytics;

GRANT SELECT ON TABLE vmreports.compute TO appserver;

GRANT ALL ON TABLE vmreports.compute TO dbo;

GRANT ALL ON TABLE vmreports.compute TO designer;

GRANT ALL ON TABLE vmreports.compute TO nifi;


--------------------
ALTER TABLE IF EXISTS vmreports.host
    OWNER to dbo;

REVOKE ALL ON TABLE vmreports.host FROM analyst;
REVOKE ALL ON TABLE vmreports.host FROM analytics;
REVOKE ALL ON TABLE vmreports.host FROM appserver;

GRANT SELECT ON TABLE vmreports.host TO analyst;

GRANT SELECT ON TABLE vmreports.host TO analytics;

GRANT SELECT ON TABLE vmreports.host TO appserver;

GRANT ALL ON TABLE vmreports.host TO dbo;

GRANT ALL ON TABLE vmreports.host TO designer;

GRANT ALL ON TABLE vmreports.host TO nifi;

------------------------------------
ALTER TABLE IF EXISTS vmreports.vm_gpu
    OWNER to dbo;

REVOKE ALL ON TABLE vmreports.vm_gpu FROM analyst;
REVOKE ALL ON TABLE vmreports.vm_gpu FROM analytics;
REVOKE ALL ON TABLE vmreports.vm_gpu FROM appserver;

GRANT SELECT ON TABLE vmreports.vm_gpu TO analyst;

GRANT SELECT ON TABLE vmreports.vm_gpu TO analytics;

GRANT SELECT ON TABLE vmreports.vm_gpu TO appserver;

GRANT ALL ON TABLE vmreports.vm_gpu TO dbo;

GRANT ALL ON TABLE vmreports.vm_gpu TO designer;

GRANT ALL ON TABLE vmreports.vm_gpu TO nifi;

-----------------
ALTER TABLE IF EXISTS vmreports.vm_power_state
    OWNER to dbo;

REVOKE ALL ON TABLE vmreports.vm_power_state FROM analyst;
REVOKE ALL ON TABLE vmreports.vm_power_state FROM analytics;
REVOKE ALL ON TABLE vmreports.vm_power_state FROM appserver;

GRANT SELECT ON TABLE vmreports.vm_power_state TO analyst;

GRANT SELECT ON TABLE vmreports.vm_power_state TO analytics;

GRANT SELECT ON TABLE vmreports.vm_power_state TO appserver;

GRANT ALL ON TABLE vmreports.vm_power_state TO dbo;

GRANT ALL ON TABLE vmreports.vm_power_state TO designer;

GRANT ALL ON TABLE vmreports.vm_power_state TO nifi;


