The Cambridge Centre for Business Research Survey of Knowledge Exchange Activity with Universities by United Kingdom Companies, 2017-2021 contains the results of an online survey of directors of UK companies in 2020-2021. The survey was designed to assess the extent and nature of the knowledge exchange interactions of their companies with the university sector. It covers the three-year period to March 2020 prior to the Covid-19 pandemic and questions relating to the subsequent impact of the pandemic on knowledge exchange patterns. The researchers inquired about 33 modes of interaction grouped into four broad categories. These were commercialisation (3 modes), people-based (10 modes), problem-solving (12 modes) and community-based (4 modes). The survey covers a sample of 3,823 companies in all sectors, regions and countries of the UK and employment sizes ranging from micro-firms less than 10 employees, to the largest public listed corporations. The response rate was 4.4 per cent and a detailed response bias analyses by survey wave and prompt wave showed largely insignificant sample response bias compared to the sampling frame drawn from the FAME database of all UK companies. The dataset provides a unique source of data on a critical period of challenge for knowledge exchange in the UK. David Sweeney, the then Executive Director of Research England which sponsored the survey commented on an initial report of results in 2022 that "This report which has an exclusive focus on company interactions with universities, is an important addition to our understanding of the collaboration process" (The Changing State of Business-University Interactions in the UK. Centre for Business Research and NCUB. 2022 p2). The survey dataset contains many variables comparable with a similar previous postal survey of an earlier period by two members of the current research team. The data from this is available from the UK Data Archive under SN 6464 - Cambridge Centre for Business Research Survey of Knowledge Exchange Activity by United Kingdom Businesses, 2005-2009.