title: sp_setapprole in SQL server 2008
body: <p>I want to insert a value to a table in the database using a set of parameters, for which I want to make use of sp_setapprole. I know this sp can be used to set some permissions.</p>
  
  <p>I am not aware how to even start.</p>
  
  <p>My table: XYZ<br>
  Parameters: ViewerID, AppID, Key</p>
  
  <p>I want to output Cookie and I want to query the table to delete/update and read a the parameter from another parameter.</p>