Ask a questionAsk a question
 

AnswerExtend Data Connections Explorer

  • Monday, November 02, 2009 11:36 AMJDev Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Does anyone know if you can extend the Data Connection Explorer in VS.  I would like to have a filter feature similar to that of SQL 2008.  When you work with large databases and need to find specific table, functions or stored procedures then scrolling is a nightmare

    Regards
    Jaco 

    Please visi (www.infoslips.com)

Answers

All Replies

  • Tuesday, November 03, 2009 8:50 AMNathan Halstead [MSFT]ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Hi Jaco,

    It sounds like what you are looking for is our Data Designer Extensibility (DDEX) toolkit.  You can learn more about this here:
    http://msdn.microsoft.com/en-us/library/bb165128.aspx

    If this isn't what you are looking for, please let me know.

    Thanks,
    Nathan
  • Tuesday, November 03, 2009 9:10 AMJDev Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you Nathan.  Just a quick question before I start with the R&D on the Toolkit.  Is this the preferred extension method for VS2010?  If VS2010 has a different approach then I will rather develop the VS2010 component

    Regards
    Jaco

    Please visi (www.infoslips.com)
  • Wednesday, November 04, 2009 6:34 AMChao KuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello, Jaco
    You could not change extend the data connection Explore that provided with visual studio. You could create your own data provider use DDEX as Nathan said.
    But you could add, delete data connection programmatically by DataExplorerConnectionManager class.
    DDEX is also preferred extension method in VS2008.
    Thanks
    Chao

  • Wednesday, November 04, 2009 5:28 PMJDev Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Chao,

    My apologies for extending the thread.  But I can not decipher your reply.  Is it possible to add a context menu item that will popup a dialog allowing the user to enter filter criteria?  The filter criteria will then be used to limit the tables, stored procedures, functions etc. that are displayed in the "Data connections explorer"?

    Regards
    Jaco

    Please visi (www.infoslips.com)
  • Friday, November 06, 2009 2:23 AMChao KuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Hello, Jaco
    I am sorry for the lately following up. Fir the functionality of DDEX, you could reference a MSDN blog. You could reference this link, the link is briefly and very clearly.
    Thanks
    Chao
  • Saturday, November 07, 2009 12:19 AMNathan Halstead [MSFT]ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Jaco,

    Sorry for the delayed reply here.  To summarize, yes DDEX is the preffered extensibility mechanism here.  For your scenario, the article Chao has linked to above alludes to filtering being possible with DDEX (Search for the "Server Explorer" section on the page).  While I'm not very framiliar with the DDEX APIs, it looks like what you are looking for is the DavaViewSupport object:  http://msdn.microsoft.com/en-us/library/bb163630.aspx

    Although it is a little dated, there's also a really good general DDEX overview document on MSDN here:  http://msdn.microsoft.com/en-us/library/ms379576(VS.80).aspx

    Thanks,
    Nathan
  • Monday, November 09, 2009 4:44 AMJDev Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Guys,

    Thank you for the assistance.  I will get started on DDEX toolkit and samples.

    Regards
    Jaco
    Please visi (www.infoslips.com)