473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Calrification on number of columns fetched to server memory

Hello,

I need a clarification on the mechanism of sql server fetches records
to memory (buffer)

Example: A Table ( Table1 ) having 10 Columns
(column1,column2,column3,column4 etc)

When SELECT column1,column2 FROM Table1 is executed

Whether all columns are trasnferred to the server memory from the disk

OR only column1 and column2 are read from disk to memory .

My assumption is that, entire page (8K) containg the rows with all the
colunmns are transferred to the memory and from the memory the select
columns are displayed .

Please confirm

Thanks

M A Srinivas

Oct 4 '06 #1
1 1135
My assumption is that, entire page (8K) containg the rows with all the
colunmns are transferred to the memory and from the memory the select
columns are displayed .
Correct. Keep in mind that non-clustered index pages can also be used and
are typically more dense than data pages. A composite index on column1 and
column2 will cover your query so the optimizer will probably choose to scan
that index rather than the entire table.

--
Hope this helps.

Dan Guzman
SQL Server MVP

<ma******@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
Hello,

I need a clarification on the mechanism of sql server fetches records
to memory (buffer)

Example: A Table ( Table1 ) having 10 Columns
(column1,column2,column3,column4 etc)

When SELECT column1,column2 FROM Table1 is executed

Whether all columns are trasnferred to the server memory from the disk

OR only column1 and column2 are read from disk to memory .

My assumption is that, entire page (8K) containg the rows with all the
colunmns are transferred to the memory and from the memory the select
columns are displayed .

Please confirm

Thanks

M A Srinivas

Oct 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: elams | last post by:
How to generate a seq number in TSQL. My need is for every record insert ,I need to insert a seq number paded with letter 'I'. Please help me. Adv Thanks mate -- Posted via...
0
by: D. Dante Lorenso | last post by:
I need to know that original number of rows that WOULD have been returned by a SELECT statement if the LIMIT / OFFSET where not present in the statement. Is there a way to get this data from PG ?...
5
by: Shane | last post by:
I wonder if someone has any ideas about the following. I am currently producing some reports for a manufacturing company who work with metal. A finished part can contain multiple sub-parts to...
5
by: JeremiahOSullivan | last post by:
Hi I am looking at getting a large number of records (1.8m) into a datatable.The data resides in SQL Server, but can be moved to csv,xml if required (for performance). Is this type of load,...
6
by: kilter | last post by:
Anyone know of a routine that will return the number of rows and columns in a matrix?
5
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected...
1
by: mamun | last post by:
Hi All, I have an asp page that displays the results in Excel in the browser. It has about 40 columns and sometimes records can grow upto 1100. For small number of records I do not get any...
2
by: Nacho | last post by:
Hi, I'm designing a new database and I have a doubt in which surely you can help me. I'm storing in this database historical data of some measurements and the system in constantly growing, new...
12
by: mohitanchlia | last post by:
I have written a program that loads a file having 3 columns into a map. Here is the declaration: struct strE { char iEID; char acEN; int iDed; };
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.