ASP.NET
  Home arrow ASP.NET arrow Page 4 - Using Stored Procedures in Database Intera...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Using Stored Procedures in Database Interaction
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2006-04-20

    Table of Contents:
  • Using Stored Procedures in Database Interaction
  • Calling a Stored Procedure
  • Passing Parameters to a Stored Procedure
  • Quiz

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using Stored Procedures in Database Interaction - Quiz


    (Page 4 of 4 )

    1. A namespace organizes classes in a hierarchy of classes to prevent naming conflicts.

      a. True

      b. False
    2. You open a connection to a database by using

      a. ConnectDB

      b. DBConnection 

      c. DBConnect

      d. None of the above
    3. The best place to open a connection to a database is

      a. The On_Click event handle

      b. The Page_Load subroutine

      c. In the SQL query

      d. In the query
    4. Which SQL statement specifies the information you want returned to your application?

      a. Return

      b. Where

      c. From

      d. Select
    5. Which SQL statement sets the search criteria for rows that contain information you want returned to your application?

      a. Return

      b. Where

      c. From

      d. Select
    6. What statement identifies the database that contains information you want returned to your application?

      a. Where

      b. From

      c. Select

      d. None of the above
    7. A stored procedure is sent from your web page to the DBMS each time you execute a query.

      a. True

      b. False
    8. You cannot pass information to a stored procedure.

      a. True

      b. False
    9. Your application cannot determine the number of rows that were returned by the DBMS.

      a. True

      b. False
    10. A query parameter is assigned values that visitors enter into a form on your web site.

      a. True

      b. False

    Answers

    1. a. True
    2. d. None of the above. You use the Connection object available for your database type. For SQL Server, it is SqlConnect; for Access, OleDbConect; etc.
    3. b. The Page_Load subroutine
    4. d. Select
    5. b. Where
    6. d. None of the above
    7. b. False
    8. b. False
    9. b. False
    10. a. True

    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · This article is an excerpt from the book "ASP.NET 2.0 DeMYSTiFieD," published by...
     

    Buy this book now. This article is excerpted from chapter 10 of ASP.NET 2.0 DeMYSTiFieD, written by Jim Keogh (McGraw-Hill/Osborne; ISBN: 0072261412). Check it out today at your favorite bookstore. Buy this book now.

    ASP.NET ARTICLES

    - More Advanced ASP.NET 3.5 Functions and Subr...
    - ASP.NET 3.5 Functions and Subroutines
    - Coding an IQ Test with Conditionally Driven ...
    - Developing Conditionally Driven Event Handle...
    - ASP.NET 3.5 Debugging Using Visual Web Devel...
    - Understanding Event Handlers in ASP.NET 3.5
    - Building a Web Form in ASP.NET and PHP: a Co...
    - Inserting Data into a Microsoft SQL 2008 Dat...
    - Creating an ASP.NET Dynamic Web Page Using M...
    - Retrieving Data from Microsoft SQL Server 20...
    - Building ASP.NET Web Forms to Use a MySQL Da...
    - Creating an ASP.NET Database using MS SQL 20...
    - Building an ASP.NET Website Using Include Ta...
    - Create ASP.NET Web Forms to Use a Microsoft ...
    - Editing Web Design Layout in Visual Web Deve...





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 10 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek