Если вы хотите подключиться к локальной SQL Server Express, и подключиться к базе данных «Борей», и прочитать первые 5 клиентов из таблицы «Клиенты», Вы должны были бы сделать что-то вроде этого:
string connectionString = "server=(local)\SQLExpress;database=Northwind;integrated Security=SSPI;";
using(SqlConnection _con = new SqlConnection(connectionString))
{
string queryStatement = "SELECT TOP 5 * FROM dbo.Customers ORDER BY CustomerID";
using(SqlCommand _cmd = new SqlCommand(queryStatement, _con))
{
DataTable customerTable = new DataTable("Top5Customers");
SqlDataAdapter _dap = new SqlDataAdapter(_cmd);
_con.Open();
_dap.Fill(customerTable);
_con.Close():
}
}
Это очень фундаментальный вопрос, я бы рекомендовал исследовать и изучать основы ADO.NET. –