Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

I am working on the web based project(ASP.net) where backend is sql server 2008. i am developing the application using sql server 2008. now i want to migrate my database from sql server 2008 to oracle 11g. can u please tell me how can i do it without changing my application code.
Thanks!.
Posted
Updated 17-Apr-10 2:33am
v2

 
Share this answer
 
I am just doing a similar project - our application works now with MS Access and SQL Server 2000/2005, and has to be able run with Oracle also. Though not yet having accomplished that completely, I can tell you already that you will have to change lots of your code. Oracle does not understand many data types which even Access knows, e.g. Guid. Many tables likely have some auto-incrementing number as a primary key - with Access or SQL Server that's simply a property of the respective column, in Oracle you will need a sequence and a trigger also... And for retrieving that last inserted ID, you cannot do a "Select @@Identity" but you have to query the CURRVAL of the respective sequence. Several tables/columns were renamed during automatic migration, e.g. "User" became "USER_". It is lots of work, and hardly any word of a SQL query will remain the same!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900