Avatar of mwagoner_73
mwagoner_73
Flag for United States of America asked on

How do i setup with ODBC connection

I am trying to establish an ODBC connection from our home office to a SQL database on a hosted server @ Rackspace.  I can ping the server but can not establish the connection.  screenshot of error message
Microsoft OfficeDatabasesMicrosoft SQL Server* ODBCSQL

Avatar of undefined
Last Comment
Qlemo

8/22/2022 - Mon
Fabrice Lambert

How do you etablish the connection (give as much details as possible) ?
Do you have any rights on the server ?
Paul MacDonald

Please tell me you're going across a VPN, and not sending this traffic across the Internet unencrypted.

Either way, make sure whatever firewalls are between you and the SQL database allow traffic on port 1433.  You may need others, depending on how you're set up and what your SQL Server is doing.
Fay A

Have you tried connecting by an IP address instead of DSN name?
Your help has saved me hundreds of hours of internet surfing.
fblack61
mwagoner_73

ASKER
I have tried connecting to the IP when connected to the VPN and it returns the same error message.  I can not seem to get port 1433 opened up on the server which maybe the issue??  trying to connect using the SA account... this is SQLExpress (if that matters).
Paul MacDonald

With the VPN up, can you ping the IP address?
mwagoner_73

ASKER
yes, we can ping the IP successfully
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Paul MacDonald

Then it's very likely a firewall/filtering problem.
Qlemo

Very likely a firewall issue. SQL Express usually does not run on port 1433. Instead, UDP 1434 is used to ask for the real port, if you provide an instance name. And that dynamic port might not be set up to allow passing the firewall.
mwagoner_73

ASKER
So how would i go about setting up that dynamic port?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
mwagoner_73

ASKER
I think I got the dynamic port setup...when I try to run through the ODBC connection over the VPN I am still getting errors... see attached screenshots
protocols enabled and dynamic port set to 1433listening on port 1433odbc3.pngodbc2.pngodbc1.png
ASKER CERTIFIED SOLUTION
Qlemo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.