Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO access using JavaScript

Status
Not open for further replies.

jerjim

Programmer
Jan 4, 2001
85
0
0
PH
Can anyone point me to a website which gives examples of active server pages and ADO using JavaScript?

Thanks in advance.

 
con = new ActiveXObject("adodb.connection");
rst = new ActiveXObject("adodb.recordset");

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\mp3 data\\mp3database.mdb;";
strSql = "SELECT * FROM mp3dataTables"

con.Open(strConn);

rst.ActiveConnection = con;
rst.CursorType = 3;
rst.LockType = 3;
rst.Source = strSql;
rst.Open;
rst.MoveFirst;



//alert("recordset opened");
//alert("Records in table : " + rst.recordCount);
for(i=0; i<rst.recordCount; i++) {

oNewOption = new Option();
oNewOption.text = rst(&quot;names&quot;);
oNewOption.value = rst(&quot;folders&quot;);
document.myform.searchFolder.add(oNewOption, 1);

rst.MoveNext;

thats for local db access

try msdn.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top