how to open *.sdf files?

后端 未结 6 1659
别跟我提以往
别跟我提以往 2020-12-07 12:12

I used to open sdf (sqlCE) files with visual-studio? or sql-server? I really don\'t remember. Now I can\'t open this sdf file. With what program do I need to open it?

6条回答
  •  囚心锁ツ
    2020-12-07 12:56

    Try LINQPad, it works for SQL Server, MySQL, SQLite and also SDF (SQL CE 4.0). Best of all it's free!

    LINQPad

    Steps with version 4.35.1:

    1. click 'Add Connection'

    2. Click Next with 'Build data context automatically' and 'Default(LINQ to SQL)' selected.

    3. Under 'Provider' choose 'SQL CE 4.0'.

    4. Under 'Database' with 'Attach database file' selected, choose 'Browse' to select your .sdf file.

    5. Click 'OK'.

    6. Voila! It should show the tables in .sdf and be able to query it via right clicking the table or writing LINQ code in your favorite .NET language or even SQL. How cool is that?

提交回复
热议问题