Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing a default NT SQL Server in a stored procedure
Message
De
24/02/2000 09:35:37
 
 
À
23/02/2000 21:27:37
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00336489
Message ID:
00336704
Vues:
30
The same metaphor does not hold for SQL Server. A stored procedure is owned by a specific database. There is one exception: any stored proceduret that begins with sp_ is considered a system stored procedure. It has visibility across all databases. They exist within the master database but affect the database where they're being called from.

Now, you can reference an object in another database by qualifying the object with the database name: database.owner.object_name

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform