Stored Procedure compilation question: Doing disparate things in a

To minimize the very large number of stored procedures typically
associated with an application, I have gotten in the habit of
combining a select, insert, update, and delete all in one procedure,
and passing an argument to indicate which to use. (I use default
values for all input params to avoid having to declare them for
selects and deletes.) So I'll have just one PersonAdmin proc instead
of PersonGet, PersonInsert, PersonUpdate, and PersonDelete procs

While this is nice for housekeeping, I wonder what the compiler does
with such an architecture,and I fear the worst. The select returns a
recordset; the others don't.

Is this a bad idea?

If it is, I really wish SQL would permit some sort of user folder
structure in the proc list.
JeffRoughgarden [ Fr, 07 Dezember 2007 23:45 ] [ ID #1887947 ]
Datenbanken » comp.databases.ms-sqlserver » Stored Procedure compilation question: Doing disparate things in a

Vorheriges Thema: Re: 2005 Stored Procedure Question - How to pass in additional LIKE conditions
Nächstes Thema: Add a datestamp to an existing table