Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Source Codes E-Books Downloads Contact Us About Us

ADO Tutorial
ADO Introduction
ADO DataBase Connection
ADO Recordset
ADO Display
ADO Query
ADO Sort
ADO Add
ADO Update
ADO Delete
ADO Demonstration
ADO Speed Up
ADO Command Object
ADO Connection Object
ADO Error Object
ADO Field Object
ADO Parameter Object
ADO Property Object
ADO Record Object
ADO Recordset Object
ADO Stream Object
ADO DataType

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


ADO Command Object

Previous Next



The Activex data object(ADO) Command object is used to execute a single query against the database. The query can perform diffrent actions like creating, adding, retrieving, deleting or updating records as per need.



The Command object is used to execute the general commands against the data within the database. These commands can have parameters - For example, the command may be a database insert command: the parameters are then the data elements to insert.


ADO Command object has a Parameters collection made up of Parameter objects. The feature of the Command object is the ability to use stored queries and procedures with parameters.Parameter and it's discription is given bellow.


ADO Command Object Properties

Property Description
ActiveConnection

The Connection object to which the specified Command object currently belongs.

CommandText

The text of a command that you want to issue against a provider.

CommandTimeout

How long to wait while executing a command before terminating the command and issuing an error.

CommandType The type of Command object.
Name

The name of a specific Command object. This property is not currently supported on UNIX.

Prepared

Whether or not to save a compiled version of a command before execution. This property is not currently supported on UNIX.

State

The current state of the Command object. This property is not currently supported on UNIX.




There are thee method of the ADO Command object.These method are given bellow.


Method

Method Description
Cancel Cancels an execution of a method
CreateParameter Creates a new Parameter object.
Execute

Executes the query, SQL statement or procedure in the CommandText property




ADO Command Object with SQL

To execute the query, by using the ADO Command object to set the active connection, define any query parameters such as number of results to display on each page, define the query, execute the query, and create the ADO Recordset object containing the search results.

For Example: Following code given bellow that creates the Command object, sets the Maximum Rows property, and creates and opens the recordset.


<%

set AdoCommand = Server.CreateObject("ADODB.Command.1.5")
set AdoCommand.ActiveConnection = Conn
AdoCommand.Properties("Maximum Rows") = 10
AdoCommand.CommandText = "SELECT vpath, DocTitle FROM Catalog1..Scope() WHERE CONTAINS('chocolate') > 0"
Set RS = Server.CreateObject("ADODB.RecordSet.1.5")
RS.Open AdoCommand

%>




Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previous Next

Keywords:ADO Command Object, adodb command object, ado net command object, visual basic object, visual basic ado


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.