User Tag List

Results 1 to 6 of 6

Thread: ODBC object and SQL

  1. #1
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ODBC object and SQL

    I've been trying to use the ODBC object to connect directly to an SQL server for the purposes of an online high score table, rather than sending the data in a URL to a PHP page, as I did before. (I'm aware that that sentence is largely composed of acronyms, but I can't word it any better).

    Trouble is, I can't connect to the SQL server - I'm certain that I'm putting the address in correctly (it's copied straight out of the old PHP page), but I keep getting SQL error 11004 - Connection failed, followed by SQL error 6 - Cannot connect to the SQL server. (This is at the "Create new data source" stage of the process - I'm using the "SQL Server" driver.)

    I suspect that it might be to do with the server only allowing connections from specific places. Has anyone else had better luck with this kind of thing?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ODBC object and SQL

    I've been trying to use the ODBC object to connect directly to an SQL server for the purposes of an online high score table, rather than sending the data in a URL to a PHP page, as I did before. (I'm aware that that sentence is largely composed of acronyms, but I can't word it any better).

    Trouble is, I can't connect to the SQL server - I'm certain that I'm putting the address in correctly (it's copied straight out of the old PHP page), but I keep getting SQL error 11004 - Connection failed, followed by SQL error 6 - Cannot connect to the SQL server. (This is at the "Create new data source" stage of the process - I'm using the "SQL Server" driver.)

    I suspect that it might be to do with the server only allowing connections from specific places. Has anyone else had better luck with this kind of thing?

  3. #3
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC object and SQL

    Databases provided by Webhosts are normally behind a firewall and as such you probably never be allowed to connect to it from outside the webserver. Your PHP will connect to it because it runs on the server your host provides and is set up that way.

    Have you tried to connect to your SQL Server from your PC with other applications (eg: create an ODBC connection from Excel) ? If you can't connect with other applications then there's your answer.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC object and SQL

    Databases provided by Webhosts are normally behind a firewall and as such you probably never be allowed to connect to it from outside the webserver. Your PHP will connect to it because it runs on the server your host provides and is set up that way.

    Have you tried to connect to your SQL Server from your PC with other applications (eg: create an ODBC connection from Excel) ? If you can't connect with other applications then there's your answer.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC object and SQL

    It's not a database provided by a webserver, but you're probably right nonetheless. The PHP route it is, then.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC object and SQL

    It's not a database provided by a webserver, but you're probably right nonetheless. The PHP route it is, then.

Similar Threads

  1. (Maybe) figuring out the ODBC object...
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th October 2011, 07:14 PM
  2. ODBC object tutorial?
    By LeGauche in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th May 2011, 02:25 AM
  3. ODBC object
    By Trying2learn in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 12th November 2006, 09:16 PM
  4. ODBC object specifics
    By LeGauche in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st August 2006, 06:56 PM
  5. Using ODBC object
    By Wingamez in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 19th July 2006, 12:47 AM

Posting Permissions

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