General information
Forum:
Microsoft SQL Server
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only