ADO – ASP

ASP-logo-share-tutorial

ASP ADO

This lesson will provide a brief overview of what ADO is and why it is necessary to have in your ASP programming repertoire. ADO stands for ActiveX Data Objects. ActiveX Data Objects are a collection of components that can be used in your ASP programs.

Accessing the Database

ADO is specifically used as means to communicate and manipulate a database. The types of databases ADO will allow your ASP program to interact include Access, MySQL, and MSSQL to name a few. In this lesson we will be connecting to an Access database, so you will need to have access to Access(hehe) to complete this lesson.

Create Your Access Database

Before you can connect to the Access database you have to first create the Access database file. Fire up your copy of MS Access and create the following database:

  1. Create a New blank database called “share.mdb” (without the quotes) and save it to “C:\Inetpub\wwwroot\shareASP\” (without the quotes)
  2. Use the wizard to create the database.
  3. Add two fields to your table: FirstName and LastName
  4. Click Next
  5. Name the table “shareTable” (without the quotes)
  6. Select “Yes, set a primary key for me”
  7. Click Next
  8. Click Finish

Now that we have our database all that remains to connect to it.

Using ADO to Connect to an Access Database

Create an ASP file called “shareADO.asp” and save it in the same directory as your Access database file.

In the following ASP code we first create an ADO database connection and then we set up the ConnectionString and finally we call the Open method with our Access database filename to finish the opening process.

ASP Code:

<%
Dim myConn
Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open = ("DRIVER={Microsoft Access" &_
" Driver (*.mdb)};DBQ=" &_
"C:\Inetpub\wwwroot\shareASP\share.mdb;")
myConn.Close()
Set myConn = nothing
%>
Obtain the most well-liked n SEO plugin for wordpress readily available today, you'll find both free and exceptional plugins here. We have actually checked the entire web, examined hundreds of advised Wordpress plugins and chosen the very best.
Locate technology industry the current innovation news, including new product launches, revenues figures and tech business efficiency info. Go through guides on new devices and models for future modern technology.
seo tips and tricks that you need to and need to not be doing on your Web pages to make them rank greater in online search engine. In a constantly transforming Search Engine Optimization landscape, it is very important to stay up-to-date about the changing techniques and strategies of optimization.
Listed here is a listing of system WordPress Management Software from a main place. There are WordPress control panels, along with multisite tools to take care of domains, motifs, projects, and much more. consists of one-click access, tracking, backup, implementation, posting, and protection features. Review which of your sites have motifs and plugins that need attention. Along with one click, update every one of your plugins, styles or center WordPress software application.


My Name is Adi Saputra. I come from Indonesia. I want to develop www.tuto-rial.com Blog Being the best, So much of it as a reference in the world of IT in particular programming

Comments are closed.