public void ReadMyData(string myConnString)
{
string mySelectQuery = "SELECT AccountID, \"Account Name\" FROM Accounts";
ZohoDeskConnection ZohoDeskConnection = new ZohoDeskConnection(myConnString);
ZohoDeskCommand ZohoDeskCommand = new ZohoDeskCommand(mySelectQuery,ZohoDeskConnection);
ZohoDeskConnection.Open();
ZohoDeskDataReader ZohoDeskReader = ZohoDeskCommand.ExecuteReader();
try
{
while (ZohoDeskReader.Read())
{
Console.WriteLine(ZohoDeskReader.GetString(0) + ", " + ZohoDeskReader.GetString(1));
}
}
finally
{
// always call Close when done reading.
ZohoDeskReader.Close();
// always call Close when done reading.
ZohoDeskConnection.Close();
}
}