sql - Interview question on stored procedures -


What kind of things will not be stored in stored procedures?

This is not a question of whether to use stored procedures. This is a hypothetical interview question, the interviewer wants to be convinced that you understand SP that there is no dumping ground for code and data which is better suited to the system.

A proper answer may include the following:

  • The constant or client-specific logic such as data is never in the SP.
  • Passwords or other security tokens are never sp or in any code.
  • Complex processing may not be suitable for primitive SP languages ​​instead today
  • Business logic It may be appropriate, because there may be differences in expressive nature, maintenance, oo design, or other factors in languages.
  • The presentation layer code is probably suitable for UI, not SP.

Interview questions such as this one, the goal is not to determine a right or wrong response, rather, the interviewer his ideal reaction to meditation Keeping in, and your job is to identify that reaction. If your interviewer is a DBA, then he manages the DBA group, or if you align yourself with a DB-centric methodology, then you want to play the weakness of SP languages ​​and avoid complex business logic. Can leave the recommendation for Database. There is a time and place for those debates, but not during your interview!


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -