select * from INFORMATION_SCHEMA.TABLES
TABLE_NAME
using (SqlConnection con = new SqlConnection(strCon)) { con.Open(); using (SqlCommand cmd = new SqlCommand("SELECT * FROM dbo.sysobjects WHERE xtype = 'U'", con)) { using (SqlDataReader r = cmd.ExecuteReader()) { while (r.Read()) { Console.WriteLine(r["name"]); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)