SQL Server Performance Forum – Threads Archive
NormalizationHI dear DBA’s
I have an issue with database normalization,i migrated some old database of oracle to SQL Server and now i want to normalise the database design into more relational. How can i split the tables into many without losing my data? I have doubt that if i split into many tables how does the data which is already in the database is arranged into my new design?
the only way split the tables into many is to use select and insert or update to the new table. Example<br />Tables<br />id c1 c2 c3 c4<br />1 a b c d<br />2 d e f g<br /><br />table1<br />id c1<br />1 a<br /><br />table2<br />1 b<br /><br />etc<br /><br />insert into table1 (id c1) select id, c1 from tables and so on. <img src=’/community/emoticons/emotion-1.gif’ alt=’‘ /> good luck lots of works<br /><br />May the best cheaters win
I would suspect that there are third-party tools available that can assist you in your task. Maybe you find something here in the Tools section. Anyway, this is a labour-intensive and no trivial task. You might think more than once about how to tackle this problem. But it surely pays! Good luck! —
Microsoft SQL Server MVP
Ich unterstÃ¼tze PASS Deutschland e.V. http://www.sqlpass.de)
A few goodies:
http://www.sqlteam.com/item.asp?ItemID=122 Satya SKJ
This posting is provided â€œAS ISâ€ with no rights for the sake of knowledge sharing.
tdong is right…the only way is to map out the conversions from the existing tables to the new ones, and have a whole lot of insert statements from the old to the new…and Frank is right too, it is very labour intensive (i am doing it at the moment…maybe i should mention it can become tedious or even boring too <img src=’/community/emoticons/emotion-1.gif’ alt=’‘ />)<br /><br />Good luck with it!<br /><br />’I reject your reality and substitute my own’ – Adam Savage