microsoft / microsoft/sqlmanagementobjects

ScriptForCreateOrAlter still not working

Open
#126 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
143
Forks
28
PR merge metrics
No merged PRs in 30d

Description

ScriptForCreateOrAlter flag does not seems to be generating StoreProcedure scripts with Create Or Alter

I am passing the following options to the scripter

        SchemaQualify = true,
        ScriptForCreateOrAlter = true,
        IncludeDatabaseContext = true

SQL Server version being used is Microsoft SQL Server 2019 (RTM-GDR) (KB5014356) - 15.0.2095.3 (X64)

I have found this issue which references this issue, from the looks of it this should have been fixed.

https://github.com/microsoft/sqlmanagementobjects/issues/11

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

Reproduce the issue using the ScriptForCreateOrAlter, SchemaQualify, and IncludeDatabaseContext options against SQL Server 2019, then compare the generated stored procedure script with the expected CREATE OR ALTER form. Review the behavior discussed in microsoft/sqlmanagementobjects#11 and confirm that the generated script uses CREATE OR ALTER when the flag is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.