server explorer find data connection RRS feed

  • Question

  • How do you find the data connection in Server Explorer in the Exec method of the Connect class in an AddIn project?

    UML, then code

    Friday, April 13, 2012 11:06 PM

All replies

  • Hi Berlioz99,

    The object in Server Explorer is repersented as UIHierarchy object. You can access it via Visual Studio Automation object DTE and then obtain the server explorer window object .



    Yi Feng Li [MSFT]
    MSDN Community Support | Feedback to us

    Monday, April 16, 2012 8:55 AM
  • Yes, I know this, but then, (1)how do you get a reference to the Data Connection node the user has selected?...and then (2)extract the connection string value

    UML, then code

    Monday, April 16, 2012 9:20 AM
  • Have you try to record a Marco to see what kind of object you can get?
    Friday, April 20, 2012 3:41 AM