SQL Server Developer Center > SQL Server Forums > SQL Server SMO/DMO > How to create a Table with a composite primary key with Microsoft.SqlServer.Management.Smo objects?
Ask a questionAsk a question
 

AnswerHow to create a Table with a composite primary key with Microsoft.SqlServer.Management.Smo objects?

  • Tuesday, October 27, 2009 7:44 PMDeling Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am trying to create a table in my C# program with Microsoft.SqlServer.Management.Smo.Table. This table would have 3 columns consisting the PK. However, Microsoft.SqlServer.Management.Smo.Column doesn't seem to allow to specify that. Any ideas? Thank you.
    • Moved byVMazurMVPTuesday, November 03, 2009 11:27 AM (From:ADO.NET Data Providers)
    •  

Answers

All Replies