Re: Invoking ADO.NET Connection String dialog?
From: Ben Fidge (ben.fidge_at_btopenworld.com)
Date: 04/10/04
- Next message: CliffNews: "Executing Stored Proc from file in Ado .NET"
- Previous message: Rick Spiewak: "Re: Using one instance of SqlConnection in an ASP.NET page"
- In reply to: Pablo Castro [MS]: "Re: Invoking ADO.NET Connection String dialog?"
- Next in thread: Pablo Castro [MS]: "Re: Invoking ADO.NET Connection String dialog?"
- Reply: Pablo Castro [MS]: "Re: Invoking ADO.NET Connection String dialog?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 10 Apr 2004 17:10:45 +0100
Pablo,
Thanks for your reponse. I've managed to use the DataLinksClass.PromptEdit
to retrieve an OLEDB Connection string. I've been advised elsewhere on this
newsgroup to check for Sql Server in the return Connection String, and then
simply drop the provider section. All seems ok.
I'm just curious what adding "prompt=prompt" to the connection string before
calling DataLinksClass.PromptEdit actually does?
Thanks
Ben
"Pablo Castro [MS]" <pablocas@online.microsoft.com> wrote in message
news:uBwGjTpHEHA.2836@TK2MSFTNGP11.phx.gbl...
> The data link dialog is an OLEDB feature. ADO.NET does not have a similar
> thing. If you only use the OleDb managed provider in ado.net, you can
still
> have the dialog pop-up by using the same oledb services that are available
> for native code (a simple way is to add "prompt=prompt" in the connection
> string). Note that this won't work for the other providers.
>
> --
> Pablo Castro
> Program Manager - ADO.NET Team
> Microsoft Corp.
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Ben Fidge" <ben.fidge@btopenworld.com> wrote in message
> news:19e7201c41d49$8efab670$a301280a@phx.gbl...
> > How do you invoke the connection string builder (Data
> > Link Properties) dialog box programmatically?
> >
> > I need to be able to allow users to manually build
> > ADO.NET connection strings using the same dialog as the
> > IDE does when you select "New Connection..." in the
> > ConnectionString drop-down in SqlConnection Properties
> > window.
> >
> > Thanks
> >
> > Ben Fidge
>
>
- Next message: CliffNews: "Executing Stored Proc from file in Ado .NET"
- Previous message: Rick Spiewak: "Re: Using one instance of SqlConnection in an ASP.NET page"
- In reply to: Pablo Castro [MS]: "Re: Invoking ADO.NET Connection String dialog?"
- Next in thread: Pablo Castro [MS]: "Re: Invoking ADO.NET Connection String dialog?"
- Reply: Pablo Castro [MS]: "Re: Invoking ADO.NET Connection String dialog?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|