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