11
In SQL Server Management Studio, I can generate the CREATE TABLE script for a table by right-clicking a table and choosing Script Table As.
How can I get this same result in C#? Can I utilize SMO or some other methodology?
[To avoid the question getting closed, please post working code samples, not one-liners or links to the high-level documentation.]