Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i tried to attach an SQL database using a system built stored procedure called sp_attach_db

EXEC sp_attach_db @dbname = N'Panorama',@filename1 = N'C:\Import Database\Panorama.mdf',@filename2 = N'C:\Import Database\Panorama_log.ldf'

any time i run it, it gives me this error "Device activation error. The physical file name 'C:\Import Database\Panorama.mdf' may be incorrect."

can anyone help explain to me what the problem is?
Posted

1 solution

The error suggests the problem. The file C:\Import Database\Panorama.mdf does not exist. Check whether the file really exists on the computer where your SQL server installed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900