The SQL Server built-in Import and Export function can export common attribute tables:
However, if the table you want to copy contains a geometry field, you cannot import a table with a geometry field if you use the built-in import/export table function of SQL Server. You can use the insert into SELECT statement to copy data from one table to another:
Two tables are in the same database:
Insert into encode (Code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id, is_thematicmap, supportfile_code, boundary_all)
Select Code, name, description, type, parent_code, boundary, center_point, boundary_house, boundary_hole_id, is_thematicmap, suppfilefile_code, boundary_all from mapping_geodata_boundary
Two tables are in different databases (openquery ):
Insert mapping_geodata_boundary
(Code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id, is_thematicmap)
Select Code, name, description, type, parent_code, boundary, center_point, boundary_hole, role, is_thematicmap from openquery ([10.10.1.31], 'select code, name, description, type, parent_code, boundary, center_point, boundary_hole, boundary_hole_id,
Is_thematicmap from epro30.dbo. mapping_geodata_boundary ')
If you want to create a database chain in different databases: