Results 1 to 4 of 4

Thread: Location of the SDF

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    52

    Location of the SDF

    Hello All,

    I am developing an order taking application and am testing through the emulator. I am inserting orders into my SDF but where can i find this SDF to open the tables on my hard disk? I can see the SDF on the emulator under Program Files\MyApp but i could do with viewing the entries in the tables but am struggling to find it.

    Also, while i'm here, When i close my app down in the emulator but then re-launch it, its 'state' from when it was cloed down is saved. Is there a setting so that the app starts up first time?

    many thanks

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Location of the SDF

    Hey,

    When you deploy your application to the Emulator, Visual Studio should also have deployed the Query Browser Application for SQL Server Compact. This will let you query the SDF file in the same way as you would a full blown instance of a SQL Server Database. Does this fit your requirement?

    If not, you will have to manually take the SDF file off the file system of the Emulator. One way of doing this would be to connect the Emulator up to ActiveSync, then browse the device, and then copy and paste the SDF file over. That will then let you load it up in something like Visual Studio.

    As for your second point...

    By default, Windows Mobile Applications don't exit when you hit the button at the top right hand corner, they simply minimize. That means that when you fire it up again, it is just bringing the minimize version into focus. One way around this would be to hide the Minimize Button, and always show the close button, or add a button to your form that explicitly calls Application.Exit().

    Hope that helps!!

    Gary

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    52

    Re: Location of the SDF

    that was a big help, thanks a lot!

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Location of the SDF

    Hey,

    Not a problem at all!!

    Let me know if you have any other questions.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width