• Your code lis fine, but it seems like you mdf file is corrupted.

    Do you have any backup of the database? If yes try to restore it and run DBCC CHECKDB or DBCC CHECKTABLE (sysobjects) with ALL_ERRORMSGS

    Markus

    [font="Verdana"]Markus Bohse[/font]