Posts

Showing posts from July, 2009

Podcast Seguridad en SQL Server 2008 Tercera Parte

He publicado un podcast sobre seguridad en SQL Server 2008, puede escucharlo en la siguiente dirección http://podcast.com/episode/41676302/167247/ Saludos, Eduardo Castro – Microsoft SQL Server MVP 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

Podcast Seguridad en SQL Server 2008 Segunda Parte

He publicado un podcast sobre seguridad en SQL Server 2008, puede escucharlo en la siguiente dirección http://podcast.com/episode/41588230/166966/ Saludos, Eduardo Castro – Microsoft SQL Server MVP 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

Podcast Seguridad en SQL Server 2008

He publicado un podcast sobre seguridad en SQL Server 2008, puede escucharlo en la siguiente dirección http://podcast.com/episode/41607056/166966/ Saludos, Eduardo Castro – Microsoft SQL Server MVP 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

Error: SQL Server Setup could not connect to the database service for server configuration

  El siguiente error se puede presentar cuando intentas instalar una nueva instancia de SQL Server y te intentas conectar desde un cliente SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Refer to server error logs and setup logs for more information. For details on how to view setup logs, see "How to View Setup Log Files" in SQL Server Books Online. Para solucionarlo lo que tiene que realizar es registrar nuevamente un DLL con el siguiente comando: regsvr32.exe sqldmo.dll Saludos, Eduardo Castro – Microsoft SQL Server MVP 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 htt

SQL Server La longitud de los datos LOB (2200100) que se van a replicar excede el máximo configurado 65536.

  Cuando se tiene configurada la replicación el tamaño por default para los campos binarios e images es de 65536 y genera el siguiente error durante la replicación: Error: 7139, Severity: 16, State: 1 La longitud de los datos LOB (2200100) que se van a replicar excede el máximo configurado 65536. Length of text, ntext, or image data (x) to be replicated exceeds configured maximum 65536 Para solucionarlo hay que cambiar el tamaño permitido para la replicación lo pueden hacer con los siguientes comandos:   print 'Tamano Anterior' exec sp_configure 'max text repl size' print ' Nuevo valor maximo de replicacion por ejemplo 300 mil bytes' exec sp_configure 'max text repl size' , 300000 print 'Forzar la reconfiguracion' RECONFIGURE WITH OVERRIDE print 'Verificar que se cambio el tamaño' exec sp_configure 'max text repl size'   Saludos, Eduardo Castro – Microsoft SQL Server MVP http://comunidadwindows.org Costa R

Disponible el Cumulative update package 1 for SQL Server 2008

Ya puedes bajar el Cumulative update package 1 for SQL Server 2008 en esta dirección http://support.microsoft.com/kb/956717/en-us Dentro de los errores que se corrigen están los siguientes: SQL Hotfix bug number Knowledge Base article number Description 50003171 When you use a SAP client computer to view a SQL Server database, the database may be smaller than expected 50003196 957810 (http://support.microsoft.com/kb/957810/ ) FIX: In SQL Server 2008, a query returns incorrect results for the Date data type when you run the query on a partitioned table that uses data compression on only one of the partitions 50003200 957375 (http://support.microsoft.com/kb/957375/ ) FIX: A mirror server cannot fail over to a principal server in a SQL Server 2008 failover cluster 50003202 957811 (http://support.microsoft.com/kb/957811/ ) FIX: You receive an error message that states that the broker GUIDs do not match when you try to establish database mirrori

Disponible el Cumulative update package 1 for SQL Server 2008

Ya puedes bajar el Cumulative update package 1 for SQL Server 2008 en esta dirección http://support.microsoft.com/kb/956717/en-us Dentro de los errores que se corrigen están los siguientes: SQL Hotfix bug number Knowledge Base article number Description 50003171 When you use a SAP client computer to view a SQL Server database, the database may be smaller than expected 50003196 957810 (http://support.microsoft.com/kb/957810/ ) FIX: In SQL Server 2008, a query returns incorrect results for the Date data type when you run the query on a partitioned table that uses data compression on only one of the partitions 50003200 957375 (http://support.microsoft.com/kb/957375/ ) FIX: A mirror server cannot fail over to a principal server in a SQL Server 2008 failover cluster 50003202 957811 (http://support.microsoft.com/kb/957811/ ) FIX: You receive an error message that states that the broker GUIDs do not match when you try to establish database mirrori

Disponible el Cumulative update package 1 for SQL Server 2008

