jueves, 29 de septiembre de 2011

Screencast SQL Server Particionamiento Cubos y BD Relacional

En este screencast vemos el particionamiento de Cubos en SQL Server, así como el particionamiento de bases de datos relacionales,

http://www.youtube.com/watch?v=hlDBcW2Tvn0

 

 

 

 

Saludos,

 

 

Eduardo Castro
http://tiny.cc/comwindows

Screencast SQL Server Particionamiento Cubos y BD Relacional

En este screencast vemos el particionamiento de Cubos en SQL Server, así como el particionamiento de bases de datos relacionales,

http://www.youtube.com/watch?v=hlDBcW2Tvn0

 

 

 

 

Saludos,

 

 

Eduardo Castro
http://tiny.cc/comwindows

Screencast SQL Server OLAP Storage Model y Agregaciones

En este screencast vemos las distintas opciones de almacenamiento que existe en las bases de datos multidimensionales de SQL Server: MOLAP, ROLAP, HOLAP. También vemos el cálculo de agregaciones en los cubos.

http://www.youtube.com/watch?v=paPq2tFFXqA

 

 

 

Saludos

Eduardo Castro
http://tiny.cc/comwindows

martes, 20 de septiembre de 2011

Introducción a algunos cambios en SQL Server Denali

SQL Server Denali introduce una serie de cambios a nivel del motor de base de datos así como a nivel del motor multidimensional, en este post veremos algunos de esos cambios.

La versión disponible actualmente del SQL Server Denali es el CTP3, el cual se puede descargar desde http://www.microsoft.com/sqlserver/en/us/future-editions.aspx 

También existe una guia que introduce los cambios en Denali, esta guía está disponible en http://www.microsoft.com/download/en/details.aspx?id=27069

Hay aspectos que han cambiado en SQL Denali, tales como:

  • SMSS VS2010 shell
  • Transact-SQL debugging and IntelliSense
  • Transact-SQL Snippets
  • Contained databases
  • SEQUENCE objects
  • Circular arc segment (spatial)
  • User-defined server roles

Los parámetros de inicio también pueden ser editados de mejor forma, tal y como se muestra en la imagen siguiente:

image

Los cambios en T-SQL incluyen lo siguiente:

 

  • Contained Databases
  • FileTable Storage
  • Sequence Generators
  • Paging
  • UTF-16 collation (SC)
  • Error Handling (THROW)
  • Circular arc segment (spatial)

Además en Denali, se pueden definir roles de servidor personalizados, estos roles permiten especificar acceso a objetos a nivel de servidor tales como:

  • Endpoints
  • Logins
  • Servers
  • Availability groups and Any other user-defined server roles

El T-SQL para crear este nuevo tipo de roles es el siguiente:

USE [master]

GO

-- Crear User-defined server role DEMO

CREATE SERVER ROLE [DEMO] AUTHORIZATION [sa]

GO

-- dar permisos en el local SQL server

GRANT ADMINISTER BULK OPERATIONS TO [DEMO]

GO

En otros blog post veremos más sobre SQL Denali.

 

Saludos,

Eduardo Castro Martinez

Microsoft SQL Server MVP

martes, 6 de septiembre de 2011

SQL Azure Escalamiento y Federacion

Les comparto un screencast en el cual vemos las opciones de escalamiento disponibles en SQL Azure, además vemos las nuevas características de escalamiento automático conocido como federación de SQL Azure que estará disponible a finales del 2011. El URL del video es http://www.youtube.com/watch?v=3h__LMa0sWQ

 

 

 


Saludos,

 

Eduardo Castro Martinez

Microsoft SQL Server MVP

sábado, 13 de agosto de 2011

Wait Stats in SQL Server

When you are optimizing a SQL Server installation you must look at the Wait Stats in SQL Server and the easier way to check them is using the following DMVs  sys.dm_os_waiting_tasks, sys.dm_exec_requests and sys.dm_os_wait_stats.

The sys.dm_os_wait_stats contains aggregated information about wait statistics for SQL Server, you must be aware that these wait statistics are aggregated at the server level, and there is no detail level available in this DMV. The following scripts queries this DMV.

SELECT *
FROM sys.dm_os_wait_stats
ORDER BY wait_time_ms DESC

image

The previous query returns the all waits with an accumulated wait time expressed in milliseconds. Because these wait stats are cumulative since the SQL Server service started to run, one way to clear these counters is to execute the DBCC SQLPERF(“sys.dm_os_wait_stats”,CLEAR) and from this point SQL Server begins to accumulate the wait stats again.

Best Regards,

Eduardo Castro

Microsoft SQL Server MVP

http://tiny.cc/comwindows