The SQA is responsible for school qualification certifications
Plans to relocate Scotland's exam authority in Midlothian to a new purpose-built home have been given the go ahead.
The Scottish Qualifications Authority is to move from Dalkeith to Shawfair Park, which is also in Midlothian.
It is presently housed in what has been described as "outdated and inefficient accommodation" at Ironmills Road.
The move is expected to go ahead once the new building has been completed at the end of 2011.
Keith Brown, Minister for skills and lifelong learning, said: "To work as effectively as possible, SQA need facilities that are fit for the 21st century, something that would not have been the case within the current premises at Ironmills.
"I'm pleased therefore that a move to new facilities at Shawfair is being progressed, which will position the SQA well for the future."
Dr Janet Brown, chief executive of SQA, said: "Our existing Dalkeith premises were built in the early 1970s and are now unsuited to our future needs.
"We are delighted to have secured permission from the Scottish government to relocate to the Shawfair Business Park, which is close to our existing office."