Home Forums SQL Server 2014 Development - SQL Server 2014 Using hardcoded database names in query when database names are different on development and production server RE: Using hardcoded database names in query when database names are different on development and production server

  • Synonyms.  Minor PIA, much less so than alternative of editing DB names every time you migrate code.  Fixing your DB names is better long term strategy, and you should keep that in mind.  But synonyms are easy short term solution.