Saper,
The connection creator that you are using is only good for OLE-DB
connections. If you want to use a connection for SQL server, then you could
make sure that the provider is the one for SQL server and then strip off the
provider part, and the rest you should be able to pass to the SqlConnection
constructor.
To use the dialog, you will have to use the IDbPromptInitialize COM
interface with OLE db. The section of the OLE DB Programmer's Reference
titled "Creating Data Source Objects" located at (watch for line wrap):
http://msdn.microsoft.com/library/de...hapter02_2.asp
Should help. You will have to use COM interop, but the interfaces you
need to use and how to use them are defined there.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Saper(ek)" <sa*****@tlen.pl> wrote in message
news:bn**********@atlantis.news.tpi.pl...
when You create a ne sqlconnection, or any other connection, You can use
connection creator to create a connection string. how to do this in Your
own components?
--
"Zeglarstwo jest koniecznoscia
zycie nia nie jest"
www.saper.infra.pl/
Saper(ek)