The document discusses three different ways to perform CRUD (create, read, update, delete) operations on a database using ADO.NET in Visual Basic.NET. It includes code examples showing how to connect to a SQL Server database, retrieve data from a table into a DataSet, display the data in a DataGridView, and search or filter the data. The examples demonstrate using DataAdapters, DataSets, DataViews and SqlDataReaders to connect to the database and perform queries to retrieve and manipulate the data.
This slide is introduced What is index in database system .
It's very simple to let you understand what is index pros and cons.
there has chinese voice version youtube :)
https://www.youtube.com/watch?v=BOBZAMfQfrQ&feature=youtu.be
https://www.youtube.com/watch?v=hkl5CcmZ4OI&feature=youtu.be
This slide is introduced What is index in database system .
It's very simple to let you understand what is index pros and cons.
there has chinese voice version youtube :)
https://www.youtube.com/watch?v=BOBZAMfQfrQ&feature=youtu.be
https://www.youtube.com/watch?v=hkl5CcmZ4OI&feature=youtu.be
MySQL Workbench is a Visual database designing and modeling access tool for MySQL server relational database. It facilitates the creation of new physical data models and modification of existing MySQL databases with reverse/forward engineering and change management functions.
MySQL 8.0 has come up with an exciting addition of window function which can make the developer life more ease with complex SQL's. This presentation will be a walk through over window functions in MySQL 8.0.
http://www.mydbops.com
MySQL Workbench is a Visual database designing and modeling access tool for MySQL server relational database. It facilitates the creation of new physical data models and modification of existing MySQL databases with reverse/forward engineering and change management functions.
MySQL 8.0 has come up with an exciting addition of window function which can make the developer life more ease with complex SQL's. This presentation will be a walk through over window functions in MySQL 8.0.
http://www.mydbops.com
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdfapnashop1
Imports System.Net.Sockets Imports System.Text Public Class Form1 Dim clientSocket As
New System.Net.Sockets.TcpClient() Dim serverStream As NetworkStream Dim readData
As String Dim infiniteCounter As Integer Private Sub Button1_Click(ByVal sender As
System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim
outStream As Byte() = _ System.Text.Encoding.ASCII.GetBytes(TextBox2.Text + \"$\")
serverStream.Write(outStream, 0, outStream.Length) serverStream.Flush() End Sub
Private Sub msg() If Me.InvokeRequired Then Me.Invoke(New
MethodInvoker(AddressOf msg)) Else TextBox1.Text = TextBox1.Text + _
Environment.NewLine + \" >> \" + readData End If End Sub Private Sub
Button2_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles
Button2.Click readData = \"Conected to Chat Server ...\" msg()
clientSocket.Connect(\"127.0.0.1\", 8888) \'Label1.Text = \"Client Socket Program - Server
Connected ...\" serverStream = clientSocket.GetStream() Dim outStream As Byte() =
_ System.Text.Encoding.ASCII.GetBytes(TextBox3.Text + \"$\")
serverStream.Write(outStream, 0, outStream.Length) serverStream.Flush() Dim
ctThread As Threading.Thread = _ New Threading.Thread(AddressOf getMessage)
ctThread.Start() End Sub Private Sub getMessage() For infiniteCounter = 1 To 2
infiniteCounter = 1 serverStream = clientSocket.GetStream() Dim buffSize As
Integer Dim inStream(10024) As Byte buffSize = clientSocket.ReceiveBufferSize
serverStream.Read(inStream, 0, buffSize) Dim returndata As String = _
System.Text.Encoding.ASCII.GetString(inStream) readData = \"\" + returndata
msg() Next End Sub End Class
Solution
Imports System.Net.Sockets Imports System.Text Public Class Form1 Dim clientSocket As
New System.Net.Sockets.TcpClient() Dim serverStream As NetworkStream Dim readData
As String Dim infiniteCounter As Integer Private Sub Button1_Click(ByVal sender As
System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim
outStream As Byte() = _ System.Text.Encoding.ASCII.GetBytes(TextBox2.Text + \"$\")
serverStream.Write(outStream, 0, outStream.Length) serverStream.Flush() End Sub
Private Sub msg() If Me.InvokeRequired Then Me.Invoke(New
MethodInvoker(AddressOf msg)) Else TextBox1.Text = TextBox1.Text + _
Environment.NewLine + \" >> \" + readData End If End Sub Private Sub
Button2_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles
Button2.Click readData = \"Conected to Chat Server ...\" msg()
clientSocket.Connect(\"127.0.0.1\", 8888) \'Label1.Text = \"Client Socket Program - Server
Connected ...\" serverStream = clientSocket.GetStream() Dim outStream As Byte() =
_ System.Text.Encoding.ASCII.GetBytes(TextBox3.Text + \"$\")
serverStream.Write(outStream, 0, outStream.Length) serverStream.Flush() Dim
ctThread As Threading.Thread = _ New Threading.Thread(AddressOf getMessage)
ctThread.Start() End Sub Private Sub getMessage() For infiniteCounter = 1 To 2
infiniteCounter = 1 serverStream = clientSocket.GetStream() Dim buffSi.
Imports System.Data.OleDb Public Class Form1 Dim connc As Ne.pdffantabulustredingco
Imports System.Data.OleDb
Public Class Form1
Dim connc As New OleDbConnection
Dim cmd As OleDbCommand
Dim tb As New DataTable
Dim da As New OleDbDataAdapter
Private Sub Form1_load(sender As Object, e As EventArgs) Handles MyBase.Load
connc.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=
C:\Users\ILUNGELOLETHU LAPTOP\source\repos\WindowsApp3\RUGBY.accdb"
End Sub
Private Sub btnSAVE_Click(sender As Object, e As EventArgs) Handles btnSAVE.Click
Try
connc.Open()
cmd = connc.CreateCommand()
cmd.CommandType = CommandType.Text
cmd.CommandText = "insert into RUGBY
(PlayerID,Player,Team,Games,Points)Values('" + txtPlayerID.Text + "' ,'" + txtPlayer.Text + "',
'" + txtGames.Text + "','" + txtPoints.Text + "')"
cmd.ExecuteNonQuery()
connc.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay.Click
Try
connc.Open()
cmd = connc.CreateCommand()
cmd.CommandType = CommandType.Text
da = New OleDbDataAdapter("SELECT Team FROM RUGBY", connc)
da.Fill(tb)
ListBox1.DataSource = tb
connc.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
End Class
please help,
i am getting this error code when connecting to ms access database i install the plugins and also
download but still The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local
machine..
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
This is a presentation by Dada Robert in a Your Skill Boost masterclass organised by the Excellence Foundation for South Sudan (EFSS) on Saturday, the 25th and Sunday, the 26th of May 2024.
He discussed the concept of quality improvement, emphasizing its applicability to various aspects of life, including personal, project, and program improvements. He defined quality as doing the right thing at the right time in the right way to achieve the best possible results and discussed the concept of the "gap" between what we know and what we do, and how this gap represents the areas we need to improve. He explained the scientific approach to quality improvement, which involves systematic performance analysis, testing and learning, and implementing change ideas. He also highlighted the importance of client focus and a team approach to quality improvement.
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
What is the purpose of the Sabbath Law in the Torah. It is interesting to compare how the context of the law shifts from Exodus to Deuteronomy. Who gets to rest, and why?
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Overview on Edible Vaccine: Pros & Cons with Mechanism
Visual Studio.Net - Sql Server
1. http://sistemasddm.blogspot.com
tkd.ddm@gmail.com
PRIMERA FORMA EN ADO.NET
VISUAL.NET
Imports System.Data.SqlClient
Public Class Form1
Dim CN As New SqlConnection("data source= . ; database = Northwind ; integrated security = true")
Dim DS As New DataSet
Dim DA As SqlDataAdapter
Dim BUSCAR As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
DA = New SqlDataAdapter("select * from Employees", CN)
DS = New DataSet
DA.Fill(DS, "Employees")
Me.DataGridView1.DataSource = DS.Tables("Employees")
End Sub
Private Sub btnnuevo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnnuevo.Click
Me.txtbuscar.Enabled = True
Me.txtbuscar.Text = ""
End Sub
2. http://sistemasddm.blogspot.com
tkd.ddm@gmail.com
Private Sub btnbuscar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnbuscar.Click
Dim objdataview As New DataView
Dim buscar As Integer
Me.DataGridView1.DataSource = Nothing
buscar = Me.txtbuscar.Text
objdataview.Table = DS.Tables("Employees")
objdataview.RowFilter = "employeeid= '" & buscar & "'"
If objdataview.Count > 0 Then
Me.DataGridView1.DataSource = objdataview
Me.DataGridView1.Refresh()
Else
MsgBox("registro no encontrado", MsgBoxStyle.Information, "advertencia")
End If
Me.txtbuscar.Enabled = False
End Sub
End Class
3. http://sistemasddm.blogspot.com
tkd.ddm@gmail.com
SEGUNDA FORMA EN ADO.NET
VISUAL BASIC.NET
USE MASTER
CREATE TABLE EMPLEADOS
(CODIGO NVARCHAR(5),
NOMBRE NVARCHAR(25),
APELLIDOS NVARCHAR (25),
DIRECCION NVARCHAR (25),
TELEFONO NVARCHAR (25))
INSERT INTO EMPLEADOS
VALUES ('E0001', 'RICHARD', 'RAMOS BARRIOS' , 'LA VISTORIA', '997798005')
INSERT INTO EMPLEADOS
VALUES ('E0002', 'JUAN ', 'CARLOS ROJAS' , 'MOLINA', '997798008')
INSERT INTO EMPLEADOS
VALUES ('E0003', 'CARLOS', 'LOLO CARLOS' , 'COMAS', '997798007')
INSERT INTO EMPLEADOS
VALUES ('E0004', 'NILDA', 'DURAND MORILLO' , 'LIMA', '997798009')
Imports System.Data.SqlClient
Public Class Form1
Dim CN As New SqlConnection("data source= . ;user id = 123 ; database = master ; integrated security
= true")
4. http://sistemasddm.blogspot.com
tkd.ddm@gmail.com
Dim DS As New DataSet
Dim DA As SqlDataAdapter
Dim dW As New DataView
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
DA = New SqlDataAdapter("SELECT * FROM EMPLEADOS", CN)
DS = New DataSet
DA.Fill(DS, "EMPLEADOS")
Me.DataGridView1.DataSource = DS.Tables("EMPLEADOS")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnnuevo.Click
Dim ctr As Control
For Each ctr In Me.Controls
If TypeOf ctr Is TextBox Then ctr.Text = ""
'Me.DataGridView1.DataSource = Nothing
Next
End Sub
Private Sub btnbuscar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnbuscar.Click
Me.DataGridView1.DataSource = Nothing
dW.Table = DS.Tables("empleados")
dW.RowFilter = "codigo = '" & txtcodigo.Text & "'"
If dW.Count > 0 Then
Me.DataGridView1.DataSource = dW
Me.DataGridView1.Refresh()
Me.txtcodigo.Text = Me.DataGridView1.Item(0, 0).Value
Me.txtnombre.Text = Me.DataGridView1.Item(1, 0).Value
Me.txtapellidos.Text = Me.DataGridView1.Item(2, 0).Value
Me.txtdireccion.Text = Me.DataGridView1.Item(3, 0).Value
Me.txttelefono.Text = Me.DataGridView1.Item(4, 0).Value
Else
MsgBox("REGISTRO NO ENCONTRADO")
End If
End Sub
End Class
7. http://sistemasddm.blogspot.com
tkd.ddm@gmail.com
Imports System.Data.SqlClient
Public Class form1
Dim CN As New SqlConnection("data source= . ; database = MASTER; integrated security = true")
Dim cmd As SqlCommand
Dim dr As SqlDataReader
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnsalir.Click
End
End Sub
Private Sub btnnuevo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnnuevo.Click
Dim ctrl As Control
For Each ctrl In Me.Controls
If TypeOf ctrl Is TextBox Then ctrl.Text = ""
Next
Me.btnnuevo.Text = "buscar"
End Sub
Private Sub btnbuscar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnbuscar.Click
Try
If btnbuscar.Text = "buscar" Then
Me.btnbuscar.Text = "buscar ahora"
Me.txtcodigo.Enabled = True
Me.txtcodigo.Focus()
Else
cmd = New SqlCommand("select * from empleados where codigo = '" & Me.txtcodigo.Text & "'", CN)
CN.Open()
dr = cmd.ExecuteReader
If dr.Read Then
Me.txtnombre.Text = dr("nombre")
Me.txtapellidos.Text = dr("apellidos")
Me.txtdireccion.Text = dr("direccion")
Me.txttelefono.Text = dr("telefono")
Else
MessageBox.Show("el codigo no existe", "error", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End If
CN.Close()
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
End Class