public void FillTabControl(TabControl tabControl) { sqlQuery = @"SELECT * FROM SYSOBJECTS WHERE XTYPE='U'"; con = fdc.NewConnection(); command = new SqlCommand(sqlQuery, con); try { con.Open(); sqlReader = command.ExecuteReader(); while (sqlReader.Read()) { tabPage = new TabPage(sqlReader.GetName(0)); tabControl.TabPages.Add(tabPage); } } catch { } finally { con.Close(); } }
Quote:Ok, i already know the query to select all tables, but i doesn't know how to read the output of this query in C# to know the names of each table...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)