Black Cats visit for Rams
Derby will play Sunderland in their traditional home curtain-raiser to the new season.
Martin O'Neill's side will visit Pride Park on August 8 and the game will kick-off at 7.45pm.
The match will be Derby's penultimate first-team pre-season fixture, with Nigel Clough's men travelling to Chesterfield the following Saturday (August 11), ahead of the 2012-13 campaign.
"We're delighted that Martin O'Neill and his Sunderland side will be heading to Pride Park in the build-up to next season," said Rams boss Clough. "Sunderland's squad contains plenty of international players such as Sebastian Larsson, John O'Shea and James McClean - who are likely to play some part in the European Championships this summer for Sweden and the Republic of Ireland.
"'It'll be great for our fans to see them in action, while it will also be good for our players to test themselves against Premier League players.
"I have no doubt Martin's side will certainly provide us with a stern test, which will be ideal in our preparations for the 2012-13 season."