OK, so I replaced the original code with the following:
Code:
OdbcConnection connection = new OdbcConnection(AppSettings.DbConn);
OdbcCommand command = connection.CreateCommand();
command.CommandText = "INSERT INTO Visitor(Referer, Browser) VALUES('";
command.CommandText += (Request.UrlReferrer == null ? "none" : Request.UrlReferrer.ToString());
command.CommandText += "', '" + Request.UserAgent + "');";
command.CommandType = CommandType.Text;
Now i'm getting "Operation must use an updateable query".