title: If I created a SQL Server database in C#, where can I check it?
body: <p>I am going to create a database with SQL Server in C#, and also make basic queries.</p>
  
  <p>And I wrote the following code to create the database.</p>
  
  <p>Where can I find my database?</p>
  
  <p>I downloaded SSMS but I am not sure how to check it.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Data;
  using System.Data.SqlClient;
  
  namespace MakeBusDB
  {
      class Program
      {
          static void Main(string[] args)
          {
              string query;
              SqlConnection sqlConn = new SqlConnection("Server=localhost;Integrated security=SSPI;database=master");
              query = "DROP DATABASE IF EXISTS Session1DB";
              SqlCommand sqlCommand = new SqlCommand(query, sqlConn);
              try
              {
                  sqlConn.Open();
                  sqlCommand.ExecuteNonQuery();
                  query = "CREATE DATABASE Session1DB";
                  sqlCommand.ExecuteNonQuery();
              }
              catch (System.Exception ex) 
              {
                  Console.WriteLine(ex.StackTrace);
              }
              Console.ReadLine();
          }
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CzImc.png" rel="nofollow noreferrer">enter image description here</a></p>