Environment:
- Upgrade to TeamCity 2026.2 or newer
- MSSQL database
Problem
Upgrading TeamCity to 2026.2 and newer fails during startup with an SQL error. The logs show the following error:
com.microsoft.sqlserver.jdbc.SQLServerException: The EXECUTE permission was denied on the object 'BigintType', database '<name>', schema 'dbo'.
Cause
MSSQL specific performance optimizations introduced in 2026.2 require a modern JDBC driver (12.4 and newer) as well as it might require updated permissions in case they weren't available earlier.
Resolution
Run the following SQL commands to add the necessary permissions (replace [teamcity_db_user] with the actual database username):
GRANT EXECUTE ON TYPE::dbo.BigintType TO [teamcity_db_user];
GRANT EXECUTE ON TYPE::dbo.Varchar1000Type TO [teamcity_db_user];
Restart the TeamCity server after applying the permissions.
Comments
0 comments
Please sign in to leave a comment.