How to convert local path to network path to store my snapshot files

  • hello friends,

    i am trying to develop replication application using C# & .net 2005 with SQL 2005.

    i managed to setup replicaition using sql 2005 management studio.

    now when i want to do it programatically i hv got a problem to store my snapshot files.

    well, i provide the functionality to select the local path to store the snapshot files but i want to store these files on the network.

    so can anyone provide me a way to convert this local path to network path using SQL SMO or RMO programming or any other code.

    i need it very urgently

    Thanks.

  • This is something that was missed out from .Net, but you can use the IWshRuntimeLibrary to convert local path to UNC. You can see details on http://www.fuschi.com/wordpress/?p=17

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • Hi Andras ,

    Thanks for the reply but after implementing the code i m not able to get the required outpu.

    in the code a 'for' loop is used for wich a condition is tested for drives count.

    in my case it the count is returned 0.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply