The title pretty much says it all, I guess. I have a stored procedure which can be run in a number of databases, and the functioning of the stored procedure needs to vary slightly depending on the database. I've been all over books online and looked in the system tables to see if this might be somewhere in there, but so far no joy.
There's got to be someone here who just happens to know this, if it exists at all.