Library sample chapters
Stored Procedures
Introduction
This is a sample chapter from Beginning Visual Basic SQL Server 7
In Chapter 5 we used SQL statements to insert, select, update,
and delete data, and in the last chapter we used SQL statements to select data
from the State_T table. While the use of in-line SQL statements is great for ad-hoc
queries, they are not generally used in production applications. They do, however,
have their place in production applications where dynamic SQL statements
are to be built and executed. Dynamic SQL statements are SQL statements that are built in your VB code, thus
they are generated dynamically at run-time. You typically use If..
Else.. EndIf statements to build the SQL statements needed to retrieve the data
that the user has requested. For the most part stored procedures are used, and
provide many benefits over in-line Transact-SQL statements.
This chapter explores stored procedures and demonstrates some of the basic tasks that can be accomplished with them. We will take a look at stored procedure parameters and see how they can be used to build robust stored procedures. All of the stored procedures created in this chapter will be executed in a VB front-end program that we will create.
In this chapter we will examine:
Related articles
Related discussion
-
High-Performance .NET Application Development & Architecture
by Manjot Bawa (0 replies)
-
Help with query and loop
by sara87 (2 replies)
-
Permutations and combinations of multiple return codes
by actuszeus (1 replies)
-
While Inserting Data into Database i.e. MS Access
by satyasahu (1 replies)
-
dtPicker date format query
by konikula (1 replies)
Events coming up
-
Jul
7
Midlands PASS Chapter July Meeting
Columbia, United States
Midlands PASS welcomes SQL Server MVP John Welch. John will be giving a talk on Getting Started with Analysis Services 2008. We meet in the Training Concepts facility (Suite 502).
Hi there!
What is meant by this: 3. Don't forget to set a reference to the Microsoft ActiveX Data Objects Library in your project?
Thanks ALOT!
As a new user to the the vb.net, I am curious to know how things work. But when I try some codes written in the book " Beginning Visual Basic .NET Database Programming", I am stuck in a few places.
Firstly, the instruction said "Change the Modifiers property from Assembly to Family." which i cannot find either Assembly or Family in the Properties. So I change Modifier - Friend (assuming that's what the author refer to as assembly) to Public (assuming it's the other word for Family).
Secondly, during creating stored procedures, I only can see Refresh and Properties when trying to create New Stored Procedures.
please advice
This thread is for discussions of Stored Procedures.