Thank you for the reply. The issue isn't the string, it's the class. So I googled "c# dynamically define a class based on a sql query output at runtime". I was going to look into ExpandoObject.