Do so
cmd.CommandText = "тут запрос"; dr = cmd.ExecuteReader(); DataTable schemaTable = new DataTable(); schemaTable.Load(dr);` This is done without the first line:
foreach (DataRow importRow in schemaTable.Rows) { } In the request, for example, there are 13 lines, but I see only 12, without the first (exactly without the first, checking by changing the ASC DESC sort), I suspect that the DataTable counts first as a header. In general, the question, sho do?
Even so I checked:
MessageBox.Show(schemaTable.Rows.Count.ToString()); writes 12, and in fact in the query 13 lines.

Loaddoes not say anything like that. I checked it now in my code - it loads exactly as many lines as it is, without any caps. - Alexander Petrovforeachcan even be ignored. Instead, it is just aMessageBoxto understand how many rows are in the request. - Winteriscomingcmd.CommandText = "select 1 a union select 2"line one? - nick_n_a