• I've notiched that sometimes sp_attach dosn't work.

    Maybe you could try the command:

    create database cpk on primary (filename='c:\mssql\data\cpk_data.mdf') for attach