4.3 First Command in a Session
This example illustrates a DATA packet as the first command in a session.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SMID |
FLAGS |
SID |
|||||||||||||||||||||||||||||
|
LENGTH |
|||||||||||||||||||||||||||||||
|
SEQNUM |
|||||||||||||||||||||||||||||||
|
WNDW |
|||||||||||||||||||||||||||||||
|
DATA (variable) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
SMID (1 byte): 0x53
FLAGS (1 byte): 0x08 (DATA packet)
SID (2 bytes): 0x0005 (session identifier (SID) equals 5)
LENGTH (4 bytes): 0x00000060
SEQNUM (4 bytes): 0x0000001
WNDW (4 bytes): 0x0000004
DATA (variable): 0x01 01 00 50 00 00 01 00 16 00 00 00 12 00 00 00 02 00 00 00 00 00 00 00 00 00 01 00 00 00 53 00 45 00 54 00 20 00 51 00 55 00 4F 00 54 00 45 00 44 00 5F 00 49 00 44 00 45 00 4E 00 54 00 49 00 46 00 49 00 45 00 52 00 20 00 4F 00 46 00 46 00 (TDS request)