Check if Sql Server Compact Database(.sdf) contains something without connecting

364 Views Asked by At

Is it possible to determine that an .sdf database contains something without connecting to it initially?

1

There are 1 best solutions below

0
ErikEJ On

You can detect if a file is a SQL Compact database file at all by inpsecting the file header - see http://erikej.blogspot.dk/2008/04/testing-sdf-file-for-version-info.html - but otherwise no