Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Data Link Dialog Box???

Data Link Dialog Box???

Scheduled Pinned Locked Moved C#
tutorialquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leppie
    wrote on last edited by
    #1

    Hi all, Does anyone how to bring up the DataLink Properties Dialog for editing a connection string, like under the properties of a OleDbConnection? Thanx in advance :) READ MSDN

    R F 2 Replies Last reply
    0
    • L leppie

      Hi all, Does anyone how to bring up the DataLink Properties Dialog for editing a connection string, like under the properties of a OleDbConnection? Thanx in advance :) READ MSDN

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #2

      leppie wrote: Does anyone how to bring up the DataLink Properties Dialog for editing a connection string, like under the properties of a OleDbConnection? Not quite sure what you are asking. If you just want to modify the connection in a Wizard form, you can righ click on the connection you used in the Server Explorer and select Modify Connection. Rocky Moore

      1 Reply Last reply
      0
      • L leppie

        Hi all, Does anyone how to bring up the DataLink Properties Dialog for editing a connection string, like under the properties of a OleDbConnection? Thanx in advance :) READ MSDN

        F Offline
        F Offline
        Feng Qin
        wrote on last edited by
        #3

        Code: MSDASC.DataLinks dl = new MSDASC.DataLinks(); dl.PromptNew(); You can find the whole information on msdn : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlmag2k/html/LinkAPI.asp In C# project, you should add a com reference named : Microsoft OLE DB Service Component 1.0 Type Library Good luck! :rolleyes: I'm amumu, and you?

        L 1 Reply Last reply
        0
        • F Feng Qin

          Code: MSDASC.DataLinks dl = new MSDASC.DataLinks(); dl.PromptNew(); You can find the whole information on msdn : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlmag2k/html/LinkAPI.asp In C# project, you should add a com reference named : Microsoft OLE DB Service Component 1.0 Type Library Good luck! :rolleyes: I'm amumu, and you?

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Thx :), exactly what I need, but how does one "cast" the returned object to an OleDbConnection? or a ConnectionString? I presume I will need to implement a UITypeEditor as well as I need to show the property through a property grid. :) READ MSDN

          F 1 Reply Last reply
          0
          • L leppie

            Thx :), exactly what I need, but how does one "cast" the returned object to an OleDbConnection? or a ConnectionString? I presume I will need to implement a UITypeEditor as well as I need to show the property through a property grid. :) READ MSDN

            F Offline
            F Offline
            Feng Qin
            wrote on last edited by
            #5

            MSDASC.DataLinks dl = new MSDASC.DataLinks(); ADODB.Connection connection = dl.PromptNew() as ADODB.Connection; if( null != connection ) MessageBox.Show( connection.ConnectionString ); You should add reference "Microsoft OLE DB Service Component 1.0 Type Library" and the "Microsoft ActiveX Data Objects 2.5 Library" to your project's reference.:rolleyes: I'm amumu, and you?

            L 1 Reply Last reply
            0
            • F Feng Qin

              MSDASC.DataLinks dl = new MSDASC.DataLinks(); ADODB.Connection connection = dl.PromptNew() as ADODB.Connection; if( null != connection ) MessageBox.Show( connection.ConnectionString ); You should add reference "Microsoft OLE DB Service Component 1.0 Type Library" and the "Microsoft ActiveX Data Objects 2.5 Library" to your project's reference.:rolleyes: I'm amumu, and you?

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #6

              Hi and thx :) qf0421 wrote: MSDASC.DataLinks dl = new MSDASC.DataLinks(); ADODB.Connection connection = dl.PromptNew() as ADODB.Connection; then as I'm using OleDb: OldDbConnection conn = new OleDbConnection(connection.ConnectionString); ? Cant test now but it should work. It just seems a bit over the top for such a "small" thing. Another question, if you want to run this on another machine, do u need to register both dll's on the other PC or is the Interop.*.dll files ok for that? :) READ MSDN

              F 1 Reply Last reply
              0
              • L leppie

                Hi and thx :) qf0421 wrote: MSDASC.DataLinks dl = new MSDASC.DataLinks(); ADODB.Connection connection = dl.PromptNew() as ADODB.Connection; then as I'm using OleDb: OldDbConnection conn = new OleDbConnection(connection.ConnectionString); ? Cant test now but it should work. It just seems a bit over the top for such a "small" thing. Another question, if you want to run this on another machine, do u need to register both dll's on the other PC or is the Interop.*.dll files ok for that? :) READ MSDN

                F Offline
                F Offline
                Feng Qin
                wrote on last edited by
                #7

                I think all dlls you refered are running at local machine, and two support remoting: web service and system.remoting, right? I'm not sure about it.:| And also you can notice if you add a reference, vs.net will copy the file to your bin directory, does it means dll will be invoked local? I'm amumu, and you?

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups