Hello @Josef Szeliga ,
Welcome to Microsoft Q&A forum.
As far as I know, "publish" is more like deploying an existing database from Visual Studio to one of the existing databases of SQL Server. So, you may get errors and fail to publish.
If you want to create a new database, you may check and follow this document: Create a database and add tables in Visual Studio.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.