د.كاف يار قام بنشر فبراير 14, 2021 مشاركة قام بنشر فبراير 14, 2021 الاتصال بقاعدة البيانات و جلب بيانات محددة Using con As New SqlConnection("عنوان قاعدة البيانات") Using cmd As New SqlCommand("SELECT * FROM Employees WHERE [Employee_ID]= '" & Employee_ID.Text & "';") Using sda As New SqlDataAdapter() cmd.Connection = con sda.SelectCommand = cmd Using dt As New DataTable() sda.Fill(dt) TextBox1.Text = dt(0)("Employee_Name") TextBox2.Text =dt(0)("Employee_DOB") End Using End Using End Using End Using 2 رابط هذا التعليق شارك More sharing options...
ابوآمنة قام بنشر فبراير 16, 2021 مشاركة قام بنشر فبراير 16, 2021 بالنسبط لتمرير Employee_ID.Text في جملة sql Using cmd As New SqlCommand("SELECT * FROM Employees WHERE [Employee_ID]= '" & Employee_ID.Text & "';") في خطر حذف بيانات الجدول من المخترق . تابع هذه الحلقة : رابط هذا التعليق شارك More sharing options...
الردود الموصى بها
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.