Search This Blog

August 25, 2014

SSIS 2012 FTP Task Error to connect to FTP server

You can use the following ftp server for testing FTP Connection.
Use anonymous user without having any password ftp2.census.gov

Following are the error message while connecting and receiving the files from FTP SERVERS.
Error
An error occurred in the requested FTP operation. Detailed error description: 200 Switching to ASCII mode. 200 PORT command successful. Consider using PASV. 425 Failed to establish connection Exception from HRESULT: 0xC001602A

Resolution:

1. Create an inbound and outbound rule to allow the FTP PORT(21) to OPEN
2. Select the FTP Connection to "Use Passive Mode"

October 30, 2013

IIS HTTP Error 503. The service is unavailable

This error might happen if the application pool for the web site account password is changed and not updated,
  • Open the IIS Manager
  • Go to Application Pools
  • Select the Application Pool related to the website.
  • Right Click and select Advanced Settings
  • under Process Model Select Identity
  • Click on ... button next to the the user name
  • Click on "Set"
  • Enter the user name and new password
  • Click Ok and close the popup windoos
  • Start the application Pool
  • April 24, 2013

    Not able to drop sql server database

    Error Message:

    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

    Cannot drop the database '' because it is being used for replication. (Microsoft SQL Server, Error: 3724)


    Resolution:
      Execute the following command then drop the database. 

    sp_removedbreplication ''

    November 16, 2012

    How to know when the database is last restored

     SELECT [rs].[destination_database_name], 
    [rs].[restore_date], 
    [bs].[backup_start_date], 
    [bs].[backup_finish_date], 
    [bs].[database_name] as [source_database_name], 
    [bmf].[physical_device_name] as [backup_file_used_for_restore]
    FROM msdb..restorehistory rs
    INNER JOIN msdb..backupset bs
    ON [rs].[backup_set_id] = [bs].[backup_set_id]
    INNER JOIN msdb..backupmediafamily bmf 
    ON [bs].[media_set_id] = [bmf].[media_set_id] 
    ORDER BY [rs].[restore_date] DESC