Thursday 7 October 2010

Error intentando acceder a los Packages de Integration Services

Este error me ha sucedido en un servidor dónde instalé SQL Server 2005 usando una instancia con un nombre personalizado: Named Instance. En el caso de servidores con la instalación por defecto no sucede, debido a que la configuración de los Integration Services ya contempla este escenario.

Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

Additional information:
The SQL server specified in SSIS service configuration is not present or is not avaliable. This might occur when there is no default instance of SQL Server on the computer. For more information, see the topic[...]

Login timeout expired
[...]this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
Named Pipes Provider: Could not open a connection to SQL Server [2]. (MsDtsSrvr)
[...]

El origen del error es simple: Integration services no puede encontrar la instancia de SQL Server donde estan almacenados los Packages.

Para saber dónde y cual es el archivo de configuración de Integration Service, se tiene que abrir el Regedit y acceder a la clave de registro:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile

En mi caso el archivo es el siguiente:

C:\Program Files\Microsoft SQL Server\90\DTS\Binn\MsDtsSrvr.ini.xml

Dentro del archivo se tiene que modificar el contenido del tag ServerName, especificando NOMBRE DE SERVIDOR\NOMBRE INSTANCIA.

De esta forma, quedaría un archivo de configuración como: