public void InsertRow(string ZohoDeskConnectionString)
{
// If the connection string is empty, use default.
if(ZohoDeskConnectionString == "")
{
ZohoDeskConnectionString =
Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f;
}
ZohoDeskConnection myConn = new ZohoDeskConnection(ZohoDeskConnectionString);
string myInsertQuery = "INSERT INTO Accounts (\"Account Name\", Phone) VALUES ('Test','555-555-555')";
ZohoDeskCommand ZohoDeskCommand = new ZohoDeskCommand(myInsertQuery);
ZohoDeskCommand.Connection = myConn;
myConn.Open();
try
{
ZohoDeskCommand.ExecuteNonQuery();
}
finally
{
myConn.Close();
}
}