• Nadrek (6/9/2010)


    B) Always use three part naming, so you either execute:

    Adventureworks.Person.(otherprefix)ReturnSomething

    or

    Master.dbo.(otherprefix)ReturnSomething

    both of which make it explicitly obvious what you're calling.

    That sounds nice, but it causes problems if for example you need to duplicate the DB to do testing, and don't have a different instance to put it in. Suddenly your SPs are running in the wrong DB, and you would have to go through and refactor all of the code. However, I do agree with using two part naming.