Connecting to Remote Data Sources

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Connecting to Remote Data Sources

    Hi, I am trying to create a new DSN on a CF web server hosted with our ISP. My
    problem is that the actual SQL Server database is located our local network.
    The local server is running Windows 2000 Server with MX7 and SQL Server 2000,
    the web server is running on Windows Server 2003 with MX 6.1

    If have looked and searched through this forum, but couldn't find any
    articles. Any help with the set up procedure will be highly appreciated!!

    Regards
    Ed

    schmedi Guest

  2. Similar Questions and Discussions

    1. Data Sources
      Can anyone tell me how to get a list of Data Sources from CF server using cfml? Thanks: Phil
    2. backup data sources
      Is it possible to backup data sources from one server to another? I need to move data sources from Coldfusion MX to Coldfusion MX 7 server. Thanks...
    3. Restoring data sources in CF 5.0
      Hello guys, Could you please suggest a way to backup data sources for sybase, oracle and db2 from one UNIX server (Solaris) to another Solaris...
    4. The IListSource does not contain any data sources. <-- ?
      Hi When I execute an SQL steatement, I retreive a Dataset. For some queries which does not return any data, If I assign it to the...
    5. how to access data from 2 different sources?
      I need to use data from multiple tables that are located in 2 different databases. Most of the tables are in SQL Server 2000 but 1 one the tables I...
  3. #2

    Default Re: Connecting to Remote Data Sources

    schmedi wrote:
    > Hi, I am trying to create a new DSN on a CF web server hosted with our ISP. My
    > problem is that the actual SQL Server database is located our local network.
    > The local server is running Windows 2000 Server with MX7 and SQL Server 2000,
    > the web server is running on Windows Server 2003 with MX 6.1
    >
    > If have looked and searched through this forum, but couldn't find any
    > articles. Any help with the set up procedure will be highly appreciated!!
    >
    > Regards
    > Ed
    >
    CF doesn't care where the database server is--based on what you're
    describing, as long as your SQL Server database is accessible over the
    internet it will work. You'll need to expose your database server to
    the internet in order for your hosting company's CF server to be able to
    hit it.

    Matt

    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  4. #3

    Default Re: Connecting to Remote Data Sources

    Hi Matt, thank you for the reply. Can you point me in the direction of a good
    technote or tutorial that would give me some information on how to achieve
    this. I am still fairly new to CF and have only worked with local data sources.

    Any assistance, will be much appreciated!!

    Tx
    Ed

    schmedi Guest

  5. #4

    Default Re: Connecting to Remote Data Sources

    schmedi wrote:
    > Hi Matt, thank you for the reply. Can you point me in the direction of a good
    > technote or tutorial that would give me some information on how to achieve
    > this. I am still fairly new to CF and have only worked with local data sources.
    >
    > Any assistance, will be much appreciated!!
    >
    > Tx
    > Ed
    >
    Basically it's the same whether the datasource is local or remote. If
    you create a local datasource for SQL Server you still have to point to
    the "server" which is just localhost in that case. If you are pointing
    to a remote server you just have to use the full domain name for the
    server or an IP address and that's pretty much it. In other words, it's
    just like creating a local SQL Server datasource, you just point to a
    remote server.

    Let me know if that doesn't make sense.

    Matt

    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  6. #5

    Default Re: Connecting to Remote Data Sources

    Hi Matt, thanks for explaining that a bit more, however I still can't connect.
    I copied to the exact connection details of the local DSN setup in the CF
    Administrator to the remote CF Administrator on our ISP's server, only changing
    the server details to point to our local servers external IP address, like
    below.
    Name: MyDB
    Database: TestConnect
    Server: xxx.yy.zzz.aa
    Port: 1433
    Username: MyUsername

    However the connection fails with the following error:

    Connection verification failed for data source: SQLFunctions
    []java.sql.SQLException: Timed out trying to establish connection
    The root cause was that: java.sql.SQLException: Timed out trying to establish
    connection

    I also tried changing the port number to 80 and 8080, with no luck. The local
    DSN runs on port 1433.

    We have a CF application running on the local server, which is externally
    accessible, so the server is accessible. Could our firewall be blocking access
    to the database or do we perhaps need to create another trusted SQL User? Do
    you know of any test databases that I can try and connect to, to see if the
    problem lies with our ISP?

    Tx
    Ed



    schmedi Guest

  7. #6

    Default Re: Connecting to Remote Data Sources

    schmedi wrote:
    > Hi Matt, thanks for explaining that a bit more, however I still can't connect.
    > I copied to the exact connection details of the local DSN setup in the CF
    > Administrator to the remote CF Administrator on our ISP's server, only changing
    > the server details to point to our local servers external IP address, like
    > below.
    > Name: MyDB
    > Database: TestConnect
    > Server: xxx.yy.zzz.aa
    > Port: 1433
    > Username: MyUsername
    >
    > However the connection fails with the following error:
    >
    > Connection verification failed for data source: SQLFunctions
    > []java.sql.SQLException: Timed out trying to establish connection
    > The root cause was that: java.sql.SQLException: Timed out trying to establish
    > connection
    >
    > I also tried changing the port number to 80 and 8080, with no luck. The local
    > DSN runs on port 1433.
    >
    > We have a CF application running on the local server, which is externally
    > accessible, so the server is accessible. Could our firewall be blocking access
    > to the database or do we perhaps need to create another trusted SQL User? Do
    > you know of any test databases that I can try and connect to, to see if the
    > problem lies with our ISP?
    >
    > Tx
    > Ed
    >
    >
    >
    To me it sounds like that means your SQL Server isn't accessible over
    the internet. Based on the situation you described earlier this is
    probably more likely with your internal network (firewall blocking
    traffic over port 1433, for example), so I'd check there first, then if
    your network admins say everything's good on your end, check with the
    ISP to see if there might be some issues there.

    Matt

    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139