using a stored procedure, how can i restrict what a user INSERTS using a insert query, which could be restricted using WITH CHECK OPTION of a View?
like i want only steve and peter to insert data into a ITEM table. i have added a column 'USERS' in the ITEM table which consists of all the usernames. for this if i use view , then in the check option i give :
WHERE username='steve' OR username='peter' WITH CHECK OPTION
but how do i do this using a stored procedure?