Mostrando entradas con la etiqueta SQL Azure. Mostrar todas las entradas
Mostrando entradas con la etiqueta SQL Azure. Mostrar todas las entradas

martes, 3 de mayo de 2016

Auditoria de operaciones personalizada con Temporal Tables

Con SQL Server 2016 o Azure SQL Databases tenemos la nueva característica Temporal Tables, con la que podemos hacer un montón de cosas. Pese a que está destinada a mantener de forma muy facil atributos lentamente cambiantes o SCD type 2 para datawarehouse, en este caso propongo una utilización bastante interesante para implementar auditoria de operaciones personalizada, con poco esfuerzo de desarrollo.

La idea es que con esta solución podamos hacer una query a nuestra tabla para saber la vida que ha tenido una determinada Fila. Tras esto, la idea por tanto es obtener una tupla como la que veis:

Tabla resultados auditoria

  • El día 1 de Mayo Pepe, insertó el valor “Hola”
  • El día 2 de Mayo Pepe actualizó su valor a “Adiós”
  • El día 3 de Mayo, Juan atualizó su valor a “Textonuevo”
  • El día 4 de Mayo, Andres borró la fila

Continua leyendo aqui…

jueves, 11 de septiembre de 2014

Deadlock en SQL Database

En SQL Databases (a.k.a SQL Azure) es posible obtener información sobre deadlocks producidos en nuestras bases de datos sin tener que crear trazas de profiler ni eventos extendidos (que como sabemos a fecha de hoy no es posible). Si quieres ver cómo,  CONTINUA LEYENDO….
image *Deadlock graph en SQL Database

lunes, 4 de julio de 2011

SolidQ Virtual Conference

SolidQ está apunto de empezar un evento gratuito global bastante interesante. Se trata de 14 sesiones de temática exclusívamente SQL Server con ponentes de renombre internacional y en diferentes idiomas (Portugues, Ingles y Castellano).

En la siguiente tabla se resumen dichos webcast.

Fecha

Horário

Ponente

Sesión

Idioma

05-jul

20h00

Fabiano Amorim

Entendendo Teorias Probabilísticas vulgo Estatísticas no SQL Server

Português

05-jul

21h00

Diego Nogare

Integrating your data in Maps using SSRS

Português

07-jul

20h00

Felipe Ferreira

SQL Server FastTrack 101: How can FastTrack make your data analysis run faster

Português

07-jul

21h00

Mark Tabladillo

Enterprise Data Mining for SQL Server Professionals

Inglês

12-jul

20h00

Diego Nogare

SQL Azure in practice

Portugês

12-jul

21h00

Eladio Rincón

Extended Events: where do you want to go?

Espanhol

14-jul

20h00

Fabiano Amorim

Operadores dos Planos de Execução

Português

14-jul

21h00

Felipe Ferreira

Learning from SQL Server FastTrack: What FastTrack can teach us about performance best practices?

Português

19-jul

20h00

Itzik Ben-Gan

Apply T-SQL Magic

Inglês

19-jul

21h00

Felipe Ferreira

Business Intelligence: O que é, e como pode lhe ajudar a ganhar um aumento!

 

21-jul

20h00

Diego Nogare

Business Intelligence in Cloud?

Português

21-jul

21h00

Fabiano Amorim

Influenciando o Query Optimizer além de sugestões de índices do SSMS

Português

26-jul

20h00

Nilton Pinheiro

Como utilizar e configurar o Microsoft iSCSI Target para montar um cluster SQL Server 2008

Português

28-jul

20h00

Jesús Gil

Y el rendimiento... ¿Dónde ha quedado? Oh... Y ahora ¿Quién podrá ayudarme?

Español

 

Si deseas ver mas detalle de las sesiones: http://www.solidq.com/squ/courses/Pages/SolidQ-Virtual-Conference.aspx

Y para inscribirte diréctamente: INSCRIVASE AQUI

jueves, 19 de mayo de 2011

SQLBCP2Azure: Transfiere datos eficientemente a SQL Azure facilmente

La herramienta SQLBCP2Azure es una herramienta de copia de datos eficiente entre SQL Server y SQL Server Azure y entre SQL Servers. Se trata de un reemplazo de la existente bcp.exe que viene con las herramientas cliente de SQL Server.

