Note, SQL 2005 comes bundled with sqlcmd.exe. isql is depreciated. This script should be updated for 2005.