microsoft / microsoft/sqlmanagementobjects

.Alter() on objects changes parameters

Open
#74 2 comments 0 reactions 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

When using alter on an object after setting IsEncrypted to true (I believe it also happens without setting IsEncrypted to true), the parameter list is not exactly as it was before altering.
This image shows the code leading up to the alter:
image
The left side of this image shows what SMO prints to the debug console after the alter, and on the right is what the script looks like before the alter:
image
This difference causes errors.

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

Start by reproducing the .Alter() behavior described in the issue, comparing the parameter list before and after altering an object, including the IsEncrypted case shown in the attached images. No source files or tests are named; done means identifying the cause of the changed parameters and confirming that the resulting script no longer causes the reported errors.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.