<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>sql-server &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/sql-server/</link>
	<description>Feed of posts on WordPress.com tagged "sql-server"</description>
	<pubDate>Fri, 27 Nov 2009 10:22:32 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Soporte de failover clustering de SQLServer sobre virtualización con Hyper-V]]></title>
<link>http://margotu.wordpress.com/2009/11/27/soporte-de-failover-clustering-de-sql-server-sobre-virtualizacion-con-hyper-v/</link>
<pubDate>Fri, 27 Nov 2009 08:08:01 +0000</pubDate>
<dc:creator>Javier Aparicio</dc:creator>
<guid>http://margotu.wordpress.com/2009/11/27/soporte-de-failover-clustering-de-sql-server-sobre-virtualizacion-con-hyper-v/</guid>
<description><![CDATA[Ya está disponible el soporte de las arquitecturas de fileover cluster de SQL Server en un entorno d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ya está disponible el soporte de las arquitecturas de fileover cluster de SQL Server en un entorno de virtualización. Esto significa que ahora existe soporte cuando se crea los nodos del clúster de SQL Server corriendo como máquinas virtuales.</p>
<p><!--more--></p>
<p>De esta manera se puede lograr alta disponibilidad del SQL Server cuando se ejecuta en un entorno virtualizado con los beneficios de ambos, la virtualización y la alta disponibilidad del fileover cluster.</p>
<p>El cluster esta soportado para SQL Server 2005 y SQL Server 2008 en una máquina virtual Windows Server 2008 con Hyper-V, Microsoft Hyper-V Server 2008 y configuraciones certificadas por el Server Virtualization Validation Program (SVVP) siempre se cumplen los siguientes requisitos:</p>
<p>El sistema operativo corriendo en la máquina virtual es Windows Server 2008 o superior</p>
<p>El entorno de virtualización cumple con los requisitos tal como se documenta en “La Política de soporte técnico de Microsoft para Windows Server 2008 Failover Clusters”.</p>
<p>Mas detalles en:</p>
<p><a title="Support policy for Microsoft SQL Server products that are running in a hardware virtualization environment" rel="nofollow" href="http://support.microsoft.com/?id=956893" target="_blank">Support policy for Microsoft SQL Server products that are running in a hardware virtualization environment</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SQL Server - How to reset an IDENTITY value]]></title>
<link>http://decoding.wordpress.com/2009/11/27/sql-server-how-to-reset-an-identity-value/</link>
<pubDate>Fri, 27 Nov 2009 07:11:54 +0000</pubDate>
<dc:creator>decoding</dc:creator>
<guid>http://decoding.wordpress.com/2009/11/27/sql-server-how-to-reset-an-identity-value/</guid>
<description><![CDATA[This is something that I am frequently being asked about, so I decided to post the simple solution. ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is something that I am frequently being asked about, so I decided to post the simple solution.</p>
<p>For SQL Server table columns that have the IDENTITY property enabled, their respected values are being auto-incremented according to the IDENTITY&#8217;s incremental value.</p>
<p>The seed value is the value that is used for the very first row inserted into the table.<br />
Therefore, if at some point all table records are cleared, there might be the need to reset the seed value back to zero or some other value.</p>
<p>Here is how we can reset the IDENTITY value with a simple SQL statement:</p>
<pre class="brush: sql;">DBCC CHECKIDENT ('table-name', RESEED, new-value)</pre>
<p>It has to be mentioned that the next value that will be inserted on the table would be the value of &#8216;new-value&#8217; + 1. So for example if the new-value is 0, the next row value will be 1.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Today]]></title>
<link>http://ngocvietcode.wordpress.com/2009/11/27/today/</link>
<pubDate>Fri, 27 Nov 2009 06:23:55 +0000</pubDate>
<dc:creator>ngocvietcode</dc:creator>
<guid>http://ngocvietcode.wordpress.com/2009/11/27/today/</guid>
<description><![CDATA[5) Enable SQL Server Browser Service If SQL Server is not installed as default instance but instead ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>5) Enable SQL Server Browser Service</strong></p>
<p>If SQL Server is not installed as default instance but instead installed as named instance and also if there is no specific TCP/IP port configured, it will give rise to the error that is being discussed in this article. If SQL Server Browser service is enabled, it will allow the server to be connected through dynamic TCP/IP port. Enabling this service is a one-time process, as on enabling it once it will apply to all the instances installed on the same server.</p>
<p>Go to All Programs &#62;&#62; Microsoft SQL Server 2008 &#62;&#62; Configuration Tools &#62;&#62; SQL Server Configuration Manager &#62;&#62; SQL Server Browser.</p>
<p><a title="Cờ lích hia" href="http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/" target="_self">http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SQLAuthority News - Subscribe to Blog - Search a Blog]]></title>
<link>http://blog.sqlauthority.com/2009/11/27/sqlauthority-news-subscribe-to-blog-search-a-blog/</link>
<pubDate>Fri, 27 Nov 2009 01:30:48 +0000</pubDate>
<dc:creator>pinaldave</dc:creator>
<guid>http://blog.sqlauthority.com/2009/11/27/sqlauthority-news-subscribe-to-blog-search-a-blog/</guid>
<description><![CDATA[Quite often I get request if I send blog post in newsletter or through email. Here are few important]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Quite often I get request if I send blog post in newsletter or through email. Here are few important links.</p>
<p style="text-align:justify;">You can for sure get email of my post, however, I strongly suggest to visit blog as if there are any updates in my post they are reflected on blog.</p>
<p style="text-align:justify;"><a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=872428" target="_blank">Subscribe to blog post through email</a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/feed/" target="_blank">Subscribe SQLAuthority Feed</a></p>
<p style="text-align:justify;"><a href="http://search.sqlauthority.com/" target="_blank">Search SQLAuthority</a> &#8211; This is very powerful search. Give it a try.</p>
<p style="text-align:justify;"><a href="http://twitter.com/pinaldave" target="_blank">Follow me on Twitter</a></p>
<p style="text-align:justify;">Reference: <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Webcast sobre Roles y Responsabilidades en SQL Azure]]></title>
<link>http://ecastrom.wordpress.com/2009/11/26/webcast-sobre-roles-y-responsabilidades-en-sql-azure/</link>
<pubDate>Thu, 26 Nov 2009 22:06:43 +0000</pubDate>
<dc:creator>ecastrom</dc:creator>
<guid>http://ecastrom.wordpress.com/2009/11/26/webcast-sobre-roles-y-responsabilidades-en-sql-azure/</guid>
<description><![CDATA[Les comparto este webcast que impartí sobre la administración en SQL Server Azure. &#160; http://mse]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Les comparto este webcast que impartí sobre la administración en SQL Server Azure.</p>
<p>&#160;</p>
<p><a title="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032426192&#38;Culture=es-AR" href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032426192&#38;Culture=es-AR">http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032426192&#38;Culture=es-AR</a></p>
<p>&#160;</p>
<p><img border="0" alt="Webcast MSDN: Roles y responsabilidades de la administración de una base de datos de Microsoft SQL Data Services" src="https://mseventsww.microsoft.com/BannerImages/55111abe-bc36-45f2-996c-6516eaac97cc.jpg" /></p>
<p>Webcast MSDN: Roles y responsabilidades de la administración de una base de datos de Microsoft SQL Data Services </p>
<h4>Id. de evento: 1032426193</h4>
<p><a href="http://msevents.microsoft.com/Register.aspx?culture=es-AR&#38;EventID=1032426193&#38;CountryCode=AR">Registrarse</a></p>
<p><strong>Idiomas:</strong>     <br />Español.</p>
<p><strong>Productos:</strong>     <br />Windows Azure.</p>
<p><strong>Audiencia(s): </strong>    <br />Programador/desarrollador de programas.</p>
<p><strong>Moderador(es): </strong></p>
<p>Eduardo Castro</p>
<p><b>Duración:</b>     <br />60 Minutos</p>
<p><strong>Fecha de Inicio:</strong></p>
<p>miércoles, 18 de noviembre de 2009 06:00 p.m. Bogotá</p>
<p><b>Información general del Evento</b></p>
<p>Venga para conocer acerca de la administración de bases de datos en el nuevo mundo de SQL Data Services (SDS). Comenzando desde la creación de una cuenta SDS, conozca acerca de las herramientas y técnicas para suministrar cuentas, servidores y bases de datos. Vea cómo se administra la facturación. Aprenda cómo colaborar con sus colegas para construir un proyecto Azure que utiliza SDS. Mostramos los mecanismos para la administración de bases de datos tales como los inicios de sesión y permisos de administración. Vea cómo SDS automatiza las tediosas y complejas tareas administrativas (por ejemplo, los errores de la máquina) y cómo le permite invertir más tiempo en las importantes funciones de diseño de un DBA.</p>
<p><b>Opciones de registro</b></p>
<p><b>Id. de evento: </b>    <br />1032426193</p>
<p><a href="http://msevents.microsoft.com/Register.aspx?culture=es-AR&#38;EventID=1032426193&#38;CountryCode=AR">Registrarse</a></p>
<p>&#160;</p>
<p><img border="0" alt="Webcast MSDN: Roles y responsabilidades de la administración de una base de datos de Microsoft SQL Data Services" src="https://mseventsww.microsoft.com/BannerImages/4f1c9e3c-39bc-4e55-ad8d-0e39125e65c6.jpg" /></p>
<p>&#160;</p>
<p>Saludos, </p>
<p>Eduardo Castro Martinez – Microsoft SQL Server MVP </p>
<p><a href="http://mswindowscr.org">http://mswindowscr.org</a></p>
<p><a href="http://comunidadwindows.org">http://comunidadwindows.org</a></p>
<p>Costa Rica </p>
<p>Technorati Tags: <a href="http://technorati.com/tags/SQL+Server">SQL Server</a></p>
<p>LiveJournal Tags: <a href="http://www.livejournal.com/interests.bml?int=SQL+Server">SQL Server</a></p>
<p>del.icio.us Tags: <a href="http://del.icio.us/popular/SQL+Server">SQL Server</a></p>
<p><a href="http://ecastrom.blogspot.com">http://ecastrom.blogspot.com</a></p>
<p><a href="http://ecastrom.wordpress.com">http://ecastrom.wordpress.com</a></p>
<p><a href="http://ecastrom.spaces.live.com">http://ecastrom.spaces.live.com</a></p>
<p><a href="http://universosql.blogspot.com">http://universosql.blogspot.com</a></p>
<p><a href="http://todosobresql.blogspot.com">http://todosobresql.blogspot.com</a></p>
<p><a href="http://todosobresqlserver.wordpress.com">http://todosobresqlserver.wordpress.com</a></p>
<p><a href="http://mswindowscr.org/blogs/sql/default.aspx">http://mswindowscr.org/blogs/sql/default.aspx</a></p>
<p><a href="http://citicr.org/blogs/noticias/default.aspx">http://citicr.org/blogs/noticias/default.aspx</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Roles y responsabilidades en SQL Azure]]></title>
<link>http://ecastrom.wordpress.com/2009/11/26/roles-y-responsabilidades-en-sql-azure/</link>
<pubDate>Thu, 26 Nov 2009 22:01:35 +0000</pubDate>
<dc:creator>ecastrom</dc:creator>
<guid>http://ecastrom.wordpress.com/2009/11/26/roles-y-responsabilidades-en-sql-azure/</guid>
<description><![CDATA[En la siguiente presentación analizamos los roles y responsabilidades en la administración de una in]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>En la siguiente presentación analizamos los roles y responsabilidades en la administración de una infraestructura con SQL Azure.</p>
<p>&#160;</p>
<div style="text-align:left;width:425px;" id="__ss_2592801"><a style="display:block;font:14px helvetica,arial,sans-serif;text-decoration:underline;margin:12px 0 3px;" title="Roles y Responsabilidades en SQL Azure" href="http://www.slideshare.net/ecastrom/roles-y-responsabilidades-en-sql-azure">Roles y Responsabilidades en SQL Azure</a>
<div style="font-family:tahoma,arial;height:26px;font-size:11px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/ecastrom">Eduardo Castro</a>.</div>
</p></div>
<p>Saludos, </p>
<p>Eduardo Castro Martinez – Microsoft SQL Server MVP </p>
<p><a href="http://mswindowscr.org">http://mswindowscr.org</a></p>
<p><a href="http://comunidadwindows.org">http://comunidadwindows.org</a></p>
<p>Costa Rica </p>
<p>Technorati Tags: <a href="http://technorati.com/tags/SQL+Server">SQL Server</a></p>
<p>LiveJournal Tags: <a href="http://www.livejournal.com/interests.bml?int=SQL+Server">SQL Server</a></p>
<p>del.icio.us Tags: <a href="http://del.icio.us/popular/SQL+Server">SQL Server</a></p>
<p><a href="http://ecastrom.blogspot.com">http://ecastrom.blogspot.com</a></p>
<p><a href="http://ecastrom.wordpress.com">http://ecastrom.wordpress.com</a></p>
<p><a href="http://ecastrom.spaces.live.com">http://ecastrom.spaces.live.com</a></p>
<p><a href="http://universosql.blogspot.com">http://universosql.blogspot.com</a></p>
<p><a href="http://todosobresql.blogspot.com">http://todosobresql.blogspot.com</a></p>
<p><a href="http://todosobresqlserver.wordpress.com">http://todosobresqlserver.wordpress.com</a></p>
<p><a href="http://mswindowscr.org/blogs/sql/default.aspx">http://mswindowscr.org/blogs/sql/default.aspx</a></p>
<p><a href="http://citicr.org/blogs/noticias/default.aspx">http://citicr.org/blogs/noticias/default.aspx</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Checking MS SQL Server Stored Procedures]]></title>
<link>http://devio.wordpress.com/2009/11/26/checking-ms-sql-server-stored-procedures/</link>
<pubDate>Thu, 26 Nov 2009 17:25:52 +0000</pubDate>
<dc:creator>devio</dc:creator>
<guid>http://devio.wordpress.com/2009/11/26/checking-ms-sql-server-stored-procedures/</guid>
<description><![CDATA[When you create stored procedures, MS SQL Server does not really compile them and check them against]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>When you create stored procedures, MS SQL Server does not really compile them and check them against the system catalog, as for example Oracle does.<img src="http://static.devio.at/t.gif?http://devio.wordpress.com/2009/11/26/checking-ms-sql-server-stored-procedures" alt="" width="1" height="1" /></p>
<p>This makes it nearly impossible for TSQL developers to make sure their code executes without faults in production environments.</p>
<p>My approach to check stored procedures is to execute them with all parameters set to NULL inside a transaction that will be rolled back after stored procedure execution.</p>
<pre>BEGIN TRANSACTION
EXEC (@storedproc)
ROLLBACK TRANSACTION</pre>
<p>The simplest strategy is to iterate through all procedures, and execute them using this code inside a <a href="http://msdn.microsoft.com/en-us/library/ms179296.aspx" target="_blank">TRY &#8230; CATCH</a> block. If an error is raised, the CATCH block logs the <a href="http://msdn.microsoft.com/en-us/library/ms190358.aspx" target="_blank">error</a>.</p>
<p>However, when I ran the code in an actual development environment with lots of SPs (around 120), two problems occurred that needed to be dealt with:</p>
<ul>
<li>If any SQL statement run in Management Studio creates more than 100 result sets, you get the error message</li>
</ul>
<blockquote><p><a href="http://www.google.com/search?q=The+query+has+exceeded+the+maximum+number+of+result+sets" target="_blank">The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed in the grid.</a></p></blockquote>
<ul>
<li>Therefore, we stored the results of analysed procedures in a temporary table, which needs to be created only once <a href="http://sqlservercodebook.blogspot.com/2008/03/check-if-temporary-table-exists.html" target="_blank">if it does not yet exist</a></li>
<li>If you execute several stored procedures in a row, and each one probably has some imperfect transaction handling code, you need to make sure to rollback all open transactions.</li>
</ul>
<pre>/*
DROP TABLE #p
DELETE FROM #p
*/

SET ANSI_WARNINGS OFF

IF OBJECT_ID('tempdb..#p') IS NULL
  CREATE TABLE #p (
    ProcedureName sysname COLLATE Latin1_General_CI_AS,
    ErrorNumber int,
    ErrorSeverity int,
    ErrorState int,
    ErrorProcedure sysname COLLATE Latin1_General_CI_AS NULL,
    ErrorLine int,
    ErrorMessage NVARCHAR(2048) COLLATE Latin1_General_CI_AS
  )

DECLARE @proc sysname, @params VARCHAR(1000), @exec VARCHAR(1000)

DECLARE c CURSOR for
SELECT	p.name, SUBSTRING(REPLICATE(', null', COUNT(pa.name)), 3, 1000)
FROM sys.procedures p
LEFT OUTER JOIN sys.parameters pa  ON  p.object_id = pa.object_id
LEFT OUTER JOIN #p ON p.name = #p.ProcedureName
WHERE	p.name LIKE '%stored-procedure-name-filter%'
AND	#p.ProcedureName IS null
GROUP BY p.name
ORDER BY p.name

OPEN c
FETCH c INTO @proc, @params

WHILE @@FETCH_STATUS = 0 BEGIN

  PRINT @proc

  WHILE @@TRANCOUNT &#62; 0
    ROLLBACK

  INSERT INTO #p (ProcedureName) VALUES (@proc)

  BEGIN TRANSACTION

  BEGIN TRY
    SET @exec = 'EXEC ' + @proc + ' ' + ISNULL(@params, '')
    EXEC (@exec)
    ROLLBACK TRANSACTION
  END TRY
  BEGIN CATCH
    WHILE @@TRANCOUNT &#62; 0
      ROLLBACK

    UPDATE #p
    SET ErrorNumber = ERROR_NUMBER(),
      ErrorSeverity = ERROR_SEVERITY(),
      ErrorState = ERROR_STATE(),
      ErrorProcedure = ERROR_PROCEDURE(),
      ErrorLine = ERROR_LINE(),
      ErrorMessage = ERROR_MESSAGE()
    WHERE ProcedureName = @proc
  END CATCH

  FETCH c INTO @proc, @params
END

CLOSE c
DEALLOCATE c

SELECT * FROM #p
WHERE ErrorNumber IS NOT NULL
AND ErrorNumber &#60;&#62; 515</pre>
<p>Some final comments:</p>
<ul>
<li>I left the DROP and DELETE statements in TSQL comments to make it easier to clear or delete the temp table.</li>
<li>The collation declarations are necessary for the JOIN condition if your working db and your temp db have different collations.</li>
<li>If the script exits with the 100-result-sets error, rerun it until it only shows the check result for all stored procedures.</li>
<li>ErrorNumber 515 is the error indicating a NULL value has been inserted into a not-nullable column. Since the script creates this error condition, we need not list it.</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SQL 2005 Mirroring]]></title>
<link>http://margotu.wordpress.com/2009/11/26/sql-2005-mirroring/</link>
<pubDate>Thu, 26 Nov 2009 16:04:43 +0000</pubDate>
<dc:creator>Javier Aparicio</dc:creator>
<guid>http://margotu.wordpress.com/2009/11/26/sql-2005-mirroring/</guid>
<description><![CDATA[Este artículo se referirá a la implementación de mirroring para SQL SERVER 2005. El foco es la toler]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div>
<p>Este artículo se referirá a la implementación de mirroring para SQL SERVER 2005. El foco es la tolerancia a fallos, no la alta disponibilidad. Para este artículo, nos basamos en un ejemplo sobre 2 servidores SQL 2005.</p>
<p>Entorno: tenemos un servidor SQL SERVER 2005 al cual queremos dotar de tolerancia a fallos sin failover automático(para el failover automático, entraría en juego un tercer servidor (witness)). Así pues tenemos dos “instancias”, principal y mirror.</p>
<p><!--more--></p>
</div>
<div>
<p><img title="sqlserverLOGO" src="http://www.rubenortiz.es/wp-content/uploads/2009/11/sqlserverLOGO.png" alt="sqlserverLOGO" width="220" height="220" /></p>
<p>&#160;</p>
<p>Hacemos un backup completo de la base de datos a replicar. Movemos el backup al mirror y restauramos la base de datos:</p>
<ul>
<li>RecoveryModel -&#62; FULL</li>
<li>RESTORE WITH NORECOVERY (en Options)</li>
<li>Restaurar con el mismo tipo de cotejamiento</li>
</ul>
<p>Una vez restaurada, podemos ir al principal y iniciar la configuración del Mirror. Vamos a Databases, seleccionamos la base de datos en cuestión, botón derecho y clickamos “Mirror”. Nos aparece una segunda ventana, clickamos “Configure Security”. Nos aparece un Wizard que, básicamente, nos pide las credenciales necesarias para poder conectarnos a los dos SQL SERVER, el Principal y el Mirror. Decimos que no, a la opción de “Witnees”, en español, testigo.</p>
<p>Si todo ha ido bien, sólo nos falta iniciar el mirroring entre ambos servidores. Clickamos “Start Mirroring”. El mensaje que nos muestre en “Status” ha de ser, al poco de unos minutos, “Synchronized: the databases are fully synchronized”.</p>
<p>Veremos que en el servidor de mirror, nos aparece la base de datos pero no es operativa, si intentamos ver sus propiedades nos aparecerá un error. Es normal. Volverá a pasar a modo normal cuando acabemos en algún punto el mirroring.</p>
<p><strong>Monitorización</strong></p>
<p>Es recomendable monitorizar en ambos el tiempo de CPU y añadir algunos Perf Counters según el rol:</p>
<p><strong>Perfmon Counters</strong></p>
<ul>
<li>Bytes Received/sec: El número de bytes recibidos del otro servidor, por segundo</li>
<li>Bytes Sent/sec: El número de bytes enviados al otro servidor, por segundo</li>
<li>Log Bytes Received/sec: El número de bytes de log recibidos del principal, por segundo</li>
<li>Log Bytes Sent/sec: El número de bytes de log enviados al mirror, por segundo</li>
<li>Log Send Queue KB: El número de kilobytes de log que no han sido enviados al mirror</li>
<li>Pages Sent/sec: El número de páginas de log transaccionales por segundo</li>
<li>Receives/sec: El número de mensajes de mirroring recibidos por segundo</li>
<li>Redo Bytes/sec: The number of bytes of log rolled forwards per second on the mirror</li>
<li>Redo Queue KB: El número de bytes  de log transaccional que permanecen en cola para ser aplicados en el mirror</li>
<li>Send/Receive: Ack Time</li>
<li>Sends/sec: Número de mensajes de mirroring enviados por segundo</li>
<li>Transaction Delay: El retraso mientras el mirror intenta hacer un commit de la transacción</li>
</ul>
<p>Transaction Delay es uno de los contadores a monitorizar, nos muestra cuanto tardan las transacciones en ser “comprometidas” (to be committed). Si este contador crece, puede haber un problema en la red o en el espejo. Podría llegar a haber una degradación en el servicio que afectase a los usuarios del principal.</p>
<p>Otro contador a monitorizar en el principal, es el Log Send Queue KB, que muestra cuanto log no ha sido enviado al espejo. Este contador puede aumentar fácilmente, en casos especiales como una reconstrucción de un índice (un montón de tráfico de log en un corto período de tiempo). Si este valor aumenta demasiado puede suponer un problema en el caso de el principal sufriese un problema grave, ya que, muchas transacciones no se habrían realizado en el espejo.</p>
<p>Desde la perspectiva del mirror, el Redo Queue KB es el contador principal. Muestra cuantos KB han sido recibidos en el mirror pero no aplicados todavía en la base de datos. Es fácil deducir los problemas resultantes de esto. Este contador es importante ya que nos muestra cuanto va por detrás el espejo del principal.</p>
<p><strong>Vistas</strong></p>
<ul>
<li>sys.database_mirroring</li>
<li>sys.database_mirroring_endpoints</li>
<li>sys.database_mirroring_witnesses</li>
<li>sys.dm_db_mirroring_connections</li>
</ul>
<p>database_mirroring contiene información sobre todos los espejos configurados y el estado actual, dm_db_mirroring_connections tiene información sobre el tráfico experimentado por el principal-mirror.</p>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Performance counters לניטור שרת SQL Server]]></title>
<link>http://kinglior.wordpress.com/2009/11/26/performance-counters-%d7%9c%d7%a0%d7%99%d7%98%d7%95%d7%a8-%d7%a9%d7%a8%d7%aa-sql-server/</link>
<pubDate>Thu, 26 Nov 2009 13:40:53 +0000</pubDate>
<dc:creator>Lior King</dc:creator>
<guid>http://kinglior.wordpress.com/2009/11/26/performance-counters-%d7%9c%d7%a0%d7%99%d7%98%d7%95%d7%a8-%d7%a9%d7%a8%d7%aa-sql-server/</guid>
<description><![CDATA[מערכת ההפעלה Windows על כל שלל גרסאותיה מספקת כלי ניטור פשוט ויעיל הנקרא Performance monitor או Perf]]></description>
<content:encoded><![CDATA[מערכת ההפעלה Windows על כל שלל גרסאותיה מספקת כלי ניטור פשוט ויעיל הנקרא Performance monitor או Perf]]></content:encoded>
</item>
<item>
<title><![CDATA[Recuperar un número limitado de registros en una consulta]]></title>
<link>http://edusanver.wordpress.com/2009/11/26/recuperar-un-numero-limitado-de-registros-en-una-consulta/</link>
<pubDate>Thu, 26 Nov 2009 10:15:44 +0000</pubDate>
<dc:creator>Eduardo Sanchez Vera</dc:creator>
<guid>http://edusanver.wordpress.com/2009/11/26/recuperar-un-numero-limitado-de-registros-en-una-consulta/</guid>
<description><![CDATA[Aparte de las cláusulas especificas de cada base de datos, la clave esta en utilizar ORDER BY ASC (o]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Aparte de las cláusulas especificas de cada base de datos, la clave esta en utilizar ORDER BY ASC (ordenación de menor a mayor) para los primeros resultados y ORDER BY DESC  (ordenación de mayor a menor) para los últimos resultados de la consulta. </p>
<p>Sea la consulta:</p>
<pre class="brush: sql;">
select primera_columna,
       segunda_columna
  from mitabla
</pre>
<p>En los ejemplos estamos recuperando los últimos 10 resultados de la consulta.</p>
<p>Para <strong>MS SQL Server</strong> ó <strong>MS Access</strong>, utiliza la cláusula <strong>TOP</strong>:</p>
<pre class="brush: sql;">
select TOP 10
       primera_columna,
       segunda_columna
  from mitabla
 order
    by primera_columna desc
</pre>
<p>Para <strong>MySQL</strong> ó <strong>PostgreSQL</strong>, utiliza la cláusula <strong>LIMIT</strong>:</p>
<pre class="brush: sql;">
select primera_columna,
       segunda_columna
  from mitabla
 order
    by primera_columna desc
 limit 10
</pre>
<p>Para <strong>Oracle</strong>, utiliza la cláusula <strong>ROWNUM</strong>:</p>
<pre class="brush: sql;">
select *
  from ( select primera_columna,
                segunda_columna
           from mitabla
          order
             by primera_columna desc )
 where rownum &#60;= 10
</pre>
<p>Para <strong>DB2</strong>, utiliza la cláusula <strong>FETCH FIRST</strong>:</p>
<pre class="brush: sql;">
select primera_columna,
       segunda_columna
  from mitabla
 order
    by primera_columna descending
fetch first 10 rows only
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Delete Duplicate Rows]]></title>
<link>http://melissasuciadi.wordpress.com/2009/11/26/delete-duplicate-rows/</link>
<pubDate>Thu, 26 Nov 2009 07:40:59 +0000</pubDate>
<dc:creator>melissasuciadi</dc:creator>
<guid>http://melissasuciadi.wordpress.com/2009/11/26/delete-duplicate-rows/</guid>
<description><![CDATA[There are some cases when you need to do cleanse on your duplicate data. Below I provide some way to]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>There are some cases when you need to do cleanse on your duplicate data.<br />
Below I provide some way to clean your data.</p>
<p>here&#8217;s the duplicate data</p>
<pre>--Customer's Telephone
declare @t table (ID int identity (1,1), FName varchar(20), LName Varchar(20), Phone varchar(10), CreatedAt smallDatetime)

insert into @t (FName, LName, Phone, CreatedAt)
select 'Mary', 'Jane', '09876543' , dateadd( day, -33, GETDATE()) UNION ALL
select 'Nan', 'Nes', '123456' , dateadd( day, -30, GETDATE()) UNION ALL
select 'Jazz', 'Soy', '5748759' , dateadd( day, -29, GETDATE()) UNION ALL
select 'Rocky', 'Sion', '875643' , dateadd( day, -27, GETDATE())UNION ALL
select 'Mary', 'Jane', '1234567' , dateadd( day, -21, GETDATE()) UNION ALL
select 'Rocky', 'Sion', '785465' , dateadd( day, -14, GETDATE()) UNION ALL
select 'Jazz', 'Soy', '4536382' , dateadd( day, -8, GETDATE())UNION ALL
select 'Mary', 'Jane', '6598690' , GETDATE()

SELECT * FROM @t
</pre>
<p>here&#8217;s the data</p>
<pre>ID	FName	       LName       Phone	 CreatedAt
1	Mary	        Jane	   09876543	 2009-10-24 14:24:00
2	Nan	        Nes	   123456	 2009-10-27 14:24:00
3	Jazz	        Soy	   5748759	 2009-10-28 14:24:00
4	Rocky	        Sion	   875643	 2009-10-30 14:24:00
5	Mary	        Jane	   1234567	 2009-11-05 14:24:00
6	Rocky           Sion	   785465	 2009-11-12 14:24:00
7	Jazz	        Soy	   4536382	 2009-11-18 14:24:00
8	Mary	        Jane	   6598690	 2009-11-26 14:24:00
</pre>
<p>in data above we would like to take the latest phone number from the same Customer<br />
expected result</p>
<pre>ID	FName	       LName       Phone	 CreatedAt
2	Nan	        Nes	   123456	 2009-10-27 14:24:00
6	Rocky           Sion	   785465	 2009-11-12 14:24:00
7	Jazz	        Soy	   4536382	 2009-11-18 14:24:00
8	Mary	        Jane	   6598690	 2009-11-26 14:24:00
</pre>
<p>first method : this method works for SQL 2005 and UP</p>
<pre>--find the latest by id..
;WITH DeleteDuplicate AS
(
 SELECT Fname, LName, Phone, ROW_NUMBER() OVER (PARTITION BY Fname, LName ORDER BY ID DESC) AS RowNumber
 FROM @t
)
 DELETE DeleteDuplicate
 WHERE RowNumber &#62; 1;

--find the latest by createdAt
;WITH DeleteDuplicate AS
(
 SELECT Fname, LName, Phone, ROW_NUMBER() OVER (PARTITION BY Fname, LName ORDER BY CreatedAt DESC) AS RowNumber
 FROM @t
)
 DELETE DeleteDuplicate
 WHERE RowNumber &#62; 1;
</pre>
<p>2nd way : applicable in sql 2000</p>
<pre> -- using max, aggregate function
delete @t
from @t A
where id not in (select MAX(id) as ID
                from @t    
                group by FName, lname) 
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Menjalankan Store Procedure di asp.net]]></title>
<link>http://ndereklangkung.wordpress.com/2009/11/26/menjalankan-store-procedure-di-asp-net/</link>
<pubDate>Thu, 26 Nov 2009 06:55:46 +0000</pubDate>
<dc:creator>ndereklangkung</dc:creator>
<guid>http://ndereklangkung.wordpress.com/2009/11/26/menjalankan-store-procedure-di-asp-net/</guid>
<description><![CDATA[Download Sample Selama ini dalam aplikasi web yang aku buat, aku gak pernah menggunakan / menjalanka]]></description>
<content:encoded><![CDATA[Download Sample Selama ini dalam aplikasi web yang aku buat, aku gak pernah menggunakan / menjalanka]]></content:encoded>
</item>
<item>
<title><![CDATA[SQLAuthority News - SQL Server 2008 Analysis Services Performance Guide]]></title>
<link>http://blog.sqlauthority.com/2009/11/26/sqlauthority-news-sql-server-2008-analysis-services-performance-guide/</link>
<pubDate>Thu, 26 Nov 2009 01:30:15 +0000</pubDate>
<dc:creator>pinaldave</dc:creator>
<guid>http://blog.sqlauthority.com/2009/11/26/sqlauthority-news-sql-server-2008-analysis-services-performance-guide/</guid>
<description><![CDATA[Because Microsoft SQL Server Analysis Services query and processing performance tuning is a fairly b]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Because Microsoft SQL Server Analysis Services query and processing performance tuning is a fairly broad subject, this white paper organizes performance tuning techniques into the following three segments.</p>
<p style="text-align:justify;"><strong>Enhancing Query Performance</strong> &#8211; Query performance directly impacts the quality of the end user experience. As such, it is the primary benchmark used to evaluate the success of an online analytical processing (OLAP) implementation. Analysis Services provides a variety of mechanisms to accelerate query performance, including aggregations, caching, and indexed data retrieval. In addition, you can improve query performance by optimizing the design of your dimension attributes, cubes, and Multidimensional Expressions (MDX) queries.</p>
<p style="text-align:justify;"><strong>Enhancing Processing Performance</strong> &#8211; Processing is the operation that refreshes data in an Analysis Services database. The faster the processing performance, the sooner users can access refreshed data. Analysis Services provides a variety of mechanisms that you can use to influence processing performance, including efficient dimension design, effective aggregations, partitions, and an economical processing strategy (for example, incremental vs. full refresh vs. proactive caching).</p>
<p style="text-align:justify;"><strong>Tuning Server Resources</strong> – There are several engine settings that can be tuned that affect both querying and processing performance.</p>
<p style="text-align:justify;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=3be0488d-e7aa-4078-a050-ae39912d2e43&#38;displaylang=en" target="_blank">Download SQL Server 2008 Analysis Services Performance Guide</a></p>
<p style="text-align:justify;">Reference: <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/">http://blog.sqlauthority.com</a>)</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Script to create grants to roles to database for SQL authenticated users.]]></title>
<link>http://oraclespin.wordpress.com/2009/11/25/script-to-create-grants-to-roles-to-database-for-sql-authenticated-users/</link>
<pubDate>Thu, 26 Nov 2009 01:21:15 +0000</pubDate>
<dc:creator>Amin Jaffer</dc:creator>
<guid>http://oraclespin.wordpress.com/2009/11/25/script-to-create-grants-to-roles-to-database-for-sql-authenticated-users/</guid>
<description><![CDATA[Code that be used to scripts to extract role permissions for a database for SQL authenticated accoun]]></description>
<content:encoded><![CDATA[Code that be used to scripts to extract role permissions for a database for SQL authenticated accoun]]></content:encoded>
</item>
<item>
<title><![CDATA[... may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.]]></title>
<link>http://scmay.wordpress.com/2009/11/26/may-cause-cycles-or-multiple-cascade-paths-specify-on-delete-no-action-or-on-update-no-action-or-modify-other-foreign-key-constraints/</link>
<pubDate>Thu, 26 Nov 2009 00:20:13 +0000</pubDate>
<dc:creator>scmay</dc:creator>
<guid>http://scmay.wordpress.com/2009/11/26/may-cause-cycles-or-multiple-cascade-paths-specify-on-delete-no-action-or-on-update-no-action-or-modify-other-foreign-key-constraints/</guid>
<description><![CDATA[Chances are, you are here because you have googled for the above mentioned error from SQL Server. In]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Chances are, you are here because you have googled for the above mentioned error from SQL Server.</p>
<p>In case you did not understand what it means, I&#8217;ve found a simple yet effective explanation in this <a href="http://lists.evolt.org/archive/Week-of-Mon-20030421/139403.html">link</a></p>
<p>I quote</p>
<blockquote><p>CREATE TABLE foo (<br />
    fooid int IDENTITY,<br />
    foovalue varchar(47)<br />
    )</p>
<p>CREATE TABLE bar (<br />
    barid int IDENTITY,<br />
    barvalue varchar(47),<br />
    fooid int<br />
    CONSTRAINT fk_bar_foo FOREIGN KEY(fooid)<br />
        REFERENCES foo(fooid)<br />
            ON UPDATE<br />
                CASCADE<br />
            ON DELETE<br />
                CASCADE<br />
    )</p>
<p>CREATE TABLE baz (<br />
    bazid int IDENTITY,<br />
    bazvalue varchar(47),<br />
    barid int<br />
    CONSTRAINT fk_baz_bar FOREIGN KEY(barid)<br />
        REFERENCES bar(barid)<br />
            ON UPDATE<br />
                CASCADE<br />
            ON DELETE<br />
                CASCADE<br />
    )
</p></blockquote>
<blockquote><p>SQL Server will say, hey, if we delete a row from foo, well, we could delete<br />
multiple rows from bar, and then we&#8217;ll have to delete multiple rows from<br />
baz, and that could go on forever! So let&#8217;s issue a warning about &#8220;cycles or<br />
multiple cascade paths&#8221; and disallow it.</p></blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Why is SQL Azure and Index Fragmentation a Bad Combination?]]></title>
<link>http://sqlfascination.com/2009/11/25/why-is-sql-azure-and-index-fragmentation-a-bad-combination/</link>
<pubDate>Wed, 25 Nov 2009 22:20:10 +0000</pubDate>
<dc:creator>andrewhogg</dc:creator>
<guid>http://sqlfascination.com/2009/11/25/why-is-sql-azure-and-index-fragmentation-a-bad-combination/</guid>
<description><![CDATA[I&#8217;ve been thinking through and experimenting a bit more with some of the concepts in SQL Azure]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I&#8217;ve been thinking through and experimenting a bit more with some of the concepts in SQL Azure &#8211; specifically I was considering the impact of fragmentation on both the storage (in terms of the storage limit) as well as the maintenance. This is not a new issue, DBA&#8217;s face fragmentation regularly and can deal with it in a variety of ways, but with SQL Azure the problem looks magnified by a lack of tools and working space. Whilst looking into this, I then realised that there is an unfortunate consequence of not knowing how much data space your index is actually using.</p>
<p>Each table in SQL Azure has to have a clustered index if data is going to be inserted into it and clustered indexes can suffer from fragmentation if chosen poorly. The combination of SQL Azure and the time-honoured fragmentation provides three consequences about in, fragmentation:</p>
<ul>
<li>will occur and you have no way in which to measure it due to the lack of DMV support.</li>
<li>will create wasted space within your space allocation limit.</li>
<li>will reduce your performance.</li>
</ul>
<p>You could work it out if you knew how much space you had actually used vs. what the size of the data held is, but we are unable to measure either of those values. If you have chosen the data compression option on the index then even those values would not give you a fragmentation ratio.</p>
<p>This leaves us with a situation in which you can not know how much you are fragmented, meaning:</p>
<ul>
<li>You schedule a regular index rebuild.</li>
<li>Hope SQL Azure performs index rebuilds for you.</li>
</ul>
<p>I&#8217;m not aware of SQL Azure doing this for you &#8211; and you do not have SQL Agent facilities either.</p>
<p>So this seems very wrong, the concept of SQL Azure is to take away a lot of the implementation details and hassle from the subscriber &#8211; DR and failover is handled etc. But there looks to be as gap in which certain items such as fragmentation is falling &#8211; I have not seen any documentation saying SQL Azure handles it (but there could be some hidden somewhere and I hope there is!) and neither are you given the right tools in which to program and handle it yourself.</p>
<p>What happens when you hit that size limit?</p>
<pre><span style="color:#ff0000;">Msg 40544, Level 20, State 5, Line 1 The database has reached its size quota. Partition or delete data, drop indexes, or consult the documentation for possible resolutions. Code: 524289 </span></pre>
<p>That took a lot of time to get to, (SQL Azure is not fast), but was generated using a simple example that would also demonstrate fragmentation.</p>
<pre><span style="color:#0000ff;">Create Table</span> fragtest ( id <span style="color:#0000ff;">uniqueidentifier primary key clustered</span>,
padding <span style="color:#0000ff;">char</span>(3000)
) </pre>
<p>Very simple stuff, deliberately using a clustered key on a GUID to cause a decent level of fragmentation, and also using the padding fixed with character field to ensure 2 rows per page only, maximising the page splits.</p>
<pre><span style="color:#0000ff;">insert into</span> fragtest <span style="color:#0000ff;">values</span> (<span style="color:#ff00ff;">newid</span>(), <span style="color:#ff00ff;">replicate</span>(<span style="color:#ff0000;">'a'</span>,1000))
go 200000</pre>
<p>Because of the randomness of the newid() function, the level of fragmentation is not predictable but will certainly occur &#8211; in my test I hit the wall on 196,403 records and failed with an out of space message.</p>
<p>Given the 2 rows per page and the number of rows, with ~0% fragmentation the data should be able ~767Mb &#8211; that is considerably short of 1 Gb &#8211; so there is a significant level of fragmentation in there wasting space, about 23% of it. If you include the 2k per page being wasted by the awkward row size then the actual raw data stored is roughly ~60% of the overall size allowing for row overheads etc.</p>
<p>So there are two important points from this contrived example:</p>
<ul>
<li>You can lose significant space from bad design.</li>
<li>Doing this backs you into a corner that you will not be able to get out of &#8211; this is the worst part.</li>
</ul>
<p>How are you cornered? well, try work out how to get out of the situation and defrag the clustered index / free up the space, you could:</p>
<ul>
<li>Attempt an index rebuild.</li>
<li>Try to rebuild it with SORT_IN_TEMP.</li>
<li>Drop the index.</li>
<li>Delete data.</li>
</ul>
<p>The first three fail, the SORT_IN_TEMP is not supported and would not of rescued the situation either since you have no working space in which to write the newly sorted rows prior to removing the old ones.  So do you really want to delete data? I don&#8217;t think we can consider that an option for now.</p>
<p>This all seems like a &#8216;rock&#8217; and a &#8216;hard place&#8217;; whilst SQL Azure can support these data quantities,  it seems prudent that you never consider actually going close to them at all &#8211; and that you equally are going to find it difficult to understand if you are close to them, since there is no way of measuring the fragmentation. The alternative is that you manually rebuild indexes on a regular basis to control fragmentation, but then enough free space is going to have to be left to allow you to rebuild your largest index without running out of space &#8211; reducing your data capacity significantly.</p>
<p>The corner is not entirely closed off, the way out of the corner would be to create another SQL Azure database within my account and select the data from database1.fragtest to database2.fragtest and then drop the original table and transfer it back &#8211; not ideal but it would work in an emergency.</p>
<p>I think the key is to design to make sure you do not have to face this issue; keep your data quantities very much under the SQL Azure size limits, and watch for the potential of tables being larger than the remaining space and preventing an re-indexing from occurring.</p>
<p>Interested to know your thoughts on this one, and what other consequences of being close to the limit will come out.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Today's Link: Best of SQL Server Central Vol. 7 eBook (FREE))]]></title>
<link>http://dbalink.wordpress.com/2009/11/25/todays-link-best-of-sql-server-central-vol-7-ebook-free/</link>
<pubDate>Wed, 25 Nov 2009 17:00:28 +0000</pubDate>
<dc:creator>MarlonRibunal</dc:creator>
<guid>http://dbalink.wordpress.com/2009/11/25/todays-link-best-of-sql-server-central-vol-7-ebook-free/</guid>
<description><![CDATA[SQLServerCentral.com is one of the finest SQL Server resources. Once in a while they publish a compi]]></description>
<content:encoded><![CDATA[SQLServerCentral.com is one of the finest SQL Server resources. Once in a while they publish a compi]]></content:encoded>
</item>
<item>
<title><![CDATA[Worldwide Microsoft&reg; .NET Framework Stories]]></title>
<link>http://ecastrom.wordpress.com/2009/11/25/worldwide-microsoft-net-framework-stories/</link>
<pubDate>Wed, 25 Nov 2009 16:21:57 +0000</pubDate>
<dc:creator>ecastrom</dc:creator>
<guid>http://ecastrom.wordpress.com/2009/11/25/worldwide-microsoft-net-framework-stories/</guid>
<description><![CDATA[Microsoft has launched a compelling new worldwide Microsoft® .NET Framework campaign at www.dotnetst]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Microsoft has launched a compelling new worldwide Microsoft® .NET Framework campaign at <a href="http://www.dotnetstories.com">www.dotnetstories.com</a>. Through online videos and written case studies featuring real developers who built amazing and diverse solutions on the .NET Framework. </p>
<p>The developers’ varied stories integrate the .NET Framework —Windows® 7, Windows Server® 2008 R2, Windows Azure™, Microsoft SharePoint® 2010, and Microsoft SQL Server® 2008 R2, reinforcing the business potential with Microsoft technologies. </p>
<p>Get involved! </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Consolidation Guidance for SQL Server]]></title>
<link>http://murratore.wordpress.com/2009/11/25/consolidation-guidance-for-sql-server/</link>
<pubDate>Wed, 25 Nov 2009 08:02:36 +0000</pubDate>
<dc:creator>murratore</dc:creator>
<guid>http://murratore.wordpress.com/2009/11/25/consolidation-guidance-for-sql-server/</guid>
<description><![CDATA[Summary: The goal of this white paper is to provide a framework for choosing among virtualization, m]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Summary: </strong>The goal of this white paper is to provide a framework for choosing among virtualization, multi-database, and multi-instance consolidation strategies for SQL Server Database Engine OLTP applications by highlighting some of the key decision points based on technical analysis. Some foundational topics and terminology will be included to provide the basis for the discussion, because some terms or strategies might be worded differently in other papers.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee819082.aspx">Consolidation Guidance for SQL Server</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sulit koneksi ke SQL Server 2005 Express]]></title>
<link>http://mkusmawati.wordpress.com/2009/11/25/sulit-koneksi-ke-sql-server-2005-express/</link>
<pubDate>Wed, 25 Nov 2009 04:37:17 +0000</pubDate>
<dc:creator>mkusmawati</dc:creator>
<guid>http://mkusmawati.wordpress.com/2009/11/25/sulit-koneksi-ke-sql-server-2005-express/</guid>
<description><![CDATA[Pengalaman saya saat memakai SQL Server 2005 adalah sulit koneksi ke server, pesannya adalah &#8220;]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Pengalaman saya saat memakai SQL Server 2005 adalah sulit koneksi ke server, pesannya adalah &#8220;<span style="color:red;">Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: SERVER\SQLEXPRESS</span>&#8220;. Wah sampai kebingungan gak ketemu-ketemu solusinya, di sebagian komputer gak ada masalah tapi kenapa cuma komputer saya yang gak bisa connect (BT deh&#8230;..). Saya coba install dulu SQL Server 2000 baru bisa connect. Aneh banget&#8230;., masa tiap mau pake SQL Server 2005 mesti install dulu SQL Server 2000. Dan ternyata cara tersebut malah beda ketika di implementasikan ke komputer yg lain. Tapi hari ini baru saja saya menemukan dan baca di <a href="http://forum.ragezone.com/f528/share-new-way-to-register-an-account-without-rancp-php-script-564652/">http://forum.ragezone.com/f528/share-new-way-to-register-an-account-without-rancp-php-script-564652/</a>. Ternyata berhasil&#8230;.., aplikasi web yg saya buat bisa connect SQL Server 2005 Express.</p>
<p>Caranya copy ntwdblib.dll [version] 2000.80.194.0 ke:</p>
<p>For <span style="color:red;">XAMPP</span> user:<br />
C:\xampp\php<br />
C:\xampp\apache\bin<br />
C:\WINDOWS\system32</p>
<p>For <span style="color:red;">WAMP</span> user:<br />
C:\wamp\bin\php\php5.2.6<br />
C:\wamp\bin\apache\apache2.2.8\bin<br />
C:\WINDOWS\system32</p>
<p>Untuk yang memili problem yang sama seperti saya, mudah-mudahan ini bisa menjadi salah satu solusi bagi anda. Silahkan download ntwdblib.dll <a>disini</a> (ket. Jangan lupa setelah selesai download ubah ekstensi *.jpg nya ke *.zip) maklum di wordpress gak bisa upload file berekstensi *.zip ^_^.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Slow SQL Connection to Windows 7]]></title>
<link>http://ttcshelbyville.wordpress.com/2009/11/24/slow-sql-connection-to-windows-7/</link>
<pubDate>Wed, 25 Nov 2009 03:59:23 +0000</pubDate>
<dc:creator>SMallard</dc:creator>
<guid>http://ttcshelbyville.wordpress.com/2009/11/24/slow-sql-connection-to-windows-7/</guid>
<description><![CDATA[Finally found a small problem with Windows 7.  After upgrading, we have discovered that Windows 7 wa]]></description>
<content:encoded><![CDATA[Finally found a small problem with Windows 7.  After upgrading, we have discovered that Windows 7 wa]]></content:encoded>
</item>
<item>
<title><![CDATA[SQL SERVER - Comma Separated Values (CSV) from Table Column]]></title>
<link>http://blog.sqlauthority.com/2009/11/25/sql-server-comma-separated-values-csv-from-table-column/</link>
<pubDate>Wed, 25 Nov 2009 01:30:18 +0000</pubDate>
<dc:creator>pinaldave</dc:creator>
<guid>http://blog.sqlauthority.com/2009/11/25/sql-server-comma-separated-values-csv-from-table-column/</guid>
<description><![CDATA[I use following script very often and I realized that I have never shared this script on this blog b]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">I use following script very often and I realized that I have never shared this script on this blog before. Creating Comma Separated Values (CSV) from Table Column is a very common task, and we all do this many times a day. Let us see the example that I use frequently and its output.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">USE </span><span style="color:black;">AdventureWorks<br />
GO<br />
</span><span style="color:green;">-- Check Table Column<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">Name<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">HumanResources.Shift<br />
GO<br />
</span><span style="color:green;">-- Get CSV values<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">SUBSTRING</span><span style="color:gray;">(<br />
(</span><span style="color:blue;">SELECT </span><span style="color:red;">',' </span><span style="color:gray;">+ </span><span style="color:black;">s.Name<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">HumanResources.Shift s<br />
</span><span style="color:blue;">ORDER BY </span><span style="color:black;">s.Name<br />
</span><span style="color:blue;">FOR </span><span style="color:black;">XML PATH</span><span style="color:gray;">(</span><span style="color:red;">''</span><span style="color:gray;">)),</span><span style="color:black;">2</span><span style="color:gray;">,</span><span style="color:black;">200000</span><span style="color:gray;">) </span><span style="color:blue;">AS </span><span style="color:black;">CSV<br />
GO </span></code></p>
<p style="text-align:justify;">I consider XML as the best solution in terms of code and performance. Further, as I totally prefer this option, I am not even including the linka to my other articles, where I have described other options.</p>
<p style="text-align:justify;"><span style="color:black;"><img class="alignnone" src="http://www.pinaldave.com/bimg/csvxml.jpg" alt="" width="316" height="470" /><br />
</span></p>
<p style="text-align:justify;">Do you use any other method to resolve this issue? Can you find any significant difference in performance between these options? Please leave your comment here.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
<p style="text-align:justify;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[UPDATE with Table JOIN]]></title>
<link>http://beenhazed.wordpress.com/2009/11/24/update-with-table-join/</link>
<pubDate>Tue, 24 Nov 2009 19:56:22 +0000</pubDate>
<dc:creator>beenhazed</dc:creator>
<guid>http://beenhazed.wordpress.com/2009/11/24/update-with-table-join/</guid>
<description><![CDATA[So, I keep having to look this up, and it is driving me crazy.&#160; So, I decided to write about it]]></description>
<content:encoded><![CDATA[So, I keep having to look this up, and it is driving me crazy.&#160; So, I decided to write about it]]></content:encoded>
</item>
<item>
<title><![CDATA[SSMS - Tracing a Session in Profiler]]></title>
<link>http://decipherinfosys.wordpress.com/2009/11/24/ssms-tracing-a-session-in-profiler/</link>
<pubDate>Tue, 24 Nov 2009 18:31:53 +0000</pubDate>
<dc:creator>decipherinfosys</dc:creator>
<guid>http://decipherinfosys.wordpress.com/2009/11/24/ssms-tracing-a-session-in-profiler/</guid>
<description><![CDATA[SQL Server management studio in SQL Server 2008 has a neat little feature called &#8220;Trace Query ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>SQL Server management studio in SQL Server 2008 has a neat little feature called &#8220;Trace Query in SQL Server Profiler&#8221;.   Using this option, one can start a profiler trace right from SSMS and the trace that gets started is already filtered on the spid of that particular session.  This option is present under the Query Option of the Menu:</p>
<p><a href="http://decipherinfosys.wordpress.com/files/2009/11/ssms_pf1.jpg"><img class="aligncenter size-full wp-image-2426" title="SSMS_PF1" src="http://decipherinfosys.wordpress.com/files/2009/11/ssms_pf1.jpg" alt="" width="395" height="476" /></a></p>
<p>As you can see, it also has a short cut key: Ctrl + Alt + P.  When you select this, a profiler window will open and if you look at it&#8217;s properties and then the filter, you will see that it has put a filter on your specific SPID for you:</p>
<p><a href="http://decipherinfosys.wordpress.com/files/2009/11/ssms_pf2.jpg"><img class="aligncenter size-full wp-image-2427" title="SSMS_PF2" src="http://decipherinfosys.wordpress.com/files/2009/11/ssms_pf2.jpg" alt="" width="405" height="317" /></a>The very next question then that comes to mind is what events is it tracking and what columns is it using?  The default template that it uses for the events and columns is &#8220;TSQL_SPs&#8221; &#8211; you can see this by clicking on properties of the trace that it started for you.  This is one of the templates that comes with the install.  You can modify this template and customize it to your needs.  All you need to do is open it up from Profiler and go to File\Templates\Edit Templates, make the changes and save it.</p>
<p>This is a pretty handy feature and can help a great deal when tuning SQL code in SSMS.  One can get all the detailed information at the click of the button now.</p>
<p><strong>Resources</strong>:</p>
<ul>
<li>SQL Server MSDN profiler reference &#8211; <a href="http://msdn.microsoft.com/en-us/library/ms173757.aspx">here</a>.</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Membuat database menggunakan SQL SERVER 2005]]></title>
<link>http://ankacenter.wordpress.com/2009/11/24/membuat-database-menggunakan-sql-server-2005/</link>
<pubDate>Tue, 24 Nov 2009 12:29:12 +0000</pubDate>
<dc:creator>kondesmg</dc:creator>
<guid>http://ankacenter.wordpress.com/2009/11/24/membuat-database-menggunakan-sql-server-2005/</guid>
<description><![CDATA[Pembuatan aplikasi pada toko sering menggunakan database untuk penyimpanan data, apalagi jika aplika]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Pembuatan aplikasi pada toko sering menggunakan database untuk penyimpanan data, apalagi jika aplikasi tersebut digunakan untuk warehouse atau pabrik atau rumah sakit. Database yang digunakan bermacam-macam, tergantung kebutuhan dari penggunaan aplikasi diperuntukkan, misal <a href="http://www.microsoft.com/2010/en/Basic.aspx" target="_blank">Microsoft Access</a>, <a href="http://www.mysql.com" target="_blank">MySQL</a>, <a href="http://www.microsoft.com/sqlserver/2008/en/us/default.aspx" target="_blank">SQL Server</a>, <a href="www.ibm.com/db2" target="_blank">IBM Database</a>, dll. Untuk penggunaan database dengan kapasitas besar lebih disarankan menggunakan SQL Server atau IBM Database karena penggunaannya lebih stabil dan aman.</p>
<p>SQL Server (versi berapapun) bisa digunakan untuk menghandle data dengan kapasitas besar tapi untuk penggunaan yang lebih safety SQL Server untuk diupdate sesuai kemampuan komputer atau isi kantong anda <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Untuk Tutorial membuat database tunggu edisi selanjutnya <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> .</p>
<p>&#160;</p>
<p>Best Regards</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
