Results 1 to 2 of 2

Thread: Connecting & Querying SQL without webserver access

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Connecting & Querying SQL without webserver access

    Hi all,

    I have a bit of a conundrum that I was hoping you guys can help toss ideas with. Is there any way to connect to a SQL (via ODBC or JDBC) with only JS? I don't have access to the web server and can't create PHP/ASP scripts for the actual query. I also can't get access to create a web service to perform any JSONP or XML responses.

    From what I've seen, the only available is an ActiveX connection but I'm a bit leery about that with all the security issues.

    Is there any other way you guys can think of by using strictly on JS to query a SQL DB?


    Much thanks!

    EDIT: I know: "Javascript cannot access your database. If you've got a MySQL or SQL Server database on your server, you cannot use Javascript to access it directly - you'll need to use a server-side language (e.g. PHP, ASP etc) for that." but there is a ActiveX workaround. Just wondering if there was any other option.
    Last edited by pli; 07-18-2012 at 05:37 PM.

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    I don't know about any ActiveX workarounds, but wouldn't it just be simpler to download a localhost serve so that you can run php on your own computer, ie, wamp.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

Bookmarks

Posting Permissions

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