How to fix Error 3233 on Windows Server 2025 / Windows 11

Troubleshooting Guide: SQL Server Error 3233 – Invalid Identity Specified for the S3 Credential

Why This Error Happens

This error occurs when SQL Server 2025’s native S3 backup/restore functionality encounters a CREATE CREDENTIAL statement where the IDENTITY parameter does not match the required literal string S3 Access Key. Unlike Azure Blob Storage credentials (which use SHARED ACCESS SIGNATURE), S3-compatible object storage integration requires a strict, case-sensitive identity string to validate the credential type before parsing the secret. This typically happens due to a copy-paste error, a typo, or legacy script templates that haven’t been updated for the new S3-compatible syntax introduced in SQL Server 2025.

Step-by-Step Resolution Guide

Step 1: Verify the Current Credential Syntax

  • Open SQL Server Management Studio (SSMS) or Azure Data Studio connected to your instance.
  • Run a query to inspect existing credentials: SELECT name, credential_identity FROM sys.credentials;
  • Check if the credential_identity column contains anything other than the exact string S3 Access Key (e.g., check for extra spaces, incorrect casing like “s3 access key”, or a bucket ARN mistakenly placed in the Identity field).

Step 2: Drop and Recreate the Credential

  • Since credentials cannot be “edited,” you must drop the broken object first: DROP CREDENTIAL [YourS3CredentialName];
  • Recreate the credential using the exact, case-sensitive identity syntax required by the S3 integration engine:
CREATE CREDENTIAL [YourS3CredentialName]
WITH IDENTITY = 'S3 Access Key',
SECRET = '<AccessKeyID>:<SecretAccessKey>';
  • Ensure there are no trailing whitespace characters in the IDENTITY field, as SQL Server 2025 parses this string literally to trigger the S3 authentication flow.

Step 3: Validate the Secret Formatting

  • Double-check that the SECRET field follows the colon-separated format: AccessKeyID:SecretAccessKey.
  • If you are using temporary session tokens (STS), ensure the secret string includes the session token in the correct triple-colon format supported by the 2025 engine: AccessKeyID:SecretAccessKey:SessionToken.
  • Restart the SQL Server (MSSQLSERVER) service via services.msc on Windows Server 2025 if the credential cache appears stale after the update.

Alternative or Verification Steps

  • Verify the Fix: Attempt to create or alter an External Data Source referencing the credential (CREATE EXTERNAL DATA SOURCE... WITH (LOCATION = 's3://your-bucket/', CREDENTIAL = [YourS3CredentialName])). If the command processes without throwing Error 3233, the identity string is now valid.
  • Alternative Check: If the error persists despite correct syntax, verify that the SQL Server 2025 Cumulative Update (CU) level supports native S3 integration, as this feature requires specific build numbers; outdated CU levels may reject the S3 Access Key identity type entirely.