473,386 Members | 1,720 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,386 software developers and data experts.

What is wrong with my connection.

Experts

I'm experimenting with ADP and MSDE and I'm trying to connect a remote
front end through the internet.

I have already enabled TCP/IP connection on port 1433 on the MSDE host
computer and at the remote client computer on the File>Connection>Data
link properties I'm using an IP address for the server name which I got
from the LOG file of MSDE (192.168.xxx.xx,1433) but then I realised
that that IP could not be used to connect from a remote computer, but
then only that IP and a 127.xxx.xxx were listed as "listening" on the
LOG file, so I went to www.whatismyip.com and used that IP,1433 (not
static) instead and still nothing. I have already tried setting my
firewall to accept connection from the remote computer by specifying
its IP address but no luck either.

Can someone please tell me what is the right procedure to distribute
ADP, ADE applications to remote computer and connect them to a back end
database (MSDE) through the internet?

GAVO.

Nov 18 '05 #1
3 1879
Let's look at a typical (for me) connection string to an Internet
Enabled MS-SQL db.

Sub a()
Dim c As ADODB.Connection
Set c = New ADODB.Connection
With c
.Open "PROVIDER=SQLOLEDB.1" _
& ";INITIAL CATALOG=DatabaseName" _
& ";DATA SOURCE=server.ipaddress" _
& ";USER ID=USERID" _
& ";PASSWORD=Password"

Debug.Print .State = adStateOpen
' shows True
End With
End Sub

What might be wrong?

Did you specify the correct server name and ip address in the Data
Source?

You've specified Port 1433. Port 1433 is sometimes blocked by ISP
providers. Have you tried using another port for both the in and the
out? (It may be bad practice to use 1433 anyway, as it is likely to be
the first port tested by SQL hackers).

You stated previously that you are trying to connect via Dial Up. Maybe
this is OK. Maybe it isn't. I would never have thought that a Dial Up
would be sufficient to do an MS-SQL connection and so I have never
tried.

You are using MSDE. I've never tried MSDE via the Internet. If you're
using an ADP, you should be aware that one ADP can (yes, I have seen
this after hearing some new swear words from an SA) make multiple
(multiple -> more than two) connections to the db. Perhaps, over the
internet MSDE recognizes each connection as a user and balks?

If you are desperate and trusting send me your connection info and let
me try connecting.Maybe your workstation TC etc is not set up properly
for this.

Nov 18 '05 #2
Have you got msn messenger? if yes this is mine: ga******@hotmail.com

It would be greate if you could help me test the connection.
GAVO.

lylefair wrote:
Let's look at a typical (for me) connection string to an Internet
Enabled MS-SQL db.

Sub a()
Dim c As ADODB.Connection
Set c = New ADODB.Connection
With c
.Open "PROVIDER=SQLOLEDB.1" _
& ";INITIAL CATALOG=DatabaseName" _
& ";DATA SOURCE=server.ipaddress" _
& ";USER ID=USERID" _
& ";PASSWORD=Password"

Debug.Print .State = adStateOpen
' shows True
End With
End Sub

What might be wrong?

Did you specify the correct server name and ip address in the Data
Source?

You've specified Port 1433. Port 1433 is sometimes blocked by ISP
providers. Have you tried using another port for both the in and the
out? (It may be bad practice to use 1433 anyway, as it is likely to be
the first port tested by SQL hackers).

You stated previously that you are trying to connect via Dial Up. Maybe
this is OK. Maybe it isn't. I would never have thought that a Dial Up
would be sufficient to do an MS-SQL connection and so I have never
tried.

You are using MSDE. I've never tried MSDE via the Internet. If you're
using an ADP, you should be aware that one ADP can (yes, I have seen
this after hearing some new swear words from an SA) make multiple
(multiple -> more than two) connections to the db. Perhaps, over the
internet MSDE recognizes each connection as a user and balks?

If you are desperate and trusting send me your connection info and let
me try connecting.Maybe your workstation TC etc is not set up properly
for this.


Nov 18 '05 #3
"GAVO-UK" <an****@peopleex.com> wrote in news:1132322373.440270.152270
@o13g2000cwo.googlegroups.com:
Have you got msn messenger? if yes this is mine: ga******@hotmail.com

It would be greate if you could help me test the connection.
GAVO.


I'm sorry that I don't have time to address this interactively, but if you
send me your connection information

ly***********@aim.com

I will try to see if I can effect a connection and let you know my results.
This will rule out some peculiarity of machine.

--
Lyle Fairfield
Nov 18 '05 #4

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

Similar topics

1
by: iam247 | last post by:
Hi I have a web page which receives information from a form (using request.form) and also attempts to look at an Access query to read in recoeds to a variable named rsGroup. When I have the...
10
by: Daniel Sélen Secches | last post by:
I was trying to make a simple dataReader.... Sub projets() Dim conn As New OleDbConnection(connstring) Dim dr As OleDbDataReader() Dim cmd As New OleDbCommand() cmd.CommandText = "select *...
4
by: Hyphessobrycon | last post by:
Private Sub btnrubriekbij_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnrubriekbij.Click 'insert hier Dim cn As New OleDb.OleDbConnection(constr) Dim dc As...
0
by: Arielle | last post by:
Please tell me what's wrong with this picture. public class MyClass { SqlConnection ConnectionSql = null; SqlCommand CommandSql = null; SqlDataReader QueryResult = null;
5
by: darthghandi | last post by:
I've created a class to listen to all interfaces and do a BeginAccept(). Once it gets a connection, it passes the connected socket off and stores it in a List. Next, it continues to listen for...
2
by: estherschindler | last post by:
For a lot of IT people -- everyone from software developers to tech writers to network support folks -- telecommuting is the best personal option. They get a flexible schedule, they aren't bothered...
167
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an...
0
by: lopes80andre | last post by:
Hi, I'am trying to configure a Postfix server to send e-mails by SMTP using the SMTP server of my ISP. I have made a Postfix installation as "Internet with Smarthost". I'am using a domain in...
0
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.