a sını yaptım ama b ve c yi yapamadım nasıl kod ile yazdırabilirim bilgili abilerim yardımcı olursa çok sevinirim yaptıgım kodu buraya bırakıyorum
 public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(@"server=DESKTOP-438B91R\SQL;Trusted_Connection=yes");
string str = string.Format("create database db_test");
SqlCommand myCommand = new SqlCommand(str, con);
try
{
con.Open();
myCommand.ExecuteNonQuery();
MessageBox.Show("Başarılı", "prog", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (System.Exception ex)
{
MessageBox.Show(ex.ToString(), "prog", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
finally
{
if (con.State == ConnectionState.Open)
{
con.Close();
}
}
}

}
}