OVH Cloud OVH Cloud

Asp.net : Execution d'une requete.

1 réponse
Avatar
WikiPierre
Bonjour,
J'utilise ca pour me connecter a ma base access

Dim oConnection As System.Data.OleDb.OleDbConnection
oConnection = New System.Data.OleDb.OleDbConnection()
Dim sConnectionString As String
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
E:\Paramètres de Pierre\Bureau\Projet\Web\PortalVS\includes\bdd\bd1.mdb"
oConnection.ConnectionString = sConnectionString
oConnection.Open()
oConnection.Close()


Comment executer une requete SQL sur cette base de donnée ?
Voila la requete INSERT INTO news (Nom, Descriptions, URL, ID) VALUES (""
TestNom, TestDesc, TestURL, 2 "")

--
---
Pierre
http://wikims.free.fr/phpBB2/index.php -
http://communautes-ms.akro-net.org - http://wikims.free.fr

1 réponse

Avatar
Christophe Lauer [MS]
Bonjour,

WikiPierre wrote:
J'utilise ca pour me connecter a ma base access



<CUT/>

Comment executer une requete SQL sur cette base de donnée ?



Vous pouvez vous inspirer des Didacticiels de Démarrage Rapide .NET :
http://fr.gotdotnet.com/quickstart/howto/

Et en particulier la partie consacrée à l'accès aux données :
http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/ADOPlusOverview.aspx

HTH,

--
Christophe Lauer - Relations Techniques Editeurs de Logiciels
Division Développeurs et Plateforme d'Entreprise - Microsoft France
http://blogs.microsoft.fr/clauer/
This posting is provided "AS IS" with no warranties, and confers no
rights.