473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

connect to a website database from vb application!!

hi everybody.
from a [vb6 or vb.net] application i need to connect to a database thet located
in a website!!
now how i connect!
can somebody show me a sample code for it?
Nov 28 '07 #1
1 2820
Dököll
2,364 Expert 2GB
hi everybody.
from a [vb6 or vb.net] application i need to connect to a database thet located
in a website!!
now how i connect!
can somebody show me a sample code for it?
Greetings and salutations, ghasemabedi!

I can start you off connecting to the site, you 'll need to do some leg work to fit your purpose:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub LoadMyWebDatabase_Click()
  3.    Dim LoadingIE As Object
  4.    Dim LoadingItem As Object
  5.    Dim LoadingMain As Object
  6.  
  7. 'Making it happen here, building IE session.
  8.    Set LoadingIE = CreateObject("internetexplorer.application")
  9.  
  10. 'Loading URL of your database.
  11.   LoadingIE.Navigate ("www.YourDatabase.com")
  12.  
  13. 'Here's a chance to wait for YourDatabase to load.
  14.    Do While (LoadingIE.ReadyState <> 4)
  15.    Loop
  16.  
  17. 'Here's a chance to manage the main item.
  18.    Set LoadingItem = LoadingIE.Document
  19.  
  20. 'Here's a chance to manage the main object.
  21.    Set LoadingMain = LoadingItem.Body
  22.  
  23. 'You can remove this to load site straight away...
  24.    If (MsgBox("Would you like to load YourDatabase on the web?", _
  25.    vbQuestion + vbYesNo, "Loading YourDatabase!") = vbYes) Then
  26.  
  27. 'Loading your wonderful database
  28.    LoadingIE.TheaterMode = True
  29.    LoadingIE.TheaterMode = False
  30.    Else
  31.  
  32.  
  33. 'Close your database and call it a day...
  34.    LoadingIE.quit
  35.  
  36.    End If
  37.  
  38. End Sub
  39.  
  40.  
that oughta do it;-)

Please stay tuned for added support, if needed.

Good luck and welcome!

Dököll
Nov 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: afila | last post by:
Hello, Im trying to get some kde database application working, but I cant get them connected to the postgres server. psql connect seamlessly with - lets say - music database. But kde application...
1
by: CrystalDBA | last post by:
I have been building ASP, ASP.NET and Crystal Reports on SQL server for a few years now. I have build them mostly on an Intranet or with companies that have their own web servers. I now need...
2
by: kat0 | last post by:
Hi. I Have to do a muliple database application (think in a simple form that add, remove, and modify some table/s). But The problem is that the Database destination depends, can be per example SQL...
7
by: vigneshwaran G via DotNetMonster.com | last post by:
Hi , I am trying ot connect a VB application to Access database. iam using the following connection string : con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;data source=c:\...
0
by: D0c | last post by:
Hey, I would like to syncronize my local database with my website database. Scenarios are 1. New rows / row updates in the local database to be updated on the website database (local -net) 2....
4
by: Gourk | last post by:
I'm fairly new to the whole MySQL thing, But not new to SQL. So doing most of this was fairly easy, but I have a hosting service with Godaddy.com, and Yes it supports MySQL 5.0 and is installed and...
0
by: binitarana | last post by:
I have a problem with .net application. We have an application created in VB.Net. It's a client server application. The database is SQL Server 2000. 5-6 clinet machine are accessing the server....
2
navanova
by: navanova | last post by:
Hi Guys, I've developed a C# application and managed to install it on the client PC Successfully. The application uses SQL server 2000 database. The application is installed on the client PC without...
1
by: abhijitbkulkarni | last post by:
Hello, I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but...
3
ssnaik84
by: ssnaik84 | last post by:
Hi Guys, I’m developing a website (in ASP.NET MVC) which allows users to join with GFC (Google Friend Connect). But, if users want, they can maintain their personal profile on my website (like...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.