Ya puedes bajar el Cumulative update package 1 for SQL Server 2008 en esta dirección http://support.microsoft.com/kb/956717/en-us Dentro de los errores que se corrigen están los siguientes: SQL Hotfix bug number Knowledge Base article number Description 50003171 When you use a SAP client computer to view a SQL Server database, the database may be smaller than expected 50003196 957810 (http://support.microsoft.com/kb/957810/ ) FIX: In SQL Server 2008, a query returns incorrect results for the Date data type when you run the query on a partitioned table that uses data compression on only one of the partitions 50003200 957375 (http://support.microsoft.com/kb/957375/ ) FIX: A mirror server cannot fail over to a principal server in a SQL Server 2008 failover cluster 50003202 957811 (http://support.microsoft.com/kb/957811/ ) FIX: You receive an error message that states that the broker GUIDs do not match when you try to establish database mirrori

Permisos necesarios para SQL Server FullText Search en un cluster

Si en un cluster se presentan los siguientes errores: Event ID:1069 Source:Clussvc Description: SQL Cluster Resource "Full Text" failed. Warning: 6/18/2001 10:14:25 PM 2 3 3055 Microsoft Search N/A VIRTUALSQL10 The Gatherer property mapping file cannot be opened. Error: 80070002. The default values are being used. You may have to copy the property mapping file from the setup CD, or reinstall the application. Error: 6/18/2001 10:14:25 PM 1 3 3058 Microsoft Search N/A VIRTUALSQL10 The application [SQLServer] cannot be initialized. Error: 80070002 - The system cannot find the file specified.   Se debe principalmente a que las cuentas del Cluster Service, el SQL Service y el SYSTEM no tienen derechos de Full Control sobre la carpeta MSSQL\FTdata y subfolders, también necesitan Full Control sobre esta entrada del registry HKLM\Software\Microsoft\Search\1.0 Saludos, Eduardo Castro – Microsoft SQL Server MVP http://comunidadwindows.org Costa Rica

SQL Server FullText Search no puede iniciarse en un cluster

Si tienes un cluster de SQL Server 2005 en Windows 2008 puede ser que cuando se termina de instalar el servicio de FullText Search falla al iniciar y genera el siguiente error en el Event Viewer   The SQL Server FullText Search (SQLInst2) service depends the following service: NTLMSSP. This service might not be installed. La solución recomendada es instalar como mínimo el SP2 de SQL Server o el SP3 tal y como se menciona en List of known issues when you install SQL Server 2005 on Windows Server 2008 . También puede ser necesario editar el Registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msftesql$SQLInstancia\DependOnService En esa llave se muestran las dependiencias por default muestra RPCSS, NTMLSSP tambien es necesario remover la entrada correspondiente a NTMLSSP   Saludos, Eduardo Castro – Microsoft SQL Server MVP http://comunidadwindows.org Costa Rica Technorati Tags: SQL Server LiveJournal Tags: SQL Server del.icio.us Tags: SQL Server http:

SQL Server 2005 Cluster Error

  Si durante la actualización de SQL Server Standart a SQL Server Enterprise, o durante la aplicación de un Service Pack recibes el siguiente mensaje the setup has encountred an unexpected error while completing commit. The error is: the cluster resource cannot be made dependent on the specified resource because it is already dependent Tienes que a los recursos del cluster y remover las dependencias, de esa forma el instalador creará las dependencias nuevamente y no dará el error.   Saludos, Eduardo Castro – Microsoft SQL Server MVP 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

SQL Server Error Hotfix 3024 for SQL Server Database Services 2005 ENU (KB000000) cannot be installed or removed

Si durante una actualización de parches de seguridad o un upgrade de SQL Server Standar Edition se presenta el siguiente error en los logs de la instalación: Hotfix 3024 for SQL Server Database Services 2005 ENU (KB000000) cannot be installed or removed Tienes que seguir el siguiente procedimiento para corregirlo: Instalar el SP3 de SQL Server Instalar el Cumulative Update 1 del SQL Server 2005 SP3 http://support.microsoft.com/Default.aspx?kbid=959195   Saludos, Eduardo Castro – Microsoft SQL Server MVP 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

Actualizacion para el SP3

