microsoft / microsoft/sqlmanagementobjects

How to disable the sqlmanagementobjects tracing output ?

Open
#67 5 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

I'm using SMO inside a .Net (C#) project.
I installed the library using NuGet package Microsoft.SqlServer.SqlManagementObjects / version 161.46437.65.

All of a sudden, my console output is filled with tracing information from the library which is being way too verbose for me !

How can I disable the tracing output from the SMO library ?

I also found similar questions on Stack Overflow. (without answers)
https://stackoverflow.com/questions/62026123/how-to-prevent-tracing-content-from-components-in-a-tracelistener
https://stackoverflow.com/questions/63508192/is-there-a-way-to-disable-the-tracehelper-in-smo-v16-nuget-package

Is there plan to publish the source code of the SMO library on github ?
See the page here which stated 2020 H2: https://github.com/microsoft/sqlmanagementobjects/wiki

Thanks for the help,

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

The issue identifies Microsoft.SqlServer.SqlManagementObjects version 161.46437.65 and a console reproduction with verbose tracing; start by checking the package's tracing configuration and the application's TraceListener setup. Done means documenting or exposing a supported way to suppress SMO tracing without suppressing unrelated application tracing, with the console behavior verified.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.