What kind of things would you not store in stored procedures?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.
A reasonable answer might include the following:
With interview questions such as this one, the goal is not to determine the one true correct or incorrect response. Instead, the interviewer has his 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!