Click here to Skip to main content
16,005,169 members
Home / Discussions / Database
   

Database

 
AnswerRe: Datagrid Quiestion Pin
_mubashir19-Apr-07 2:40
_mubashir19-Apr-07 2:40 
GeneralRe: Datagrid Quiestion Pin
Marcus J. Smith19-Apr-07 3:42
professionalMarcus J. Smith19-Apr-07 3:42 
GeneralRe: Datagrid Quiestion Pin
_mubashir19-Apr-07 8:42
_mubashir19-Apr-07 8:42 
GeneralRe: Datagrid Quiestion Pin
Marcus J. Smith19-Apr-07 9:34
professionalMarcus J. Smith19-Apr-07 9:34 
AnswerRe: Datagrid Quiestion Pin
Marcus J. Smith19-Apr-07 3:44
professionalMarcus J. Smith19-Apr-07 3:44 
QuestionWhat is Stored Procedure? Pin
Care Career19-Apr-07 1:50
Care Career19-Apr-07 1:50 
AnswerRe: What is Stored Procedure? Pin
kubben19-Apr-07 1:58
kubben19-Apr-07 1:58 
AnswerRe: What is Stored Procedure? Pin
Mike Dimmick19-Apr-07 2:28
Mike Dimmick19-Apr-07 2:28 
Most simply put, a stored procedure is any sequence of program code that executes against a database, and is stored in that database. A single SELECT statement is still a valid stored procedure, in many implementations.

I believe the SQL standard says that a stored procedure is introduced with the keywords CREATE PROCEDURE, but that's about it. Different databases have their own extended dialects of SQL to support looping and branching, and some may support stored procedures in other languages entirely.

SQL Server 2000 supports stored procedures in Transact-SQL, and SQL Server 2005 adds .NET-based 'stored procedures' written in C# and VB.NET. Oracle supports PL-SQL, which is their extended SQL syntax taking cues from the Ada programming language.

SQL Server supports sending multi-statement commands in a single batch operation. The entire batch is parsed and an execution plan formed and potentially cached before the whole thing is executed. You don't need a stored procedure for this. You can still use named parameters in a plain-text query batch, rather than calling a stored procedure. However, in SQL Server, an execution plan for a stored procedure will live longer in the cache than one for a so-called ad-hoc query.

Users can be granted access to execute a stored procedure but not to directly modify or query the tables used by that procedure. In a system I've implemented, the user account that the application logs in as can only execute the stored procedures - it cannot manipulate any of the tables or views. This means that even if it were to be hacked or the login compromised, it still can't do anything that the application couldn't do anyway.

Stability. What an interesting concept. -- Chris Maunder

QuestionSql Database Shrink Wizard Pin
S Anand19-Apr-07 1:46
S Anand19-Apr-07 1:46 
AnswerRe: Sql Database Shrink Wizard Pin
Mike Dimmick19-Apr-07 3:01
Mike Dimmick19-Apr-07 3:01 
GeneralRe: Sql Database Shrink Wizard Pin
S Anand21-Apr-07 2:01
S Anand21-Apr-07 2:01 
Questionis it recommended to have SQL2005 Express along with MSSQL server 2005 Pin
sangramkp19-Apr-07 1:44
sangramkp19-Apr-07 1:44 
AnswerRe: is it recommended to have SQL2005 Express along with MSSQL server 2005 Pin
kubben19-Apr-07 1:59
kubben19-Apr-07 1:59 
AnswerRe: is it recommended to have SQL2005 Express along with MSSQL server 2005 Pin
Aaron VanWieren19-Apr-07 8:06
Aaron VanWieren19-Apr-07 8:06 
QuestionSQL Query Pin
Care Career19-Apr-07 1:41
Care Career19-Apr-07 1:41 
AnswerRe: SQL Query Pin
kubben19-Apr-07 2:02
kubben19-Apr-07 2:02 
QuestionInsert Date using oledbcommand Pin
cocoonwls19-Apr-07 0:18
cocoonwls19-Apr-07 0:18 
AnswerRe: Insert Date using oledbcommand Pin
Kschuler19-Apr-07 10:27
Kschuler19-Apr-07 10:27 
GeneralRe: Insert Date using oledbcommand Pin
cocoonwls19-Apr-07 15:52
cocoonwls19-Apr-07 15:52 
QuestionSelect count and select Pin
N a v a n e e t h18-Apr-07 22:37
N a v a n e e t h18-Apr-07 22:37 
AnswerRe: Select count and select Pin
Pete O'Hanlon18-Apr-07 22:50
mvePete O'Hanlon18-Apr-07 22:50 
AnswerRe: Select count and select Pin
Colin Angus Mackay18-Apr-07 22:56
Colin Angus Mackay18-Apr-07 22:56 
GeneralRe: Select count and select Pin
N a v a n e e t h19-Apr-07 1:22
N a v a n e e t h19-Apr-07 1:22 
GeneralRe: Select count and select Pin
Colin Angus Mackay19-Apr-07 1:46
Colin Angus Mackay19-Apr-07 1:46 
GeneralRe: Select count and select Pin
N a v a n e e t h19-Apr-07 2:58
N a v a n e e t h19-Apr-07 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.