I have written a C# code to transfer tables between two remote servers using SMO, what I want to know is that is there anyway to check if the table already exists in the destination server with the exact schema, column names, data types, constraints and everything. Then I wouldn’t have to drop the existing table every time and create new ones.
Share
Try this piece of code snippet:
Compare Method: