Prova questa:

codice:
string sqlM = "SELECT MAX(id) AS numOrdine FROM tb_ordini_teste";