If you have SQL Server, then use an SQL server database. Unless you are going to be distributing your application, and each instance will use the DB as a standalone store, in which case SQL server is a bit overkill. Then I would use SQLCE or SQLite instead.
For SQL server databases:
using (SqlConnection con = new SqlConnection(strCon))
{
con.Open();
string strcmd = "SELECT fileName FROM myTable WHERE iD=@ID";
using (SqlCommand cmd = new SqlCommand(strcmd, con))
{
cmd.Parameters.AddWithValue("@ID", iD);
using (SqlDataReader r = cmd.ExecuteReader())
{
while (r.Read())
{
Console.Write((string) r["fileName"]);
}
}
}
}