Mapping to different linked servers per database -
i have mssql server 2008 database "dblive" link 3 different external servers [extserver1, extserver2, extserver3], defined in sys.servers. there several stored procedures refer stored procs or tables on external servers, f.x. 'select top 1 @someid = id [extserver1].theextdb.dbo.sometable ...'.
here challenge - if want put database on server - "dbtest" identical copy of "dblive" - should connect different external servers - how make [extserver1 .. 3] point different external servers "dblive" , "dbtest"?
if cannot done - preferred way of linking external databases in such way 2 instances of same db, can have own external server references - without having differences in stored procedures?
you'd want use synonyms here. see work around suggested in microsoft connect issue (and vote issue while you're there).
Comments
Post a Comment