I'm trying to attach a db file to an MSDE server.
The .mdf and .ldf files attach fine to a SQL Server db either run in VB code or done through Query Analyzer.
When I try to attach the files in VB to MSDE I get the following error:
Database failed to attach
SQL-DMO error: -2147217900 The header for file 'c:\mssql7\Data\testdb.mdf' is not a valid database file header. The PageAudit property is incorrect.
Does anyone know what the problem is?