Information générale
Forum:
Microsoft SQL Server
Titre:
Switching DB used in View
Hi,
I am building views in a database that reference a different database. (eg 'Select * from DatabaseA.dbo.table1')
At some point in the future I am going to need to switch to another (identical) database. Obviously I don't want to have to modify all the views - is there a strategy I can adopt to avoid 'hard-coding' the db name ?
TIA,
Viv
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement