|
SqlDataAdapter myDataAdapter = new SqlDataAdapter (queryStr.myConnection);
should be
SqlDataAdapter myDataAdapter = new SqlDataAdapter (queryStr, myConnection);
You have written the comma as a dot, the system judges that myConnection is a member of queryStr, so this compilation error occurs |
|