Thursday, March 22, 2012

Can I create table with constrains in SMO?

Hello Guys,

I m new to SMO thing. Just wonder if we can define data constrains in SMO for tables?

Cheers,

Elton

The simple answer is yes, anything you can do in SSMS you can do using SMO. Can you offer any specifics regarding what you want to do?

|||

I wrote a tutorial on how to create a table in SQL Server using SMO. This may get you started:

Create Table in SQL Server 2005 Using C# and SQL Server Management Objects (SMO) - Code Generation

Regards,

Dave

No comments:

Post a Comment