Locked SqlMetadataStore.OpenStore()

  • Tuesday, April 21, 2009 9:53 AM
     
     
    The SqlMetadataStore.OpenStore() methode needs to have a overload with SqlMetadataStore.OpenStore(Stream strem).
     For example i can oben files as stream on a PPC but there is not opertunity to open a SqlMetadataStore from this stream.
    Please make this avalible because i want to store the metafile for my CeFileSyncProvider on the device...

All Replies

  • Wednesday, April 22, 2009 6:15 PM
    Answerer
     
     
    Hi -

    I am assuming that PPC stands for PocketPC. It would be a better idea  to open the metadata store file directly even as a stream for performance issues. You would be better off transferring the file to local disk and doing metadata maintenance there and later after synchronization is complete you can transfer the file back to the device if you want the file to travel along with the device.

    Thanks
    Deepa
    Deepa ( Microsoft Sync Framework)
  • Thursday, April 23, 2009 12:19 PM
     
     

    yes that is exactly what i want. ^^ I have a direct IO.Stream (over RAPI2 this is possible) to a file on the ppc (Pocket PC)  and i want to use them as metastore without making local copy. I really think this where good to have a SqlMetadataStore.OpenStore(Stream stream) overload. Please put it into next version. Only a string to a local filebase is not really flexible. Please make my dreams come true. :)

  • Friday, April 24, 2009 1:53 AM
    Answerer
     
     

    Hi -

    Given that you are able to open a Stream to the file - did you try opening the file using the file location? I am trying to understand why you think supporting Stream would be useful for you given that is a file that you are opening.

    Deepa


    Deepa ( Microsoft Sync Framework)
  • Friday, April 24, 2009 8:36 AM
     
     
    Ok i see i telling the hole story. :)

    I developt the MobileCommunicationFramework.Net, in this framework there is a class called CeFileInfo. With the method .Open() i get a regular System.IO.Stream direct to the file on the PocketPC. (without copy it to a local location)
    The problem with the SqlMetadataStore.OpenStore(String string) method is, when i gave here the path "/MyDirectory/" (path on PPC) it will not understand this term. If it hat a SqlMetadataStore.OpenStore(Stream stream) overload i can use a sqlMetaStore file direct from the PPC, and this where great. :)

    I hope my explaination is understandable!? *shame*
    My english is not so good. 

    Greetings from sunny baltic see. 
  • Wednesday, May 06, 2009 5:17 PM
    Answerer
     
     
    Hi Steven -
    Ok I understand now but still this is impossible for us to expose opening the file as a stream. We need to be passed a location to the file so that we open the file correctly ( it is an underlying database file) - there is not much we can do with a handle to a Stream other than possibly use it to copy the file locally and then open the database file. I hope this makes sense.

    Thanks
    Deepa

    Deepa ( Microsoft Sync Framework)
  • Wednesday, May 06, 2009 9:09 PM
     
     
    Hi Deepa,

    no sorry i dont understand. :( Because in your class i think you can also only take the path-string open a filestream to the file from this string and read the underlying database file. So sorry i dont understand why this is impossible. But you will know better about your code.

    What a pity! With this single overload its not really flexible. I have many scenarios where this can be really usefull.

    But thanks :( :( :( :( :( :( :( :(