How do I open an sdf file in the microsoft office?

Want to make this question better?The question should be on- topic for Stack Overflow.

I would like to query the file with the help of an app.How can I do this?I want to install as little software as possible since I don't have a visual studio on the machine.

The sql server management studio is from Microsoft.You can download it from here.It seems to be free if you download the EXPRESS EDITION.

You might be able to use later editions.You will need to install an extension.

You can copy the sdf file to a different machine if you have the option.