I can use code like this to extract the columns from a SQL Server 2012 table:
var sqlConnection = new SqlConnection(conns);
var dt = sqlConnection.GetSchema
(SqlClientMetaDataCollectionNames.Columns, new string[] { null , null , "mytable" , null });
However, I am unable to determine the right kind of schema query to get the columns from my user-defined Table type. How is that done?
All ideas appreciated (Using .NET 4.5.1).