Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This isn't a question about whether to use stored procedures. It's a hypothetical interview question. The interviewer wants to be confident that you understand SPs aren't a dumping ground for code and data that are better suited elsewhere in the system. </p> <p>A reasonable answer might include the following:</p> <ul> <li><strong>Data</strong> such as constants or client-specific logic never belong in SPs.</li> <li><strong>Passwords</strong> or other security tokens never belong in SPs or any code.</li> <li><strong>Complex processing</strong> may not be suited for today's rather primitive SP languages.</li> <li><strong>Business logic</strong> may be better suited for the middle-tier rather than in SPs, due to differences in the expressive nature of the languages, maintainability, OO design, or other factors.</li> <li><strong>Presentation layer</strong> code is probably best suited for the UI, not SPs.</li> </ul> <p>With interview questions such as this one, the goal is not to determine the one true correct or incorrect response. Instead, the interviewer has <em>his</em> ideal response in mind, and your job is to identify that response. If your interviewer is a DBA, manages a DBA group, or appears to align his or herself strongly with a DB-focused methodology, then you may wish to play down the weakness of SP languages, and skip the recommendation to avoid complicated business logic in the database. There is a time and place for those debates, but not during your interview!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload