Ciao a tutti,
vorrei sapere come faccio a creare un DB MySQL direttamente da VB.NET.
Riesco a fare gli update e gli insert.
Vi posto il codice:
se faccio così mi dice:codice:connStr = String.Format("server=localhost;user id=root;) dim conn = New MySqlConnection(connStr) conn.open Dim db As MySqlCommand cmd.CommandText = "create database" & ultimo db = cmd.ExecuteScalar conn.Close()
Eccezione non gestita di tipo "MySql.Data.MySqlClient.MySqlException" in mysql.data.dll
Informazioni aggiuntive: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'database0005_policlinico' at line 1
Sapèete dove sbaglio??
Grazie
spider81man