Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6802383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:13:00+00:00 2026-05-26T19:13:00+00:00

I am working on writing a high-performance data retrieval/storage class for my application that

  • 0

I am working on writing a high-performance data retrieval/storage class for my application that uses a SqlDataReader to retrieve data from a SQL server.

Out of curiosity, I wanted to know what form the data comes in from the SQL server. Characters? Binary? Some other form?

Unfortunately I cannot do any packet sniffing at my office, which is one way I think this answer could be found.

EDIT: The purpose of this question was to determine the format the data is retrieved in from SQL server to allow for as little manipulation as possible before placing it in a data structure.

This question is in relation to a previous question of mine where I found the difference between converting data formats into strings produces a significant impact on performance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:13:01+00:00Added an answer on May 26, 2026 at 7:13 pm

    The format is documented at Tabular Data Stream Protocol Specification. That being said, the protocol and wire format are largely irrelevant, if you retrieve so much data as to for the speed of transfer to matter you are already deep down the wrong path.

    Make sure your data access is optimized, and most importantly your data model is well designed and matches the workload expected (in other words: have covering indexes for the critical queries).

    If you retrieve large chunks of data (eg. media files stored in the database) then there are some specific ways to use the SqlCommand class, namely the SequentialAccess behavior flag:

    Provides a way for the DataReader to handle rows that contain columns
    with large binary values. Rather than loading the entire row,
    SequentialAccess enables the DataReader to load data as a stream. You
    can then use the GetBytes or GetChars method to specify a byte
    location to start the read operation, and a limited buffer size for
    the data being returned.

    For an example of how to use this, see Download and Upload images from SQL Server via ASP.Net MVC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a system that requires high file I/O performance (with C#). Basically,
It has come down from high places that a webapp I've been working on
I am working on a VB6 application that uses an ADODB.Recordset object to dump
I'm working on writing a simple database that uses Google Fusion Tables to store
I am working on writing a Highly Available agent for JBoss Application Server to
I am working on writing a network application in C++ on the Linux platform
I'm working on writing a small WSGI application using Bottle and SqlAlchemy and am
I'm working on writing a small application using the WPF MediaKit , and I
I am working on writing a simple python application for linux (maemo). However I
I'm currently in the process of writing an application that has quite a number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.