C# - Whats wrong with my SELECT Statement - SqlCommand nameCommand = new SqlCommand("SELECT * FROM GradesTable1 WHERE Id=" + idText + " AND : this SELECT Statement does't work for me - 
<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->


    SqlCommand nameCommand = new SqlCommand("SELECT * FROM GradesTable1 WHERE Id=" + idText + " AND Name='" + nameText + "/';", sqlConnection1);

<!-- end snippet -->

 (after the "SqlCommand nameCommand = "), before it, it did send the parameters, maybe I changed something quickly by mistake and haven't noticed (i'm new about this) but, I can't see the difference.


I debuged it, but can't understand why it is null here - 

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

    SqlDataReader data3 = nameCommand.ExecuteReader();
     if(data3.Read()) //as NULL! and jump to else.
    {

    }

<!-- end snippet -->

Can you notice my mistake? 