> Dim connectionString As String = "Ma'lumot manbai = MUKUNTUWEAP;" & "Dastlabki KATALOG = Booze;" SqlCommand = Yangi SqlCommand ("SELECT * FROM RECIPES", cn) As dim dataAdapter SqlDataAdapter = Yangi SqlDataAdapter Dim myDataSet DataSet = Yangi DataSet dataAdapter.SelectCommand = "Yangi o'rnatilgan SQLConnection (connectionString) commandWrapper dataAdapter.Fill (myDataSet, "Recipes")
DataSet keyinchalik dastur kodingizdagi ma'lumotlar bazasi kabi ishlov berishi mumkin. Matnni sintaksisi uni talab qilmaydi, lekin odatda DataTable-ning nomini ma'lumotlarni yuklash uchun taqdim etasiz. Maydonni qanday ko'rsatishni ko'rsatadigan misol.
Do'stlaringiz bilan baham: |