Hi,
I need to create database objects (table, index, keys, views, functions, etc.) through the c#.net code. The user specifies the name of the database object to be replicated and the new name given to the copied object.
So suppose user selects existing table TableA and the new name TableB, my code should create TableB having the same structure (columns, etc.) as TableA.
I am okay with the actual creation part. I need tips on how to get the TableA metadata (structure).
Which is the best way to achieve the same?
Thanks very much :)