Esta disponible el Cumulative Update 1 para el SP3 de SQL Server 2005, este parche es necesario para actualizar las instancias de SQL 2005, pueden solicitarlo en la siguiente dirección. http://support.microsoft.com/Default.aspx?kbid=959195 Cuando se presenta un error en la actualización de parches de windows o de un cluster es necesario instalar el update mencionado anteriormente. Saludos, Eduardo Castro – Microsoft SQL Server MVP 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 Technorati Tags: Actualizacion , Esta , Cumulative , Update , Server , Default , Cuando , error , Saludos , Eduardo , Castro , Microsoft , para , necesario Windows Live Tags: Actualizacion , Esta , C

Actualizar SQL Express a Standard o Enterprise

Image
Para poder actualizar SQL Express hacia una versión de SQL Server Standard o Enterprise se debe ejecutar el instalador de SQL Server Standard o Enterprise y desde la linea de comando ejecutar setup.exe SKUUPGRADE=1 Despues de eso el instalador nos permitirá realizar la actualización.     Saludos, Eduardo Castro – Microsoft SQL Server MVP 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 Technorati Tags: Actualizar , Standard , Enterprise , Para , Server , setup , SKUUPGRADE ,, Eduardo , Castro , Microsoft , Costa , Rica , Technorati , Tags , LiveJournal , ejecutar , instalador , ecastrom , blogspot Windows Live Tags: Actualizar , Standard , Enterprise , Para , Server , setu

Service Pack 2 de SQL Server 2005 Genera Error en Portfolio Server

Image
Cuando se instala el Service Pack 2 de SQL Server 2005 la configuración de reporting services requerida por Portfolio Server se daña. En el Event Viewer se muestra el siguiente error:   “An attempt has been made to use a data extension 'PPSExtension' that is not registered for this report server.”     Para solucionar este error se debe editar el archivo Rsreportserver.config que se encuentra en el directorio C:\Program Files\Microsoft SQL Server\ MSSQL.X \Reporting Services\ReportServer. Antes de editar este archivo debes detener el servicio de Reporting Services. En la sección de extensiones debes incluir lo siguiente: <Extension Name="PPSExtension" Type="Microsoft.Office.Project.PortfolioServer.Reporting.PPSConnection,Microsoft.Office.Project.PortfolioServer.Reporting"> <Configuration> <Key Name="Binaries" Value="C:\Inetpub\PortfolioServer\PortfolioServer\bin\"/> <Key Name="Config" Value=&

SQL SERVER BACKUP LOG WITH Truncate_only

  La opción WITH TRUNCATE_ONLY ya no está soportada en SQL Server 2008, para liberar el espacio del LOG tienes que hacer un respaldo FULL o cambiar el modo de recuperación temporalmente a SIMPLE. Después de realizar esto debes hacer un Shrink del archivo LOG lo puede hacer desde el Management Studio o por medio de script. El siguiente es un ejemplo de lo que no está soportado en SQL 2008 BACKUP LOG Test with Truncate_only 'Truncate_Only' is not a recognized BACKUP option. Para hacer el Shrink puedes pobrar   dbcc shrinkfile ([DBName])   Saludos, Eduardo Castro – Microsoft SQL Server MVP 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

nyv9jdhcag

nyv9jdhcag

SQL 2008 Error al restaurar la bd MSDB de una instancia a otra

Si haces un respaldo de la base de datos MSDB y la recuperas en otra instancia puede que se presente este error cuando alguien con pocos privilegios intenta ver los paquetes de jobs en el Management Studio An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) The EXECUTE permission was denied on the object 'xp_sqlagent_enum_jobs', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)   Para solucionarlo MS recomienda ejecutar el siguiente script use msdb go -- Backup the Agent certificate from the remote server to a file BACKUP CERTIFICATE [##MS_AgentSigningCertificate##] TO FILE = 'MS_AgentSigningCertificate.remote_server.cer' go use master go -- re-create the agent certificate on master -- Note: Because we are making these changes using a regular user and not as part of setup, the name -- cannot include the ## token. -- C

Cambios de una tabla con el Management Studio de SQL 2008 no se pueden guardar

Image
En SQL Server 2008 Management Studio puede ser que presente el siguiente error cuando se intenta guardar los cambios realizados a una tabla por medio del diseñador o editor gráfico. Saving Changes in not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created Esta es una advertencia que nos indica que será necesario borrar la tabla, borrar las referencias que existan a ellas y volver a crearlas, durante este proceso se crean tablas temporales con la nueva estructura, se pasan los datos y se crean las tablas nuevas con la nueva estructura. Esta es una operación que requiere muchos recursos del servidor, es por esta razón que no se permite por defecto. Para cambiar este comportamiento tiene que cambiar la opción en Menu >> Tools >> Options >> Designers >> Uncheck “Prevent S