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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, Can you do database calls in

Status
Not open for further replies.

bangalibhai

Programmer
Oct 22, 2002
26
US
Hi,

Can you do database calls in JavaScript or JScript? If so please point me to some examples on how to perform that.

thanks,
nihad
 
Sure you can!

If your database is Access prior to the version now in beta, you have the option of DAO (haven't worked through the beta yet, but DAO seems to be gone).

Most people will use ADO (ActiveX Data Objects) in Windows script right now though. As .Net penetrates the market we'll see a move to ADO.Net (very different from Classic ADO) but today you don't need to worry about it for general scripting chores.

There are a couple of ADO FAQs in this forum, albeit somewhat specialized.

There are some important articles, columns, sample code, and the definitive ADO reference located at:


Be sure to expand the navigation tree under the "Data Access" topic at the left of this page. One classic article here is "Implementing ADO with Various Development Languages: The ADO Rosetta Stone" that covers how to use ADO in various languages, including VBScript and JScript:


Simple "here you go" sample code rather than instructional or reference material is available all over the web. Try a Google search using keywords like ADO and VBScript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top