Best way to Merge 2 tables in SQL Server 2008 -


i trying merge 2 similar tables (not exact) 1 table. getting lots of errors ideas on best way this?

i see there not type field in tbldvpage hold tbldvpagecategory.type, if wanted merge latter former, may need create new column it, or hold tbldvpagecategory.type tbldvpage.pagetype.

either ways end having similar this:

insert tbldvpage(title, parentid, pagetype, menuorder) select title, parentid, type, menuorder tbldvpagecategory 

obviously old ids in tbldvpagecategory gone, , regenerated when items merged tbldvpage. if might want differentiate what new column, depends on scenario.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -