Computing.Net > Forums > Programming > DB Conection in VB 6.0

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DB Conection in VB 6.0

Reply to Message Icon

Name: Help Needed
Date: June 15, 2002 at 00:57:32 Pacific
Comment:

i need to connect to a db on a web server from a vb application can i do it ? and how?

thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Fred
Date: June 15, 2002 at 16:58:49 Pacific
Reply:

Is the webserver/database remote or local?


0

Response Number 2
Name: Need Help
Date: June 15, 2002 at 22:38:44 Pacific
Reply:

Hi Fred,

the web server is local right now but will be remote in the future
to use it in a local i use the path with the provider - a regular connection with ado, but my question is what or, how to connect to a remote one - using the web as a middle tier.

thanks
Vb Madness


0

Response Number 3
Name: Fred
Date: June 16, 2002 at 00:59:39 Pacific
Reply:

If you are using MS SQL or MS Access you can create a COM object to manage the connection or use a custom handler available in RDS 2. PS: If your using MS Access I would suggest picking up a copy of MySql(free to cheap), Access is a bit weak to build nTier applications on it.

Using a custom handler the connection is pretty much the same as you are using once you are setup. Tweek the registry & .ini for security etc...

Rs.ActiveConnection = “Handler=MyHandler.obj;Provider=MS Remote;Remote Server=http://www.somewhere.com;DSN=dbNameHere;”
Rs.Source = “Select * from Products”
Rs.Open

Heres the tech doc on it:
http://www.microsoft.com/data/ado/rds/custhand.htm

MySql, Oracle as well as most other robust DBs have remote access features built-in.


0

Response Number 4
Name: Vb Madness
Date: June 16, 2002 at 01:46:14 Pacific
Reply:

Fred,

Thanks a Banch, the article really hit the spot, i was looking for it in the crazy world of MSDN
any way, take care.
:)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: DB Conection in VB 6.0

Declaring Variables in VB 6.0 www.computing.net/answers/programming/declaring-variables-in-vb-60/9957.html

VB 6.0 Write datagrid in 4.0 www.computing.net/answers/programming/vb-60-write-datagrid-in-40/8630.html

Function in VB 6 www.computing.net/answers/programming/function-in-vb-6/9626.html