Is there a free “Add Connection” or “SQL Connection” Dialog?

前端 未结 3 1501
梦毁少年i
梦毁少年i 2020-12-16 04:16

I like the \"Add Connection\" or \"SQL Connection\" dialog that is in Visual Studio in Server Explorer window. I also like the one in CodeSmith. I would like to have that s

相关标签:
3条回答
  • 2020-12-16 05:08

    You would have to implement it yourself. It comes as part of the installtion of VS.NET, and if you were to access it, I am sure the EULA would require a license for VS.NET on every machine you ran this on.

    That being said, you will have to implement this yourself. Unfortunately, Google turns up nothing when queried for an open source add connection dialog.

    0 讨论(0)
  • 2020-12-16 05:15

    Here you go:
    SQL Connection Dialog
    http://www.codeproject.com/KB/vb/SQL_Connection_Dialog.aspx

    Edit:
    It seems that the above example is using MSDASC.DataLinks.ui wich is not allowed to redistribute.

    There are a request of making the MSDASC.DataLinks ui distributable: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=291885

    So it will only work if the end user has VS installed. Not good enough. I will not delete this answer because of the project is still a good start if you want to make your own dialog.

    Edit 2:
    More on the subject:
    Using the Choose Data Source dialog of Visual Studio 2005 from your own code
    http://www.mztools.com/articles/2007/MZ2007011.aspx and http://www.clariusconsulting.net/blogs/kzu/archive/2006/03/01/ReferenceRelativePath.aspx

    0 讨论(0)
  • I was looking for exactly that, and it appears that Microsoft has published the source for the Visual Studio connection dialog, so that it can be used outside VS :

    http://code.msdn.microsoft.com/Connection

    I just tried it, it works fine :)

    0 讨论(0)
提交回复
热议问题