using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
namespace NoDllError
{
    class Program
    {
        static void Main(string[] args)
        {
            SqlConnectionStringBuilder cb = new SqlConnectionStringBuilder();
            cb.DataSource="(local)";
            cb.IntegratedSecurity=true;
            cb.InitialCatalog = "Scratch";
           
            using (SqlConnection conn = new SqlConnection(cb.ConnectionString))
            {
                using (SqlCommand cmd = new SqlCommand("SELECT * FROM Scratch..Tiles", conn))
                {
                    
                    conn.Open();
                    SqlDataReader rdr = cmd.ExecuteReader();
                    while (rdr.Read())
                    {
                        Console.WriteLine(
                            rdr[0].ToString(), rdr[1].ToString(), rdr[2].ToString());
                    }
                }
            }
        }
    }
}
