Share via

SQL71508 - Problems with building SQL Server Projects with Azure SQL and DevOps Build Pipelines due to sys.time_zone_info

Tim Wong 10 Reputation points
2023-08-11T20:57:55.8866667+00:00

I have a SQL Server database project which some stored procedures need to use the sys.time_zone_info object. Per this post, adding sys.time_zone_info to the project resolves the errors/warnings in the build. However, this is problematic in Azure DevOps Build Pipelines and fails with the following message

time_zone_info.sql(1,1): Error SQL71508: The model already has an element that has the same name sys.time_zone_info

Has anyone else encountered this issue and what's the workaround?

Azure SQL Database

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.