CREATE FUNCTION [dbo].[LISTSTAFF]()RETURNS TABLEAS RETURN(select * from tblStaff);
...SqlCommand cmd = new SqlCommand("LISTSTAFF", cnn);cmd.CommandType = CommandType.StoredProcedure;gridview.DataSource = cmd.ExecuteReader();// waring error in here...