Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Draft naming convention
Message
 
 
À
15/02/2010 04:43:54
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01449087
Message ID:
01449153
Vues:
41
Once in a while this place makes me think and reconsider old habits. You guys have convinced me not to use sp_ any more.

>Hi,
>I believe that if you begin a stored procedure name with 'sp_' then SQLServer will automatically check the master DB first. Two obvious ramifications of this
>(a) it will take a bit longer to find the procedure.
>(b) if an identically named proc does exist in the master DB it will be executed in preference to the one you've written.
>
>So Craig is right - to a point - if you're writing a stored procedure for the master DB then I guess you *should* use 'sp_'
>
>IAC if the above is correect (and it may not be - I'm not a SQLServer person) this behaviour seems pretty sloppy to me.
>
>
>
>>I have always understood the sp_ to stand for stored procedure.
>>
>>>That's exactly where they should be. SP = System Procedure. Customer procs should not start with SP.
>>>
>>>>Maybe - but a quick look at SQL2005 shows that MS threw in 1,285 of them..... (g)
>>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform