title: Dynamic select query in stored Procedure?
body: <p>My webform contain some checkboxes.If perticular checkbox is checked,add column name into select query of sp.Like 
  Suppose there are 4 checkbox like chklname,chkfname,chkcity,chkmobile.If I check 
  chklname and chkfname,my query will be : </p>
  
  <pre><code>SELECT LastName,FirstName FROM table1
  </code></pre>
  
  <p>How to write that in sp?</p>