ActiveX Data Objects: Difference between revisions

Content deleted Content added
See also: ce, add MSDAIPP
ASP example: fix syntaxhighlight errors
Line 70:
Here is an [[Active Server Pages|ASP]] example using ADO to select the "Name" field, from a table called "Phonebook", where a "PhoneNumber" was equal to "555-5555".
 
<syntaxhighlight lang=vb"vbscript">
dim myconnection, myrecordset, name
set myconnection = server.createobject("ADODB.Connection")
Line 86:
 
This is equivalent to the following ASP code, which uses plain SQL instead of the functionality of the Recordset object:
<syntaxhighlight lang=vb"vbscript">
dim myconnection, myrecordset, name
set myconnection = server.createobject("ADODB.connection")