Ver Mensaje Individual
  #18 (permalink)  
Antiguo 19/09/2007, 13:10
Avatar de Andres95
Andres95
Colaborador
 
Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 19 años, 5 meses
Puntos: 38
Re: Orden especifico

No, no lo menciona y al parecer, no es del todo cierto compañero.

Usando el tipo de dato Tabla - SQL 2000

Código:
...
One factor that you should not take into account is the tradeoff
 between disk space and RAM usage. Many references on the Web 
claim that table variables are implemented purely in memory, as 
opposed to temporary tables which are actually written to a 
physical database. In fact, both table variables and temporary 
tables are created in the tempdb database. After all, SQL Server 
doesn't know how much data you're going to try to put into a table 
variable; what if you want to put in more than you have RAM 
available? In any case, SQL Server will cache small amounts of data 
in RAM no matter which means you use to declare the table.
Y lo peor, es que tambien las temporales muestran el mismo comportamiento... jejejeje (Preguntas Frecuentes de SQL 2000 - Base de Conocimiento Microsoft )

Código:
...
Q4: Are table variables memory-only structures that are assured 
better performance as compared to temporary or permanent tables, 
because they are maintained in a database that resides on the 
physical disk?

A4: A table variable is not a memory-only structure. Because a table 
variable might hold more data than can fit in memory, it has to have 
a place on disk to store data. Table variables are created in the 
tempdb database similar to temporary tables. If memory is available, 
both table variables and temporary tables are created and 
processed while in memory (data cache).
Pero no te preocupes, no creo que sea el caso de Lobo2024 (un servidor con millones de transacciones por minuto con miles de conexiones activas), al menos no lo ha comentado. Y si asi fuera, seria cuestion de que el mismo realizara las pruebas correspondientes para aportar los elementos concretos necesarios para que alguien lo pueda apoyar debidamente en esa situacion ya que ademas intervendrian otros factores como la configuracion del servidor de sql asi como del sistema operativo y hardware, sin mencionar la arquitectura de la aplicacion, y bueno en este sitio no somos consultores especializados sino una comunidad de apoyo gratuito.

Y para colmo de males parece ser que Lobo2024 ni siquiera va a utilizar la solucion propuesta.

Saludos y por aqui andamos aprendiendo y aportando lo que se pueda.

Suerte!
__________________
La sencillez y naturalidad son el supremo y último fin de la cultura...
--
MCTS : SQL Server 2008, .NET Framework 3.5, ASP.NET Applications.

Última edición por Andres95; 19/09/2007 a las 14:03