MCPcopy Create free account
hub / github.com/fortra/impacket / _wrap_sql_batch_data

Method _wrap_sql_batch_data

impacket/tds.py:2653–2657  ·  view source on GitHub ↗

Prepend TDS 8.0 ALL_HEADERS to an already-encoded SQL_BATCH body.

(self, sql_text)

Source from the content-addressed store, hash-verified

2651 return all_headers
2652
2653 def _wrap_sql_batch_data(self, sql_text):
2654 """Prepend TDS 8.0 ALL_HEADERS to an already-encoded SQL_BATCH body."""
2655 if self.tds8:
2656 return self._build_tds8_sql_batch_headers() + sql_text
2657 return sql_text
2658
2659 def _build_batch_data(self, cmd):
2660 """Build SQL_BATCH packet data, prepending ALL_HEADERS for TDS 8.0."""

Calls 1