且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SQL Server查询可视化器–无法看到生成的SQL查询

更新时间:2022-11-28 17:11:14

问题中所述的问题仍然存在.

The problem stated in the question still exists.

当前,我正在使用以下类在输出窗口中查看结果.

Currently I am using the following class for seeing the result in output window.

context.Log = new OutputWindowWriter();

class OutputWindowWriter : System.IO.TextWriter
{
    public override void Write(char[] buffer, int index, int count)
    {
        System.Diagnostics.Debug.Write(new String(buffer, index, count));
    }

    public override void Write(string value)
    {
        System.Diagnostics.Debug.Write(value);
    }

    public override System.Text.Encoding Encoding
    {
        get { return System.Text.Encoding.Default; }
    }
}