Los principales beneficios de utilizar esta herramienta son:

  • Ficheros de configuración persistentes ( xml )
  • Cifrado de passwords

Un ejemplo de configuración es el siguiente:

Create user table type
  1. <?xml version="1.0" encoding="utf-8" ?>
  2.             <SolidQBCP ContinueOnError ="False"
  3.            BatchSize="4096"
  4.            NotifyAfter="10000"
  5.            Hints="TABLOCK,CHECK_CONSTRAINTS"
  6.            TimeOut="0">
  7. <!--
  8.   ECB:             
  9.   How to encrypt a password:
  10.           1: SolidQ.BCP.exe -GenerateKeyEncryption -output c:\path\outputKey.txt
  11.           2: SolidQ.BCP.exe -EncryptPassword password -Key c:\path\outputKey.txt  -Output c:\path\outputEncryptedPassword.txt
  12.           3: Copy in the "Password" tag of this XML (at destination or source, depending of what password are you encrypting)
  13.             the exact output of de c:\path\outputEncryptedPassword.txt
  14.           4: Copy in the CDATA section, the exact value that you will find at c:\path\outputKey.txt
  15.              Obviously, the two passwords must be generated with the same outputKey.txt :)
  16.              
  17.   Hints Values:
  18.     - TABLOCK
  19.     - CHECK_CONSTRAINTS
  20.     - FIRE_TRIGGERS
  21.     - KEEP_IDENTITY
  22.     - KEEP_NULLS
  23.     - USEINTERNALTRANSACTIONS
  24.     
  25.   TimeOut:
  26.     Number of econds to the operation to complete after error
  27.     if 0, no timeout specified
  28.     
  29.     
  30. -->
  31.     <credentialsforce_column_mapping="true">
  32.     <source
  33.       SqlInstance ="10.1.1.99\sql2008r2"
  34.       DatabaseName ="DWrendimiento"
  35.       IntegratedSecurity="false"
  36.       User="sa"
  37.       IsPasswordEncrypted="false"
  38.             Password ="password"
  39.       UseQueryAsSource="true"
  40.       TableName="snapshots.performance_counter_values"
  41.       Query="select * from snapshots.performance_counter_values"
  42.       ColumnNames="performance_counter_instance_id,snapshot_id,collection_time,formatted_value,raw_value_first,raw_value_second"
  43.       />
  44.     
  45.     <destination
  46.       SqlInstance ="(local)\sql2008r2_2"
  47.             DatabaseName ="borrame"
  48.       IntegratedSecurity="true"
  49.       User="enriquecatala"
  50.       IsPasswordEncrypted="false"
  51.       Password ="n5SoiTel+ulzJuz83IUkBA=="
  52.       TableName="dbo.performance_counter_values"
  53.       ColumnNames="performance_counter_instance_id,snapshot_id2,collection_time,formatted_value,raw_value_first,raw_value_second2"
  54.       />
  55.     
  56.     <key>
  57.       <![CDATA[example: s&=79"7. D1_  XB-k6N7mja-5-$z2'1kx@*:z7R[V(] zx3=v-Pd|}gq?['\8Qs{i}1DypEG[+'0o7kf+h,Iz@{g2V+w="sjg9\o!H0&T8 y7C0gb*8#@QjC0*?$~C*reB>:NL,0hMF#/:!Kq-1=FW=VM0<3O&TvCQ t@GHd-4&I$]J4.ecS1A\@]]>
  58.     </key>
  59.   </credentials>
  60. </SolidQBCP>

 

La herramienta ha sido liberada en codeplex bajo licencia Microsoft Public License (Ms-PL).

Para más información http://bcp2sqlazure.codeplex.com/

domingo, 23 de mayo de 2010

Impartiré sesión en el lanzamiento de SQL Server 2008 R2

Hola, tengo la suerte de poder impartir junto a mi compañero y amigo Enrique Puig, una sesión sobre SQL Server Azure en el lanzamiento oficial de SQL Server 2008 R2 que tendrá lugar en Madrid el próximo dia 14 de Junio.

Si deseas inscribirte aqui va el link directo

Para más información: http://www.microsoft.com/spain/sql/eventos/lanzamientos2008r2/index.aspx