How can I decode SQL Server traffic with wireshark?

后端 未结 4 1561
离开以前
离开以前 2020-12-29 06:28

I can capture the packets using wireshark, but I can\'t decode the stream into anything intelligible. This bug suggests that maybe this isn\'t possible in SQL Server 2005 o

4条回答
  •  既然无缘
    2020-12-29 07:00

    Not wireshark, but for me the Microsoft Message Analyzer worked great for that.

    To get all the sent commands

    1. Start a new session
    2. Add Live Trace as as Data Source
    3. Select Scenario (I chose Local Network Interfaces)
    4. Enter a session filter expression like *address == 10.1.2.129 to filter only traffic to your sql server.
    5. Click start
    6. Right click on column header in the massage table and select Add columns...
    7. Add TDS > SQLBatch > SqlBatchPacketData > SQLText

    This should give you something like the following

    Unfortunately there is no autoscroll implemented at the moment, but you can sort by timestamp and have the new queries popping up at the top.

提交回复
热议问题