How to know which service is configured DSServiceLDB or DSServiceSQL in local machine?

Beantwortet How to know which service is configured DSServiceLDB or DSServiceSQL in local machine?

  • Wednesday, June 13, 2012 6:54 AM
     
     

    Hi,

    In Windows Azure SDK 1.7, we can configure the the development storage location either localDB or SQL server. How can I Programatically know that which service (DSServiceLDB or DSServiceSQL) is configured in the local machine so that I can run only that service.


    KK Yadav


    • Edited by KK Yadav Wednesday, June 13, 2012 6:55 AM
    •  

All Replies

  • Wednesday, June 13, 2012 3:07 PM
    Moderator
     
     Answered

    Hi,

    You can redirect to this path “C:\Users\SALX\AppData\Local\DevelopmentStorage\DevelopmentStorage.201206.config” for more configurations.

    Hope this helps.


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Thursday, June 14, 2012 10:02 AM
    Moderator
     
     Answered Has Code

    Hi,

    I think the code should works in your situation, you can have a try, if you have any further question, please post on this thread and i will glad to follow up:

    if(SQLInstanceText== ("localDB\v11.0"))
    {
      // Start DSServiceLDB
    }
    else
    {
      // Start DSServiceSQL
    }
    
    Hope this helps.

    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework