Home All Groups Group Topic Archive Search About
Author
23 Sep 2006 1:46 PM
Greg Pasquariello
Is it possible to create a stored procedure that exists in one database, but
runs in the context of the database from which I call it?

For example, I want my proc (A.dbo.MyProc) to create table Foo in my new
database X, but I don't know that the database is called X when I create
A.dbo.MyProc

Any help would be appreciated.  Thank you!

AddThis Social Bookmark Button