microsoft / microsoft/sql-server-samples
Error publishing WideWorldImporters to SQL Server 2017 on Docker
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 11.2k
- Forks
- 9.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 14
Description
Following the Instrucctions to publish WWI database I've got this error.
The path specified by "WideWorldImporters_WWI_MemoryOptimized_Data_696E7800.mdf" is not in a valid directory.
(65,1): SQL72014: .Net SqlClient Data Provider: Mens. 5121, nivel 16, estado 2, línea 1 The path specified by "WideWorldImporters_WWI_MemoryOptimized_Data_696E7800.mdf" is not in a valid directory.
(65,0):
The problematic code makes reference to empty variables $(DefaultDataPath)$(DefaultFilePrefix)
:setvar DefaultDataPath ""
:setvar DefaultLogPath ""
...
ALTER DATABASE [$(DatabaseName)]
ADD FILE (NAME = [WWI_MemoryOptimized_Data_696E7800], FILENAME = N'$(DefaultDataPath)$(DefaultFilePrefix)_WWI_MemoryOptimized_Data_696E7800.mdf') TO FILEGROUP [WWI_MemoryOptimized_Data];
I solve the problem assgining the value \var\opt\mssql\data
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WideWorldImporters SSDT publishing instructions and the database script section that uses $(DefaultDataPath)$(DefaultFilePrefix) for the memory-optimized data file. Reproduce publishing on SQL Server 2017 in Docker, then verify the default data path is handled without manual assignment to /var/opt/mssql/data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, sql
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100