Re: calling Stored Procedures from different DBs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 03/24/04


Date: Wed, 24 Mar 2004 07:38:24 -0600

We keep all of our DDL scripts under source control. It's a simple task to
promote these to as many databases as needed.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"ZeBerg" <anonymous@discussions.microsoft.com> wrote in message
news:4191EC3A-FA7F-4910-8766-1DA8E2C62106@microsoft.com...
> Is it possible to have a stored procedure in database A while calling it
from database B and have it manipulate the tables in database B (whatever
the calling database happens to be)?
>
> We have a large-scale app that uses many complex stored procedures, and as
of now, we're copying the SPs to every new database that is created, and it
will soon become a nightmare for propagating updates and fixes. We'd like to
keep a master set of the SPs in one DB and "use" them from other DBs so that
they only query data and manipulate tables in the calling DB. I hope someone
has some suggestions. Thanks.


Relevant Pages

  • RE: function doesnt return value - SOMETIMES!
    ... It seems the calling stack has some issues. ... If not, I suggest that you create a new database, and import the ... |> thing I can see is that you are declaring 3 of your numerical values as ... |> when it does work correctly that would be because this data type is ...
    (microsoft.public.access.modulesdaovba)
  • Re: Access DB grows too fast.
    ... the problem seems to be in the strategy of calling C and using ... SQLPrepare and SQLExecute to insert the rows. ... causing a huge database that can then be compacted down to the same size ... >> statement which I then use to load data from the flat file. ...
    (microsoft.public.data.ado)
  • Problem calling Fill() method
    ... daAddress dataset, the update works fine and even enters a new row inside ... conflict occurred in database 'OFS', table 'Address', column 'address_id'. ... discovered this error message: ... Now, the zip column is indeed populated upon calling the Updatemethod, ...
    (microsoft.public.sqlserver.programming)
  • Problem calling Fill() method
    ... daAddress dataset, the update works fine and even enters a new row inside ... conflict occurred in database 'OFS', table 'Address', column 'address_id'. ... discovered this error message: ... Now, the zip column is indeed populated upon calling the Updatemethod, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Problem calling Fill() method
    ... daAddress dataset, the update works fine and even enters a new row inside ... conflict occurred in database 'OFS', table 'Address', column 'address_id'. ... discovered this error message: ... Now, the zip column is indeed populated upon calling the Updatemethod, ...
    (microsoft.public.dotnet.framework.adonet)