private static string[] GetAllTableNames() { SqlConnection con = new SqlConnection(@"user id=sa;password=ssa;database=Mohan;data source=PCTH101\PCTH101"); SqlCommand cmd = new SqlCommand("select name from sys.tables", con); SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt); return dt.AsEnumerable().Select(k => k[0] + "").ToArray(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)