JAVASCRIPT create connect to database adodb javascript - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution

how to create the connect to a database with ADODB using javascript ?


 534

JAVASCRIPT


3

function createConnection() {
var connection = new ActiveXObject("ADODB.Connection");

var connectionstring = "Dbq=xxx;Uid=xxx;Pwd=xxx";

try {
connection.Open("Driver={Oracle in OraClient12Home1};" + connectionstring);
} catch (e) {
connection.Open("Driver={Oracle in OraClient12Home1_32bit};" + connectionstring);
}

return connection;
}

// calling a function

var connection = createConnection();
var rs = new ActiveXObject("ADODB.Recordset");

rs.Open("YOUR SELECT", connection);

// do something ...


By     Created   
The power of the user (%)
72%

JAVASCRIPT


1

// important : ActiveXObject works only for IE (new ActiveXObject("ADODB.Connection"))


By     Created   
The power of the user (%)
72%



The most helpful JAVASCRIPT solutions

How to get client machine name or computer name with javascript ?How to get client machine name or computer name with javascript ?JAVASCRIPT

Click to see more ...

  5.3K     384

get client hostname javascriptget client hostname javascriptJAVASCRIPT

Click to see more ...

  3.2K     263

detect ie javascriptdetect ie javascriptJAVASCRIPT

Click to see more ...

  1.8K     167

Create fireworks using javascriptCreate fireworks using javascriptJAVASCRIPT

Click to see more ...

  1.6K     136

create 3d barrel using javascriptcreate 3d barrel using javascriptJAVASCRIPT

Click to see more ...

  1.5K     99

how to create foreach class using javascript ?how to create foreach class using javascript ?JAVASCRIPT

Click to see more ...

  1K     83

get ip address javascriptget ip address javascriptJAVASCRIPT

Click to see more ...

  824     76

create qr code javascriptcreate qr code javascriptJAVASCRIPT

Click to see more ...

  574     71

get filename using javascript get filename using javascript JAVASCRIPT

Click to see more ...

  560     61

how to create the connect to a database with ADODB using javascript ?how to create the connect to a database with ADODB using javascript ?JAVASCRIPT

Click to see more ...

  534     59