microsoft / microsoft/sql-server-samples

Data generation SP fails with 'dbo' database principal error 15517

Open
#741 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
11.2k
Forks
9.1k
Avg merge
2d 7h
Merged PRs (30d)
14

Description

After installing the "WideWorldImporters-Standard.bacpac" file on an Azure SQL Database, I'm executing the data generation script per instructions:

EXECUTE DataLoadSimulation.PopulateDataToCurrentDate @AverageNumberOfCustomerOrdersPerDay = 60, @SaturdayPercentageOfNormalWorkDay = 50, @SundayPercentageOfNormalWorkDay = 0, @IsSilentMode = 1, @AreDatesPrinted = 1;

The following error occurs:

Msg 15517, Level 16, State 1, Procedure DataLoadSimulation.ChangePasswords, Line 0 [Batch Start Line 0]
Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names WideWorldImporters-Standard.bacpac and DataLoadSimulation.PopulateDataToCurrentDate, with the failure occurring in DataLoadSimulation.ChangePasswords. Start by reproducing the script on Azure SQL Database and inspect the installation instructions and database-principal handling. Done means the documented data-generation path runs without the dbo principal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.