Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching DB used in View
Message
From
10/03/2005 05:20:58
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Switching DB used in View
Miscellaneous
Thread ID:
00994340
Message ID:
00994340
Views:
67
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
Map
View

Click here to load this message in the networking platform