2009-10-08 7 views

Répondre

1

Peut être comme ceci:

SqlConnection connection = new SqlConnection(connectionString); 
SqlCommand command = new SqlCommand("CREATE DATABASE database_name", connection); 
command.Connection.Open(); 
command.ExecuteReader(); 
connection.Close();