![]() |
|
|
Published: Friday, September 15, 2000 One of ASP's greatest features is the ease with which an ASP page can access, retrieve, and modify database information. ASP.NET, the next generation of ASP, offers data access, but offers a new means to retrieve the data: ADO+! (For more information on ASP.NET, be sure to read our ASP.NET Article Index!) This article discusses what ADO+ is and how to use it in an ASP.NET page to access a database. Also, since ADO+'s syntax and style differs rather dramatically from ADO, I will illustrate how to use old-school ADO to "talk" to a database through an ASP.NET page.
Using Old-School ADO ASP.NET is not the only thing that Microsoft has radically changed from its predecessor - ADO+, the new, .NET way to access data, is a radical change from ADO. If you are having a hard enough time wrapping your head around ASP.NET and will go looney if you have to totally relearn data access as well, fear not. Old-school ADO can be used in your ASP.NET pages... At the time of this writing (9/15/2000), I am uncertain of the performance differences in an ASP.NET page between ADO and ADO+, but if you have concrete results, please do let me know! I assume ADO+ is more efficient, though.
Here is a simple ASP.NET page that will display all of the columns in the
The above code is almost exactly as it would be in a regular ASP page. The main differences are syntactical
differences between the new VB 7 syntax and VBScript. For example, note that we do not use
but with ASP.NET and the new VB 7 syntax, we must put parenthesis around the Now that we've examined how to access data using old-school ADO, it's time to look at how to accomplish this task using the new ADO+. This topic will be addressed in Part 2!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|