. . .
string s="select Max(message_id) from tblmessag"
This sentence defines a string s, and the content of s is the content in double quotes "".
You directly write select Max(message_id) from tblmessag