473,473 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 4199
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: 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,...
1
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.