vb.net - mysql

2004-03-25 Thread Thorsten Reichelt
Hello,

i write a front-end in vb.net and want to save data`s out of a text field
into a MySQL database.
But i have trouble
with
this.
-
a short example out of my source code to save data`s directley into MySQL.

Private Sub btnSpeichern_Click 
 Dim MyConString As String .

Dim MyConnection As New OdbcConnection(MyConString)
MyConnection.Open()

Dim MyCommand As New OdbcCommand
MyCommand.Connection = MyConnection

MyCommand.CommandText = insert into test(firma) values ('test')
  

MyConnection.Close()
-
How can i write into MySQL the data`s i type into a text field?

Regrads
Thorsten 

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: vb.net - mysql

2004-03-25 Thread Stefan Hinz
Thorsten,

 i write a front-end in vb.net and want to save data`s out of a text field
 into a MySQL database.
 But i have trouble with this.

On http://www.vbmysql.com/articles, you will find some great
VB/MySQL-related tutorials.

http://www.vbmysql.com/samplecode/simpleinsert.html is probably what
you're looking for.

Regards,
--
  Stefan Hinz [EMAIL PROTECTED]
  iConnect GmbH http://iConnect.de
  Heesestr. 6, 12169 Berlin (Germany)
  Telefon: +49 30 7970948-0  Fax: +49 30 7970948-3

[filter fodder: sql, mysql, query]


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]