Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how can i connect to a sql database from vb6 using vb.net appconfig file

26 views
Skip to first unread message

ttckin

unread,
Sep 25, 2008, 9:47:52 AM9/25/08
to
I want to connect to database by using app.config file from vb.net
application. How can i connect? Can I use app.config file from vb6? Please if
anyone knows please tell me. Thanks alot.

MikeD

unread,
Sep 26, 2008, 9:35:54 AM9/26/08
to

"ttckin" <u46465@uwe> wrote in message news:8ab8f82e58d4a@uwe...

You'd have to manually read it. VB6 doesn't inherently read this file for
configuration information. It's just XML, though.

--
Mike
Microsoft MVP Visual Basic

Paul Clement

unread,
Sep 26, 2008, 11:48:25 AM9/26/08
to
On Thu, 25 Sep 2008 13:47:52 GMT, "ttckin" <u46465@uwe> wrote:

¤ I want to connect to database by using app.config file from vb.net


¤ application. How can i connect? Can I use app.config file from vb6? Please if
¤ anyone knows please tell me. Thanks alot.

See the following:

http://vstoolsforum.com/blogs/vbnet/archive/2007/06/23/retrieving-a-connection-string-from-app-config.aspx

Also, you need to post .NET specific questions to the newsgroups that start with
microsoft.public.dotnet.


Paul
~~~~
Microsoft MVP (Visual Basic)

MikeD

unread,
Sep 26, 2008, 2:10:55 PM9/26/08
to

"Paul Clement" <UseAdddressA...@swspectrum.com> wrote in message news:ku0qd4lg4hpbdp88i...@4ax.com...

> Also, you need to post .NET specific questions to the newsgroups that start with
> microsoft.public.dotnet.

Not a .net question. He stated "from vb6".

--
Mike
Microsoft Visual Basic MVP

0 new messages