• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

connect to a remote server

Guest
Nov 01, 2007 Nov 01, 2007

Copy link to clipboard

Copied

hi,

i'm not sure how or if this is possible...

i'm at the company network that's setup for coldfusion application (CF 8).

i need to create an ODBC to a SQL server that is NOT in the local network.. it's at a remote datacenter.

i tried this:

jdbc:microsoft:sqlserver://SERVERNAME;DatabaseName=DBNAME
com.microsoft.jdbc.sqlserver.SQLServerDriver

with the username/password

i get this error message:
connection verification failed for data source: DBNAME
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
The root cause was that: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.


is this possible or how can i fix... thanks!





TOPICS
Database access

Views

395

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 01, 2007 Nov 01, 2007

Copy link to clipboard

Copied

Remote access will be better served by ColdFusion's built in JDBC drivers. Use the IP address of the db server, db name, and standard username and password in the config for the MS SQL driver.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 20, 2008 Feb 20, 2008

Copy link to clipboard

Copied

LATEST
Hello guys, I'm trying to do something similar. I need to be able to query a remote mySQL db from a CF server.
Basically what I'm trying to do is this:

1) User selects x amount of products on a website hosted on a PHP Server, where the mySQL DB is.
2) The he submits the form to a CF page on a different server.
3) This CF page then queries the remote DB with the info received from the PHP website and shows the results in a PDF file using CFDocument tag.

Is this possible?

Thanks a lot

Dani Szwarc
Thiez Multimedia
www.thiez.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation