Accueil > > > CLASS D'ACCÈS AU BASE DE DONNÉES OLEDB
CLASS D'ACCÈS AU BASE DE DONNÉES OLEDB
Information sur la source
Description
Voila ma première source, c'est une classe d'accès au base de données OLEDB, elle comporte les méthodes d'ordre général "mise à jour","création des tables","remplissage" et "création des relations".. en utilisant les deux mode de connection, surtout le mode déconnecté... je serai très heureux que qqun puisse se servir de cette classe.
toutes vos remarques ou critiques instructives seront les bienvenues
Source
- Imports System.Data.OleDb
- Public Class AccessDataBase
- Private ds As DataSet
- Private dv As DataView
- Private dt As DataTable
- Private da As OleDbDataAdapter
- Private das As Dictionary(Of String, OleDbDataAdapter)
- Private con As OleDbConnection
- Private cmd As OleDbCommand
- Private reader As OleDbDataReader
- Private cmdBuilder As OleDbCommandBuilder
- Public Sub New(ByVal strCon As String)
-
- ds = New DataSet
- dv = New DataView
- da = New OleDbDataAdapter
- das = New Dictionary(Of String, OleDbDataAdapter)
- con = New OleDbConnection(strCon)
- cmd = New OleDbCommand("", con)
- dt = New DataTable
- cmdBuilder = New OleDbCommandBuilder
-
-
- End Sub
- Public Function getDataSet() As DataSet
- Return ds
- End Function
- Public Function getConnection() As OleDbConnection
- Return con
- End Function
- Public Sub creerTable(ByVal nomTable As String)
- Dim adapter As New OleDbDataAdapter
- executeRequete("select * from " & nomTable, adapter)
- adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey
- adapter.Fill(ds, nomTable)
- das.Add(nomTable, adapter)
- End Sub
- #Region "Méthodes de mise à jour"
- Public Sub ajouter(ByVal nomTable As String, ByVal id As Object(), ByVal params As Object())
- If Not ds.Tables(nomTable).Rows.Contains(id) Then
- ds.Tables(nomTable).Rows.Add(params)
- Else
- MsgBox("Cet enregistrement existe déjà dans la base de données", MsgBoxStyle.Exclamation, "Erreur d'ajour")
- End If
- End Sub
- Public Sub modifier(ByVal nomtable As String, ByVal id As Object(), ByVal params As Object())
- Dim row As DataRow = Nothing
- Dim i As Integer
- If ds.Tables(nomtable).Rows.Contains(id) Then
- For i = 0 To params.Length - 1
- row(i) = params(i)
- Next
- End If
- End Sub
- Public Sub supprimer(ByVal nomTable As String, ByVal id As Object())
- If ds.Tables(nomTable).Rows.Contains(id) Then
- ds.Tables(nomTable).Rows.Find(id).Delete()
- End If
- End Sub
- Public Function rechercher(ByVal nomTable As String, ByVal id As Object) As DataRow
- If ds.Tables(nomTable).Rows.Contains(id) Then
- Return ds.Tables(nomTable).Rows.Find(id)
- Else
- Return Nothing
- End If
- End Function
- Public Function rechercherParFiltration(ByVal nomTable As String, ByVal filtre As Object) As DataRow()
- If ds.Tables(nomTable).Select(filtre).Count <> 0 Then
- Return ds.Tables(nomTable).Select(filtre)
- End If
- Return Nothing
- End Function
- Public Sub enregistrer(ByVal nomTable As String)
- cmdBuilder = New OleDbCommandBuilder(das(nomTable))
- das(nomTable).Update(ds.Tables(nomTable))
- End Sub
-
- #End Region
- #Region "Méthode de remplissage"
- Public Sub remplir(ByRef grid As DataGrid, ByVal nomTable As String, ByVal filtre As Object, ByVal expressionTri As Object)
- dv = New DataView(ds.Tables(nomTable))
- dv.RowFilter = filtre
- dv.Sort = expressionTri
- grid.DataSource = dv
- End Sub
- Public Sub remplir(ByRef grid As DataGridView, ByVal nomTable As String, ByVal filtre As Object, ByVal expressionTri As Object)
- dv = New DataView(ds.Tables(nomTable))
- dv.RowFilter = filtre
- dv.Sort = expressionTri
- grid.DataSource = dv
- End Sub
- Public Sub remplir(ByRef list As ListControl, ByVal nomTable As String, ByVal filtre As Object, ByVal expressionTri As Object, ByVal indexOfDisplayMember As Integer, ByVal indexOfValueMember As Integer)
- dv = New DataView(ds.Tables(nomTable))
- dv.RowFilter = filtre
- dv.Sort = expressionTri
- list.DataSource = dv
- list.DisplayMember = ds.Tables(nomTable).Columns(indexOfDisplayMember).Caption
- list.ValueMember = ds.Tables(nomTable).Columns(indexOfValueMember).Caption
- End Sub
- Public Sub remplir(ByRef grid As DataGrid, ByVal rqst As String)
- Dim table As New DataTable
- executeRequete(rqst, table)
- grid.DataSource = table
- End Sub
- Public Sub remplir(ByRef list As ListControl, ByVal rqst As String, ByVal indexOfDisplayMember As Integer, ByVal indexOfValueMember As Integer)
- Dim table As New DataTable
- executeRequete(rqst, table)
- list.DataSource = table
- list.DisplayMember = table.Columns(indexOfDisplayMember).Caption
- list.ValueMember = table.Columns(indexOfValueMember).Caption
- End Sub
- Public Sub remplir(ByRef grid As DataGridView, ByVal rqst As String)
- Dim table As New DataTable
- executeRequete(rqst, table)
- grid.DataSource = table
- End Sub
- #End Region
- #Region "Requête SQL sans paramètres"
- Private Sub ouvrir_con()
- Try
- con.Open()
- Catch ex As Exception
- Throw New Exception
- End Try
-
- End Sub
- Private Sub fermer_con()
- con.Close()
- End Sub
- Private Function CreerCommande(ByVal rqst As String)
- Return New OleDbCommand(rqst, con)
- End Function
-
- Public Function executeRequete(ByVal rqst As String) As Object
- Dim commande As New OleDbCommand
- commande = CreerCommande(rqst)
- Try
- ouvrir_con()
- Return commande.ExecuteScalar
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Return Nothing
- Finally
- fermer_con()
- End Try
- End Function
- Public Sub executeRequete(ByVal rqst As String, ByRef myReader As OleDbDataReader)
- Dim commande As New OleDbCommand
- commande = CreerCommande(rqst)
- Try
- ouvrir_con()
- myReader = commande.ExecuteReader
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequete(ByVal rqst As String, ByRef adapter As OleDbDataAdapter)
- Dim commande As New OleDbCommand
- commande = CreerCommande(rqst)
- Try
- ouvrir_con()
- adapter = New OleDbDataAdapter(commande)
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequete(ByVal rqst As String, ByRef table As DataTable)
- Dim adapter As New OleDbDataAdapter
- executeRequete(rqst, adapter)
- Try
- ouvrir_con()
- table = New DataTable
- adapter.Fill(table)
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequeteReader(ByVal rqst As String, ByVal table As DataTable)
- Dim row As DataRow
- Try
- ouvrir_con()
- reader = executeRequete(rqst)
- While reader.Read
- row = table.NewRow
- For i As Integer = 0 To reader.FieldCount - 1
- row(i) = reader.GetValue(i)
- Next
- table.Rows.Add(row)
- End While
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequete(ByVal rqst As String, ByVal dtSet As DataSet)
- Try
- ouvrir_con()
- cmd = CreerCommande(rqst)
- da.SelectCommand = cmd
- da.Fill(dtSet)
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- #End Region
- #Region "Requête SQL avec paramètres"
- Private Function CreerCommande(ByVal rqst As String, ByVal params() As OleDbParameter) As OleDbCommand
- Dim param As OleDbParameter
- Dim commande As New OleDbCommand
- commande.CommandText = rqst
- For Each param In params
- commande.Parameters.Add(param)
- Next
- commande.Connection = con
- Return commande
- End Function
- Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByRef myReader As OleDbDataReader)
- Dim commande As New OleDbCommand
- commande = CreerCommande(rqst, params)
- Try
- ouvrir_con()
- myReader = commande.ExecuteReader
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByRef adapter As OleDbDataAdapter)
- Dim commande As New OleDbCommand
- commande = CreerCommande(rqst, params)
- Try
- ouvrir_con()
- adapter = New OleDbDataAdapter(commande)
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByRef table As DataTable)
- Dim adapter As New OleDbDataAdapter
- executeRequete(rqst, params, adapter)
- Try
- ouvrir_con()
- table = New DataTable
- adapter.Fill(table)
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequeteReader(ByVal rqst As String, ByVal params() As OleDbParameter, ByVal table As DataTable)
- Dim row As DataRow
- Try
- ouvrir_con()
- reader = executeRequete(rqst, params)
- While reader.Read
- row = table.NewRow
- For i As Integer = 0 To reader.FieldCount - 1
- row(i) = reader.GetValue(i)
- Next
- table.Rows.Add(row)
- End While
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByVal dtSet As DataSet)
- Dim adapter As New OleDbDataAdapter
- executeRequete(rqst, params, adapter)
- Try
- ouvrir_con()
- adapter.Fill(dtSet)
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Finally
- fermer_con()
- End Try
- End Sub
- Public Function executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter) As Object
- cmd = CreerCommande(rqst, params)
- Try
- ouvrir_con()
- Return cmd.ExecuteScalar
- Catch ex As Exception
- MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
- Return Nothing
- Finally
- fermer_con()
- End Try
- End Function
- #End Region
-
-
- Public Function getTables(ByVal nomTable As String) As DataTable
- Return ds.Tables(nomTable)
- End Function
- Public Sub etablirRelation(ByVal nomRelation As String, ByVal nomTableParent As String, ByVal nomTableEnfant As String, ByVal nomColParent As String, ByVal nomColEnfant As String)
- Dim colP As New DataColumn
- Dim colE As New DataColumn
- colP = ds.Tables(nomTableParent).Columns(nomColParent)
- colE = ds.Tables(nomTableEnfant).Columns(nomColEnfant)
- ds.Relations.Add(New DataRelation(nomRelation, colP, colE))
- End Sub
-
-
- End Class
Imports System.Data.OleDb
Public Class AccessDataBase
Private ds As DataSet
Private dv As DataView
Private dt As DataTable
Private da As OleDbDataAdapter
Private das As Dictionary(Of String, OleDbDataAdapter)
Private con As OleDbConnection
Private cmd As OleDbCommand
Private reader As OleDbDataReader
Private cmdBuilder As OleDbCommandBuilder
Public Sub New(ByVal strCon As String)
ds = New DataSet
dv = New DataView
da = New OleDbDataAdapter
das = New Dictionary(Of String, OleDbDataAdapter)
con = New OleDbConnection(strCon)
cmd = New OleDbCommand("", con)
dt = New DataTable
cmdBuilder = New OleDbCommandBuilder
End Sub
Public Function getDataSet() As DataSet
Return ds
End Function
Public Function getConnection() As OleDbConnection
Return con
End Function
Public Sub creerTable(ByVal nomTable As String)
Dim adapter As New OleDbDataAdapter
executeRequete("select * from " & nomTable, adapter)
adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey
adapter.Fill(ds, nomTable)
das.Add(nomTable, adapter)
End Sub
#Region "Méthodes de mise à jour"
Public Sub ajouter(ByVal nomTable As String, ByVal id As Object(), ByVal params As Object())
If Not ds.Tables(nomTable).Rows.Contains(id) Then
ds.Tables(nomTable).Rows.Add(params)
Else
MsgBox("Cet enregistrement existe déjà dans la base de données", MsgBoxStyle.Exclamation, "Erreur d'ajour")
End If
End Sub
Public Sub modifier(ByVal nomtable As String, ByVal id As Object(), ByVal params As Object())
Dim row As DataRow = Nothing
Dim i As Integer
If ds.Tables(nomtable).Rows.Contains(id) Then
For i = 0 To params.Length - 1
row(i) = params(i)
Next
End If
End Sub
Public Sub supprimer(ByVal nomTable As String, ByVal id As Object())
If ds.Tables(nomTable).Rows.Contains(id) Then
ds.Tables(nomTable).Rows.Find(id).Delete()
End If
End Sub
Public Function rechercher(ByVal nomTable As String, ByVal id As Object) As DataRow
If ds.Tables(nomTable).Rows.Contains(id) Then
Return ds.Tables(nomTable).Rows.Find(id)
Else
Return Nothing
End If
End Function
Public Function rechercherParFiltration(ByVal nomTable As String, ByVal filtre As Object) As DataRow()
If ds.Tables(nomTable).Select(filtre).Count <> 0 Then
Return ds.Tables(nomTable).Select(filtre)
End If
Return Nothing
End Function
Public Sub enregistrer(ByVal nomTable As String)
cmdBuilder = New OleDbCommandBuilder(das(nomTable))
das(nomTable).Update(ds.Tables(nomTable))
End Sub
#End Region
#Region "Méthode de remplissage"
Public Sub remplir(ByRef grid As DataGrid, ByVal nomTable As String, ByVal filtre As Object, ByVal expressionTri As Object)
dv = New DataView(ds.Tables(nomTable))
dv.RowFilter = filtre
dv.Sort = expressionTri
grid.DataSource = dv
End Sub
Public Sub remplir(ByRef grid As DataGridView, ByVal nomTable As String, ByVal filtre As Object, ByVal expressionTri As Object)
dv = New DataView(ds.Tables(nomTable))
dv.RowFilter = filtre
dv.Sort = expressionTri
grid.DataSource = dv
End Sub
Public Sub remplir(ByRef list As ListControl, ByVal nomTable As String, ByVal filtre As Object, ByVal expressionTri As Object, ByVal indexOfDisplayMember As Integer, ByVal indexOfValueMember As Integer)
dv = New DataView(ds.Tables(nomTable))
dv.RowFilter = filtre
dv.Sort = expressionTri
list.DataSource = dv
list.DisplayMember = ds.Tables(nomTable).Columns(indexOfDisplayMember).Caption
list.ValueMember = ds.Tables(nomTable).Columns(indexOfValueMember).Caption
End Sub
Public Sub remplir(ByRef grid As DataGrid, ByVal rqst As String)
Dim table As New DataTable
executeRequete(rqst, table)
grid.DataSource = table
End Sub
Public Sub remplir(ByRef list As ListControl, ByVal rqst As String, ByVal indexOfDisplayMember As Integer, ByVal indexOfValueMember As Integer)
Dim table As New DataTable
executeRequete(rqst, table)
list.DataSource = table
list.DisplayMember = table.Columns(indexOfDisplayMember).Caption
list.ValueMember = table.Columns(indexOfValueMember).Caption
End Sub
Public Sub remplir(ByRef grid As DataGridView, ByVal rqst As String)
Dim table As New DataTable
executeRequete(rqst, table)
grid.DataSource = table
End Sub
#End Region
#Region "Requête SQL sans paramètres"
Private Sub ouvrir_con()
Try
con.Open()
Catch ex As Exception
Throw New Exception
End Try
End Sub
Private Sub fermer_con()
con.Close()
End Sub
Private Function CreerCommande(ByVal rqst As String)
Return New OleDbCommand(rqst, con)
End Function
Public Function executeRequete(ByVal rqst As String) As Object
Dim commande As New OleDbCommand
commande = CreerCommande(rqst)
Try
ouvrir_con()
Return commande.ExecuteScalar
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Return Nothing
Finally
fermer_con()
End Try
End Function
Public Sub executeRequete(ByVal rqst As String, ByRef myReader As OleDbDataReader)
Dim commande As New OleDbCommand
commande = CreerCommande(rqst)
Try
ouvrir_con()
myReader = commande.ExecuteReader
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequete(ByVal rqst As String, ByRef adapter As OleDbDataAdapter)
Dim commande As New OleDbCommand
commande = CreerCommande(rqst)
Try
ouvrir_con()
adapter = New OleDbDataAdapter(commande)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequete(ByVal rqst As String, ByRef table As DataTable)
Dim adapter As New OleDbDataAdapter
executeRequete(rqst, adapter)
Try
ouvrir_con()
table = New DataTable
adapter.Fill(table)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequeteReader(ByVal rqst As String, ByVal table As DataTable)
Dim row As DataRow
Try
ouvrir_con()
reader = executeRequete(rqst)
While reader.Read
row = table.NewRow
For i As Integer = 0 To reader.FieldCount - 1
row(i) = reader.GetValue(i)
Next
table.Rows.Add(row)
End While
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequete(ByVal rqst As String, ByVal dtSet As DataSet)
Try
ouvrir_con()
cmd = CreerCommande(rqst)
da.SelectCommand = cmd
da.Fill(dtSet)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
#End Region
#Region "Requête SQL avec paramètres"
Private Function CreerCommande(ByVal rqst As String, ByVal params() As OleDbParameter) As OleDbCommand
Dim param As OleDbParameter
Dim commande As New OleDbCommand
commande.CommandText = rqst
For Each param In params
commande.Parameters.Add(param)
Next
commande.Connection = con
Return commande
End Function
Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByRef myReader As OleDbDataReader)
Dim commande As New OleDbCommand
commande = CreerCommande(rqst, params)
Try
ouvrir_con()
myReader = commande.ExecuteReader
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByRef adapter As OleDbDataAdapter)
Dim commande As New OleDbCommand
commande = CreerCommande(rqst, params)
Try
ouvrir_con()
adapter = New OleDbDataAdapter(commande)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByRef table As DataTable)
Dim adapter As New OleDbDataAdapter
executeRequete(rqst, params, adapter)
Try
ouvrir_con()
table = New DataTable
adapter.Fill(table)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequeteReader(ByVal rqst As String, ByVal params() As OleDbParameter, ByVal table As DataTable)
Dim row As DataRow
Try
ouvrir_con()
reader = executeRequete(rqst, params)
While reader.Read
row = table.NewRow
For i As Integer = 0 To reader.FieldCount - 1
row(i) = reader.GetValue(i)
Next
table.Rows.Add(row)
End While
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Sub executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter, ByVal dtSet As DataSet)
Dim adapter As New OleDbDataAdapter
executeRequete(rqst, params, adapter)
Try
ouvrir_con()
adapter.Fill(dtSet)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Finally
fermer_con()
End Try
End Sub
Public Function executeRequete(ByVal rqst As String, ByVal params() As OleDbParameter) As Object
cmd = CreerCommande(rqst, params)
Try
ouvrir_con()
Return cmd.ExecuteScalar
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Erreur")
Return Nothing
Finally
fermer_con()
End Try
End Function
#End Region
Public Function getTables(ByVal nomTable As String) As DataTable
Return ds.Tables(nomTable)
End Function
Public Sub etablirRelation(ByVal nomRelation As String, ByVal nomTableParent As String, ByVal nomTableEnfant As String, ByVal nomColParent As String, ByVal nomColEnfant As String)
Dim colP As New DataColumn
Dim colE As New DataColumn
colP = ds.Tables(nomTableParent).Columns(nomColParent)
colE = ds.Tables(nomTableEnfant).Columns(nomColEnfant)
ds.Relations.Add(New DataRelation(nomRelation, colP, colE))
End Sub
End Class
Conclusion
Ce code est une collection assez complète de méthodes pour gérer l'accès à la BD.
Historique
- 23 mai 2009 01:33:24 :
- J'ai améliorer la classe en ajoutant autre méthodes en mode connécté
- 23 mai 2009 01:40:38 :
- g mis un zipfil
- 31 mai 2009 22:25:58 :
- j'ai améliorer la classe, en ajouter des méthodes et en mettant à jour d'autres.. enjoy :D !!
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
VB.Net Compacter une BD - ADO - Access [ par JeffC1977 ]
Bonjour à tous... J'ai un programme qui utilise ADO.Net et deux Tables Acces. Je me demande si c'est possible de coder afin de compacter les table
VB.Net Requête SQL pour ADO.Net [ par MagDix ]
BonjourJe susi entrain d'essayé de faire une Requête SQL toute simple afin de mettre tout les lignes qui contienne un astérix dans une certain colonne
VB.Net ADO.Net et Excel Connection [ par MagDix ]
Salut J'essais de me créer un appli qui utilise ADO.Net et un fichier EXcel et j'ai certaines difficultées. L'une d'entre elle est la connection e
Objet datagrid et ADO dans VB 6.0 [ par Tamlaclass ]
Bonjour, je suis entrain de monter un programme VB 6 avec une base de donnes Access 2007. J'ai un datagrid dans une form nomme 'GrdDisplay' avec des c
VB.Net ADO.Net Si donnée absente dans BD [ par MagDix ]
Bonjour, Je cherche unmoyen pour coder (avec ADO.Net et VB.Net) une facon pour que si je cherche une valeur dans ma BDet qu'elle est inexistante, al
VB + ADO - Champs de type Varchar [ par zet63 ]
Bonjour a tous,Je developpe un outils en vb.net + ado qui doit réorganiser des bases access 95.Ces bases sont ensuite utilisées par un logiicel tiers
VB.Net DataGrid ADO Valeur nul ??? [ par JeffC1977 ]
Salut à tous...J'utilsie un DataGrid et j'ai réussi à affichier ma table Acces dans le DataGrid.Le seul problème est que j'ai plusieurs cellule vide d
VB.Net ADO.Net et Excel ??? [ par MagDix ]
Salut... J'aimerais savoir Je sais que ADO.Net fonctionne avec VB 2005 .Net. J'ai utilisé ce code et je saisi assez ce code. Toutefois j'aimerai
VB.Net Ado Requête SQL Problème [ par JeffC1977 ]
Salut..J'ai un problème avec un requête simple SQL.. J'utilise VB.Net et ADO.Net.Cette requête fonctionnait correctement jadis et je dois avoir un err
|
Derniers Blogs
SQL SERVER : QUERY NOTIFICATION OU COMMENT êTRE NOTIFIé DE MODIFICATIONS DE DONNéES CôTé APPLICATIONSQL SERVER : QUERY NOTIFICATION OU COMMENT êTRE NOTIFIé DE MODIFICATIONS DE DONNéES CôTé APPLICATION par christian
Cette fonctionnalité à vue le jour dans Ado.Net 2.0 et s'appuie sur SQL Server 2005 (et plus) même si elle fonctionne avec SQL Server 2000. Le principe de fonctionnement côté applicatif est assez simple, on fournit une requête et lorsque le résultat d...
Cliquez pour lire la suite de l'article par christian [WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL?[WF4] UN BINDING ACTIVITY/ACTIVITYDESIGNER QUI PASSE MAL? par JeremyJeanson
Certain d'entre vous on peut être vécu cette situation embarrassante après quelques temps passer avec WF4 : Au début avec mon " ActivityDesigner" , tout allait bien. Et puis un jour j'ai au des problèmes de " Binding" . Alors nous sommes allé sur le site ...
Cliquez pour lire la suite de l'article par JeremyJeanson MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ?MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ? par junarnoalg
La prochaine session de MyTIC aura lieu à Namur, le 23 mars prochain. Pendant presque une heure, nous parlerons de SharePoint 2010. Voici un aperçu du programme.
Accueil : 17h30 Début de la session : 18h00 - Les nouvelles int...
Cliquez pour lire la suite de l'article par junarnoalg [MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA[MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA par cyril
Le deuxième keynote du mix fut très riche en contenu. Internet Explorer 9 Juste un après le lancement de Internet Explorer 8, Microsoft a dévoilé les nouveautés de Internet Explorer 9. Désormais, IE supportera HTML5, SVG et CSS3. L'élément ...
Cliquez pour lire la suite de l'article par cyril
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|