Posts

Showing posts from April, 2010

Nuevas características en SQL Azure

A partir de hoy existen nuevas características en la Plataforma de SQL Azure ( http://blogs.msdn.com/sqlazure/archive/2010/04/16/9997517.aspx ): MARS (Multiple Active Results Sets), lo cual simplifica el diseño de las aplicaciones y permite trabajar con múltiples conjuntos de datos ALTER rename permite renombrar las bases de datos en la nube  Application and Multi-server management mejoras en las Data-tier Applications lo cual que permite hacer el despliegue de base de datos en SQL Azure de forma más flexible desde SQL Server 2008 R2 y Visual Studio 2010 También puede empezar a probar las bases de 50GB en SQL Azure, para hacerlo envíe un correo a EngageSA@microsoft.com     Saludos, Ing. Eduardo Castro Martínez, PhD – Microsoft SQL Server MVP http://mswindowscr.org http://comunidadwindows.org Costa Rica Technorati Tags: SQL Server LiveJournal Tags: SQL Server del.icio.us Tags: SQL Server http://ecastrom.blogspot.com http://ecastrom.wordpress.com http://ecastrom.spaces.li

SQL Azure Improvements

There are new improvements in the SQL Azure Platform ( http://blogs.msdn.com/sqlazure/archive/2010/04/16/9997517.aspx ): MARS (Multiple Active Results Sets), which simplifies the application design process ALTER rename process for symmetry in renaming databases Application and Multi-server management for Data-tier Applications which further streamlines application design and enables deployments of database applications directly from SQL Server 2008 R2 and Visual Studio 2010 to SQL Azure for database deployment flexibility Also you can take advantage of the new 50GB Databases en SQL Azure, you can become an early adopter of this new feature by sending an email to EngageSA@microsoft.com   then you must fill out a survey and nominate your application.   Regards, Ing. Eduardo Castro Martínez, PhD – Microsoft SQL Server MVP http://mswindowscr.org http://comunidadwindows.org Costa Rica Technorati Tags: SQL Server LiveJournal Tags: SQL Server del.icio.us Tags: SQL Server http:

SQL Azure ahora implementa el Open Data Protocol

Ahora SQL Azure implementa el Open Data Protocol, el Open Data Protocol (OData) es un estándar emergente para consultar y actualizar datos a través de la web. El OData es un protocolo basado en REST que se enfoca en maximizar la interoperabilidad entre servicios de datos y clientes. Dentro de estos clientes se pueden citar varias plataformas tales como ASP.NET, PHP, y Java, así como Microsoft Excel y aplicaciones móbiles. Más información puede encontrarse en  www.odata.org Si desea probar esta nueva característica se puede inscribir en https://www.sqlazurelabs.com También en este blog http://oakleafblog.blogspot.com/2010/03/odataorgs-sql-azure-northwind-sample.html puede ver un ejemplo de utilizar ODATA con SQL Azure.   Saludos,   Saludos, Ing. Eduardo Castro Martínez, PhD – Microsoft SQL Server MVP http://mswindowscr.org http://comunidadwindows.org Costa Rica Technorati Tags: SQL Server LiveJournal Tags: SQL Server del.icio.us Tags: SQL Server http://ecastrom.blogspot.com

SQL Azure implements Open Data Protocol

SQL Azure now implements the Open Data Protocol, the Open Data Protocol (OData) is an emerging standard for querying and updating data over the Web. OData is a REST-based protocol whose core focus is to maximize the interoperability between data services and clients that wish to access that data. It is thus being used to expose data from a variety of sources, from relational databases and file systems to content management systems and traditional websites. In addition, clients across many platforms, ranging from ASP.NET, PHP, and Java websites to Microsoft Excel and applications on mobile devices, are finding it easy to access those vast data stores through OData as well. Full information about OData can be found on its dedicated website. www.odata.org You can subscribe to be an early tester of SQL Azure Open Data Protocol here https://www.sqlazurelabs.com You can also read a full sample here http://oakleafblog.blogspot.com/2010/03/odataorgs-sql-azure-northwind-sample.html Regards,

Microsoft Café SQL Azure

Esta es nuestra participación en el Episodio 3 de Microsoft Café, en el cual hablamos sobre SQL Azure.     Saludos, Ing. Eduardo Castro Martínez, PhD – Microsoft SQL Server MVP http://mswindowscr.org http://comunidadwindows.org Costa Rica Technorati Tags: SQL Server LiveJournal Tags: SQL Server del.icio.us Tags: SQL Server http://ecastrom.blogspot.com http://ecastrom.wordpress.com http://ecastrom.spaces.live.com http://universosql.blogspot.com http://todosobresql.blogspot.com http://todosobresqlserver.wordpress.com http://mswindowscr.org/blogs/sql/default.aspx http://citicr.org/blogs/noticias/default.aspx http://sqlserverpedia.blogspot.com/

Sharding de base de datos en SQL Azure

SQL Azure permite crear múltiples bases de datos de forma sencilla y rápida. Para poder aumentar la escalabilidad de las aplicaciones es necesario poder aumentar la capacidad de manejo de datos de forma casi lineal. Para poder lograr esto podemos recurir a la capacidad de creación dinámica de base de datos en SQL Azure y de esa forma poder distribuir los datos de una única base de datos en múltiples bases de datos, esta técnica es conocida como Database Sharding. Existen diferentes técnicas para hacer Database Sharding entre estas están: Particionamiento basado en rangos. En esta técnica se divide una única tabla en varios servidores, para esto se debe utilizar un algoritmo que permita dividir los datos de forma uniforme y predicible. El criterio para dividir debe procurar que la división de los datos sea balanceada, por ejemplo si se divide por estado entonces podría que un estado tenga más datos que otro y la división no será balanceada. Particionamiento vertical. Esta técnica im

Error Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL server

If you are configuring a SQL Server to be used as an Session State for ASP.NET you need to configure the proper security to allow the application pool to access the SQL Server, you can use the following script to configure the security, remember to configure the proper identity (the one that is configured in the application pool)   use ASPState go grant EXECUTE on GetHashCode to [ApplicationPoolIdentity] grant EXECUTE on GetMajorVersion to [ApplicationPoolIdentity] grant EXECUTE on TempGetAppID to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItem to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItem2 to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItem3 to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItemExclusive to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItemExclusive2 to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItemExclusive3 to [ApplicationPoolIdentity] grant EXECUTE on TempGetVersion to [ApplicationPoo

Error cuando utiliza SQL como repositorio de Session State de ASP.NET

Si ha configurado SQL Server como repositorio para las sesiones de ASP.NET puede que se le despliegue este error Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL server, esto se debe a que la cuenta con la cual está ejecutando el Application Pool del sitio en ASP.NET no tiene derechos sobre la base de datos en SQL Server, para configurarlo ejecute las siguientes instrucciones, recuerde cambiar la identidad del usuario por el usuario que tiene configurado en su IIS.   use ASPState go grant EXECUTE on GetHashCode to [ApplicationPoolIdentity] grant EXECUTE on GetMajorVersion to [ApplicationPoolIdentity] grant EXECUTE on TempGetAppID to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItem to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItem2 to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItem3 to [ApplicationPoolIdentity] grant EXECUTE on TempGetStateItemExclusive to [ApplicationPoolIdentity] grant EXECUTE

Base de Datos SQL Server DB en la nube con SQL Data Sync

Image
Si desea sincronizar su base de datos de SQL Server local con una base de datos en la nube de SQL Azure, puede empezar utilizando el SQL Data Sync, el cual le permite implementar una sincronización de datos bidreccional. Primero baje e instale el Microsoft Synch Framework 2.0 Software Development Kit (SDK) desde esta dirección http://www.microsoft.com/downloads/details.aspx?FamilyID=89adbb1e-53ff-41b5-ba17-8e43a2e66254&displaylang=en Después hay que bajar e instalar el SQL Data Sync CTP desde http://www.microsoft.com/downloads/details.aspx?FamilyID=bce4ad61-5b76-4101-8311-e928e7250b9a&displaylang=en Una vez que haya instalado estos utilitarios podrá ejecutar el SQL Data Sync Wizard tal y como se muestra a continuación:   1. Primero necesita la dirección y contraseña de su servidor en SQL Azure, también necesita especificar el nombre de la base de datos en la cual usted desea replicar los datos, en este caso es AdventureWorks que está creada en SQL Azure. Si necesita infor

SQL Server DB to the Cloud with SQL Data Sync

Image
If you want to syncronize your local SQL Server Database with a Database in the SQL Azure Cloud, you can start using the SQL Data Sync that allows you to implement bi-directional data synchronization. First you need to download the Microsoft Synch Framework 2.0 Software Development Kit (SDK) from this address http://www.microsoft.com/downloads/details.aspx?FamilyID=89adbb1e-53ff-41b5-ba17-8e43a2e66254&displaylang=en Then you need to download the actual SQL Data Sync CTP from http://www.microsoft.com/downloads/details.aspx?FamilyID=bce4ad61-5b76-4101-8311-e928e7250b9a&displaylang=en One you have installed both applications you will be able to run the SQL Data Sync Wizard as shown in the following steps:   1. First you need your SQL Azure server Address and Password, also you need to specify the name of the database that you want to replicate the data to, in this case is AdventureWorks that resides in SQL Azure. If you need you SQL Azure information you can access your acco

Crear una imagen de SysPrep que incluya SQL Server 2008 R2

Image
Con la introducción de SQL Server 2008 R2 Microsoft agregó la posibilidad de crear imágenes con Sysprep que incluyan una instalación de SQL Server 2008 R2, de esta forma ahora puede tener una imágen de estación de trabajo o servidor que ya posea SQL Server instalado. Para crear la imagen debe copiar los archivos de instalación al disco local de la máquina y cuando ejecute el instalador verá una nueva opción, tal y como se muestra a continuación: Ahora continúe con el asistente de instalación y después ejecute la herramienta sysprep. Cuando ya se haya realizado la clonación del servidor o máquinas y ejecutado el Sysprep Mini Setup, usted verá una nueva opción para finalizar la instalación de este nuevo SQL clonado:   Existen algunas limitaciones, tal y como lo anota peteras ( http://blogs.msdn.com/petersad/archive/2009/12/17/sql-server-2008-r2-sysprep-step-by-step.aspx ) :   Solo la base de datos y reporting services soportan sysprep No se puede utilizar en escenarios que inclu

Creating a SQL Server 2008 SysPrep Image

Image
Starting with SQL Server 2008 R2 Microsoft has added the SysPrep feature to the SQL Server setup, in this way you can now have a server or workstation image with SQL already installed, to create the image you must copy the setup files into the local disk, then when you run the setup you will see a new option among the already known ones: What you need to do now is follow the setup wizard and at the end execute the sysprep utility. After you have cloned you machine and ran the sysprep mini setup you will see an option to finish the SQL Server configuration, as shown in the following image:   There are some limitations as peteras pointed ( http://blogs.msdn.com/petersad/archive/2009/12/17/sql-server-2008-r2-sysprep-step-by-step.aspx ) out on his blog:   Only the database engine and reporting services supports Sysprep Cannot be used for clustering scenarios Not supported on IA64 system or supported in WOW64 The installation media need to be available when preparing an image an

Evento Cloud Computing Bases de Datos y Aplicaciones

Image
El 10 de abril realizamos el Evento Cloud Computing y Aplicaciones, en esta charla se trataron temas sobre SQL Server Azure y Windows Azure, la presentación la puede descargar desde la siguiente dirección http://comunidadwindows.org/files/folders/20100410/default.aspx     View Full Album

Error Could not load package "XXXXX" because of error 0xC00160AA. Description: Connect to SSIS Service on machine "XXXXX" failed: The RPC server is unavailableConnect to SSIS Service on machine “XXXXX" failed: The RPC server is unavailable

If you have two servers one running SQL Server Agent (SERVER A) and the other Integration Services (SERVER B) and you want to be able to run the SSIS packages on SERVER B from the Agent on SERVER A, you need to properly configure the firewall on SERVER B, if you don’t do it, you will run into the following error:   Error Could not load package "XXXXX" because of error 0xC00160AA.  Description: Connect to SSIS Service on machine "XXXXX" failed:   The RPC server is unavailableConnect to SSIS Service on machine “XXXXX" failed: The RPC server is unavailable   To configure the firewall follow these steps: Allow the C:\Program Files\Microsoft SQL Server\100\DTS\Binn\MsDtsSrvr.exe to go though the firewall, you can do it with an exeption in Windows 2003 or an Access Rule in Windows 2008. Allow the traffic for TCP port 135   ********************************************************************************** Si tienes que ejecutar paquetes que están en un servi

Error SocketException getaddrinfo no data of the requested type was found when creating a new Report Server Database

Image
When you are trying to create a new database for your Report Server through the Reporting Services Configuration Manager and the database server is not local but a remote server and in the remote server you have changed the default port and the SQL Browser is not running, you will run in the following error SocketException getaddrinfo no data of the requested type was found , and the configuration tool will show the following error in the Generating rights scripts section.       When you click on the Error link, you will saw the following detail: System.Net.Sockets.SocketException: No such host is known    at System.Net.Dns.GetAddrInfo(String name)    at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)    at System.Net.Dns.GetHostEntry(String hostNameOrAddress)    at ReportServicesConfigUI.RSDatabase.IsLocalDbServer(String dbServer)    at ReportServicesConfigUI.RSDatabase.GrantRSConnectionRights()    at ReportServicesConfigUI.RSDatabase.CreateNewDatabase(

Need to wait to execute a TSQL in SQL Server?

If you are running tests on a SQL Server database using scripts, usually you may have to create a batch of TSQL and they must be executed in a certain order and in a certain time, to achive this you can use the WAITFOR DELAY statament, it allows your script to wait N seconds before being executed. In the following script we wait 30 seconds before executing the getdate command.   WAITFOR DELAY '00:00:30' ---- 30 Seconds Delay SELECT GETDATE() CurrentTime   Regards,   Ing. Eduardo Castro Martínez, PhD – Microsoft SQL Server MVP http://mswindowscr.org http://comunidadwindows.org Costa Rica Technorati Tags: SQL Server LiveJournal Tags: SQL Server del.icio.us Tags: SQL Server http://ecastrom.blogspot.com http://ecastrom.wordpress.com http://ecastrom.spaces.live.com http://universosql.blogspot.com http://todosobresql.blogspot.com http://todosobresqlserver.wordpress.com http://mswindowscr.org/blogs/sql/default.aspx http://citicr.org/blogs/noticias/default.aspx http

SQL Distributed Transaction fired by a COM+ not working

If you have some COM+ object that connects to SQL Server and opens a transaction, sometimes it stops working at all, you may be facing a COM+ Corrupted Database, to “repair” this database you must follow the following steps:   Find the file %WinDir%\System32\Clbcatq.dll and rename it to ~Clbcatq.dll Reboot the computer in Recovery Mode. Open the Registry and delete the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3. Find in the %WinDir% directory and look for a subdirectory named Registration. Delete Registration folder. Reboot the machine normally. Open Control Panel | Add/Remove Programs | Add/Remove Windows Components. Click Next to reinstall COM+. Now your transactions should work   Regards,   Ing. Eduardo Castro Martínez, PhD – Microsoft SQL Server MVP http://mswindowscr.org http://comunidadwindows.org Costa Rica Technorati Tags: SQL Server LiveJournal Tags: SQL Server del.icio.us Tags: SQL Server http://ecastrom.blogspot.com http://ecastrom.wordpress.com htt