Getting system tables and views thru SqlConnection
问题 I am trying to get all tables from a LocalDB database in C# (VS 2012) When using an OleDbConnection I can do string[] restrictions = new string[4]; connection.GetSchema("Tables", restrictions); and it will return all user tables, all system views and all system tables How can I do this with a SqlConnection ? It seems that GetSchema on a SqlConnection only returns user tables and views, but no system tables or views. The 4th restriction parameter only seems to accept VIEW and BASE TABLE.