(07-05-21, 12:01 AM)ابو انس كتب : تفضل
PHP كود :
SELECT *FROM information_schema.tables
من لا يشكر الناس لا يشكر الله
اشكرك اخي ابو انس
وهذا كود البحث وعرض اسماء الجداول في الكومبوبكس
PHP كود :
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ComboBox3.Items.Clear()
Dim con As New SqlConnection("DATA SOURCE=" & ComboBox1.Text & ";INITIAL CATALOG=" & ComboBox2.Text & ";integrated security=true")
Dim adapter As New SqlDataAdapter("SELECT * from information_schema.tables", con)
Dim dt As New DataTable
adapter.Fill(dt)
if dt.Rows.Count > 0 Then
For Each row As DataRow In dt.Rows
ComboBox3.Items.Add(row("TABLE_NAME").ToString)
Next
End If
End Sub
