Top Banner
INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015 1 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes Business Intelligence Development Studio INTEGRATION SERVICES Poblando la Dimensión Clientes
13

Sesion3 1 SQL Server Integration Services Poblando Clientes

Apr 08, 2016

Download

Documents

buen tema que queiro comprartir sql server
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

1 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

Business Intelligence Development Studio

INTEGRATION SERVICES

Poblando la Dimensión Clientes

Page 2: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

2 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

1. Luego de haber configurado el elemento “Poblando Agencias”, ahora vamos a crear otra “Tarea Flujo de Datos”:

2. Arrastrar el elemento “Tarea Flujo de datos” al “Flujo de Control”

Page 3: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

3 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

3. Cambiar el nombre de “Tarea Flujo de datos” a “Poblando Clientes”, haciendo clic derecho sobre el elemento y escoger “Cambiar nombre”:

Page 4: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

4 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

4. Unir a “Limpieza DataMart” arrastrando la flecha hacia la entrada del componente “Po-blando Clientes”:

5. Doble clic sobre el componente “Poblando Clientes” y arrastrar el “Origen de OLE DB” y el “Destino de OLE DB”:

Page 5: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

5 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

6. Unir el Origen y Destino. Luego cambiar el nombre a “Origen Clientes” y “Destino Clien-tes”:

7. Doble clic sobre “Origen Clientes”:

Page 6: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

6 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

8. En Administrador de Conexiones OLE DB escogemos OLTP:

9. En Modo de acceso a datos, escogemos “Comando SQL”:

Page 7: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

7 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

10. Vamos a hacer un paréntesis para observar la Tabla “dbo.Customers” de la base de datos “Northwind_oltp”:

11. Donde observamos que en Región existen campus con “Null”, por lo tanto en la consulta vamos a decir que cuando encuentre un campo “Null” lo exporte como “Otros” ingresando el comando SQL:

SELECT *, ISNULL(Region,'Otros') AS Regiones FROM Customers

Page 8: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

8 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

12. Hacemos clic en “Vista Previa” y nos muestra:

13. En la configuración de “Columnas” dejar los check por defecto y clic en “Aceptar”:

Page 9: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

9 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

14. Doble clic sobre “Destino Clientes”:

15. Elegimos la base de datos OLAP y en el modo de acceso a datos “Tabla o vista”. Luego en el Nombre de la Tabla escogemos “dbo.clientes_dim”:

Page 10: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

10 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

16. Clic en “Asignaciones”:

17. Eliminar la asignación de Región Origen con región Destino:

Page 11: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

11 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

18. Porque lo correcto es unir Regiones Origen con región Destino, así como los distintos cam-pos, quedando de la siguiente manera:

Luego, clic en Aceptar.

19. Finalmente, presionamos “F5” o clic en ejecutar:

Page 12: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

12 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

20. Observamos que agregó los 91 registros de OLTP a OLAP:

21. Tal como se muestra en la Tabla “dbo.clientes_dim” de la base de datos Northwind_OLAP, donde los “null” del campo región fueron cambiados a “Otros”:

Page 13: Sesion3 1 SQL Server Integration Services Poblando Clientes

INTELIGENCIA DE NEGOCIOS ULADECH CATÓLICA – 2015

13 Ing. Donny Acosta Benites Integration Services – Poblando la Dimensión Clientes

22. Clic en “Stop” para finalizar el proceso de exportación.