dsccommunity / dsccommunity/SqlServerDsc

DSC_SqlAGDatabase not working on german localized server

Open
#1,694 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue help wanted
Dominant language
PowerShell
Stars
385
Forks
224
PR merge metrics
No merged PRs in 30d

Description

On a german SQL Server I am not able to add a new database to an AG.
It it this line on the Resource: https://github.com/dsccommunity/SqlServerDsc/blob/main/source/DSCResources/DSC_SqlAGDatabase/DSC_SqlAGDatabase.psm1

at line 375: if ( $fileExistsResult.Tables.Rows.'File is a Directory' -ne 1 ).

This Column does not exits on a german server it's called "Die Datei ist ein Verzeichnis."

Please solve or suggest a solution.

Contributor guide

Open the contributing guide

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

Start in source/DSCResources/DSC_SqlAGDatabase/DSC_SqlAGDatabase.psm1 at line 375 and reproduce the database-add operation on a German SQL Server. Check how the resource obtains the “File is a Directory” column, then verify that adding a database to an AG succeeds on the German-localized server without relying on the English column name.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.