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
Post a Comment