473,395 Members | 2,446 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,395 software developers and data experts.

VB Windows Application and remote Database?


I have a windows application written in VB 6.0 and Microsoft Access. I
have 4 customers using it. One of my customers has set up two offices.
I have a way of putting the Access database on my webserver. Can I
access the Access database from my windows app?

I put a lot of time into this app and would rather add features to it
then rebuild. My customers are very happy with the application. I just
don't have a lot of experience with remote databases. I don't want to
use citrix or set up a vpn. These are small offices.

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
8 4196
Consider converting to SQL Server. You can buy a SQL Server service from
several different ISPs (about $25/mo). With your data out there your users
can access it from Web apps or Windows apps.

HTH

Wayne

"James W. Hall Sr." <jh***@alpha-transportation.com> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...

I have a windows application written in VB 6.0 and Microsoft Access. I
have 4 customers using it. One of my customers has set up two offices.
I have a way of putting the Access database on my webserver. Can I
access the Access database from my windows app?

I put a lot of time into this app and would rather add features to it
then rebuild. My customers are very happy with the application. I just
don't have a lot of experience with remote databases. I don't want to
use citrix or set up a vpn. These are small offices.

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
I have the service already. my question is, what is the best way to
connect my windows app to the database at my ISP?

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
Just create a normal SQL connection - for example:

Dim cst As String
Set myConn = New ADODB.Connection
cst = "Provider=SQLOLEDB; Data Source = 63.209.100.190; Initial Catalog
= myDB; User ID = myID; Password=myPW"
myConn.Open cst

Wayne

"James W. Hall Sr." <jh***@alpha-transportation.com> wrote in message
news:uW*************@tk2msftngp13.phx.gbl...
I have the service already. my question is, what is the best way to
connect my windows app to the database at my ISP?

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #4

Thanks, Wayne.

I'll give it a go. My thoughts were that it was more difficult than
just creating the SQL connection. Thanks again.

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5
When I switched to SQL Server I was surprised at how smooth it was. I love
it!

Wayne

p.s. Good luck on your project.

"James W. Hall Sr." <jh***@alpha-transportation.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Thanks, Wayne.

I'll give it a go. My thoughts were that it was more difficult than
just creating the SQL connection. Thanks again.

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #6
Wayne,

I have switched to SQL SERVER. I have a database at my ISP and
they have created a DSN for me called alphadispatch. I'm having trouble
understanding the connection string for "Data Source =" and "Initial
Catalog ="

Stupid question. How does the connection string find the DSN at my
ISP? Remember I am running this from a VB standard exe.

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #7
I found that trying to get DSNs setup on a service like this was difficult
and/or not supported. I just use a complete connection string in my
application. Such as:

Dim cst As String
Set myConn = New ADODB.Connection
cst = "Provider=SQLOLEDB; Data Source = 63.209.100.190; Initial Catalog
= myDB; User ID = myID; Password=myPW"
myConn.Open cst

Change Data Source to the IP addr or name (e.g. SQLService.com) and then
plug in the name of your DB and the login ID and password.

Wayne

"James W. Hall Sr." <jh***@alpha-transportation.com> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
Wayne,

I have switched to SQL SERVER. I have a database at my ISP and
they have created a DSN for me called alphadispatch. I'm having trouble
understanding the connection string for "Data Source =" and "Initial
Catalog ="

Stupid question. How does the connection string find the DSN at my
ISP? Remember I am running this from a VB standard exe.

James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #8
Wayne,

I have the connection string setup and I had the service setup a DSN
for me. I am still getting a Run Time Error -2147012867 Internet Client
Error - Cannot Connect to Server.

Am I missing anything? Do I need to load IIS or something? I am
going to contact the ISP this morning.

Using this code:

Dim rsgeneric As Recordset
Dim cnngeneric As Connection
Set cnngeneric = New Connection
cnngeneric.Open "provider=ms remote;" _
& "Remote Provider = MSDataShape;" _
& "Remote Server=http://100.70.160.178;" _
& "Data Source=dispatch;" _
& "User Id=dispatch; Password=test"
' Changed the connection, username and password to test info.
Set rsgeneric = New Recordset
Dim strquery As String
strquery = "select * from sysusers"
rsgeneric.Source = strquery
Set rsgeneric.ActiveConnection = cnngeneric
rsgeneric.Open
Do While rsgeneric.EOF = False
Debug.Print rsgeneric(0)
rsgeneric.MoveNext
Loop
rsgeneric.Close
cnngeneric.Close
James W. Hall Sr.
jh***@alpha-transportation.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: William Wisnieski | last post by:
Hello Everyone I've been asked to develop an Access database solution for a small business that currently has three Windows (XP) desktops and one Aapple Emac (OSX) on a peer to peer network. ...
3
by: Elp | last post by:
Hi, I have developped a Windows applcation (in C#) that allows, among other things, users to view and control the desktop of a remote Windows XP Pro machine. I have actually simply embedded the...
5
by: Rajat Tandon | last post by:
Hello Everybody, Please guide me so that I can fulfill this challenging assisnment ... I have been asked to "Restructure a Windows application" from scratch in 2 months. The existing...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
8
by: James W. Hall Sr. | last post by:
I have a windows application written in VB 6.0 and Microsoft Access. I have 4 customers using it. One of my customers has set up two offices. I have a way of putting the Access database on my...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
1
by: CSharpner | last post by:
Short Question: How do I support Cut/Paste to/from a .NET app and Windows Explorer? Full Text: I'm nearing the completion of a Remote File Management application. It looks and feels a lot like...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.