microsoft / microsoft/sqlmanagementobjects

Sql Management Objects Scripting Bugs

Open
#3 0 comments 0 reactions 1 assignee View on GitHub

@shueybubbles is already working on this.

Since Dec 6, 2019.

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

Description

A couple bugs I've noticed when using the Sql Management Objects Scripter class.

  • SMO does not generate default constraints inline, but instead generates an ALTER TABLE script. More details here.
  • When passing an array of SqlSmoObjects to Scripter.Script() with the option "IncludeHeaders" turned on, it is not ordering the scripts correctly. Any ALTER scripts are not ordered under the header for the object they belong to, and are instead listed at the end of the scripts. This is very problematic if you're trying to keep the scripts for a given object together.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.