Hi, 1) Do we have anything which is equivalent to synonym in oracle? If it is not available, how do we simulate it? please provide me the details, thank you. 2) When we use "Select * into NewTable from OldTable" command, it just creates a new table without the constraints which the old table has got. I understand, there could be a collision in the constraint names, but is it possible to create it without some other default name, just in the way sql server does when constraints are created with out providing any name. If it is possible, we can rename them later on. Just a thought, not sure whether it is sensible, please give me your suggestions, thank you. Regards Deva
I think you need VIEW Create VIEW myView as Select * from oldTable Madhivanan Failing to plan is Planning to fail
SELECT * isn't really recommended as "best practise". You shold get into the habit to be explicite in your DDL. Offers you much more control and causes less trouble. -- Frank Kalis Microsoft SQL Server MVP http://www.insidesql.de Heute schon gebloggt?http://www.insidesql.de/blogs Ich unterstütze PASS Deutschland e.V. http://www.sqlpass.de)
Check SQL 2005 for more information on Synonyms. Satya SKJ Contributing Editor & Forums Moderator http://www.SQL-Server-Performance.Com This posting is provided “AS IS†with no rights for the sake of knowledge sharing.
quote:Originally posted by satya Check SQL 2005 for more information on Synonyms. Satya SKJ Contributing Editor & Forums Moderator http://www.SQL-Server-Performance.Com This posting is provided “AS IS†with no rights for the sake of knowledge sharing. So in SQL Server 2005, views are replaced as Synonyms? Madhivanan Failing to plan is Planning to fail