Hi @Tuomas Keskitalo ,
> It's allowed to import a production backup and use this for testing?
Yes, you can.
>Or do we need a license because we need a production backup for the test environment data refresh?
No, developer edition is enough.
When you install SQL Server Developer Edition, the license terms are copied to a location like:
C:\Program Files\Microsoft SQL Server\150\License Terms\SQLServer2019_License_DEV_1033.rtf
You should read the license and apply it to your scenario.
The license states, in relevant part:
- INSTALLATION AND USE RIGHTS.
a. General. You may install and use copies of the software on any device, including third party shared devices, to design, develop, test and demonstrate your programs. You may not use the software in a production environment.
b. Demonstration. Any person that has access to your internal network may install and use copies of the software to demonstrate use of your programs with the software. Those copies may not be used for any other purpose.
c. User Testing. Your end users may access the software to perform acceptance tests on your programs.
By the way, this is SQL server technical forum, for License issue, I suggest that you can consult professionals in this area. please call 1-800-426-9400, Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist. Or you can go to Volume Licensing Service Center support. Please choose region/language and choose to call or have web. People there will help you more effectively.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".