Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
The following code example describes a scope named
filtered_customer, and adds three tables to the scope:
NewTable. The first two tables already exist in the server database, so the GetDescriptionForTable method is used to retrieve the schema from the server database. All columns from the
Customer table are included, but only two columns from the
CustomerContact table are included. The
NewTable table is defined by using DbSyncTableDescription and DbSyncColumnDescription objects, and then the table is created in the server database (and in the other databases that synchronize with it). To view this code in the context of a complete example, see How to: Configure and Execute Collaborative Synchronization (SQL Server).