1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Rep Power
    i want to know how to connect to oracle database using javascript and manipulate the records

  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I am not aware of any way that javascript can connect to a database.

    I connect to databases all the time using PHP.

    Javascript is of course Client Side and Php is Server Side. I wouldn't think there would be any reason for database connectivity being attached to Javascript...I am also sure there would be plenty of Security Issues if you were able to use Javascript in this manner.
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Ft. Lauderdale, FL, US
    Rep Power
    you can use server-side JScript, although this, i'm pretty sure, is only supported by iis. this is how you accomplish it anyways;

    var sqlbeg = "SELECT * FROM sbc WHERE disp = 'F00' AND rec_uid IS NULL";
    var aconn = Server.CreateObject("ADODB.Connection");
    var recset = Server.CreateObject("ADODB.Recordset");
    recset.Open(sqlbeg, aconn, 3, 3);

    you just change the dsn and other jive to that of your oracle db.

Similar Threads

  1. Replies: 0
    Last Post: January 6th, 2004, 02:05 PM
  2. getting javascript error when using PHP and javascript
    By Dalamar in forum JavaScript Development
    Replies: 8
    Last Post: December 17th, 2001, 07:41 AM
  3. Connecting to Oracle via Tomcat
    By wolfespawn in forum Apache Development
    Replies: 1
    Last Post: May 11th, 2001, 05:19 PM
  4. Can't contact with remote oracle server?!
    By net-wolf in forum PHP Development
    Replies: 1
    Last Post: July 13th, 2000, 07:54 PM
  5. Replies: 1
    Last Post: May 5th, 2000, 05:48 AM

IMN logo majestic logo threadwatch logo seochat tools logo