title: How To Use Loop IN Sp or UDF Sql Server
body: <p>i am trying to pass id to Sp then it will first get id's against it and then get data against those id using SP or by using UDF as i trying it by </p>
  
  <pre><code>select RequestFrom from UserReqest where RequestTo=10 and IsApprove=0
  
  select * from user where user_ID= (i have to use all five id's here ?)
  </code></pre>
  
  <p>Hopes for your suggestions </p>
  
  <p>Thanks in Advance</p>