When I run program with this commands it prints System.Data.SqlClient.SqlCommand!!!
That is following its instructions; "Convert.ToString(mycommand)" will result in that text.
Why it won't show random word from database???
What do you want to load? A single random word? In that case, your query is wrong, as it will result in multiple non-random results, and you should call the ExecuteScalar method on the command. ToString its result and remove the reader
If you want to load all the values in the list of records that the query returns, you'd need a reader indeed. In that case you'd still need the reader and call its Read method. To print them all, you'd need a loop.
Bastard Programmer from Hell If you can't read my code, try converting it here[^]