You are here: Re: Using updatable views when moving tables from one DB to another? « MsSQL Server « IT news, forums, messages
Re: Using updatable views when moving tables from one DB to another?

Posted by Erland Sommarskog on 12/04/07 22:30

JoshG (jsgough@gmail.com) writes:
> There is one complicating factor I neglected to mention.
>
> In several tables, we have columns currently poorly named "ID_ref" or
> "CustomerID_ref". In the new version of the database, we have simply
> renamed these to ID or CustomerID.
>
> Using a view, we can easily keep using the ID_ref but map it to the
> new physical ID column in the new database.
>
> From looking at synonyms so far, I don't think you can do this kind of
> mapping. Do you know if that is the case for sure?

Right, if you are also changing column names or anything else, synonyms
are not for you.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация