Computing.Net > Forums > Programming > Store Procedure in Sql ..?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Store Procedure in Sql ..?

Reply to Message Icon

Name: gardenair
Date: February 2, 2004 at 22:17:44 Pacific
OS: win98
CPU/Ram: 166
Comment:

Can any body tell me what is Store procedure in SQl Server..?



Sponsored Link
Ads by Google

Response Number 1
Name: gpp
Date: February 3, 2004 at 06:07:51 Pacific
Reply:

More or less, its code that resides on the server and gets compiled when used.


0

Response Number 2
Name: Don Arnett
Date: February 3, 2004 at 09:05:53 Pacific
Reply:


A Stored Procedure (SP) is a chunk of code that is run by the database server, usually (if not always) triggered by a database event. SPs accept parameters and, I believe, can have local variables and can access database tables and fields.

Triggers are defined to execute given SPs when given database events happen. For example, a trigger might be defined to run the SP NewUser when a record is added the the User table. The NewUser SP might make some changes to other tables based upon the record just added.

I've never used SQL Server SPs but believe that what I've said is generic enough that it should apply to SQL Server also. SQL Server might have a different name for what I call a 'trigger'.


0

Response Number 3
Name: anonproxy
Date: February 3, 2004 at 14:31:30 Pacific
Reply:

This is database scripting. Most modern DBMS's are operating environments unto themselves (similar to web servers). They handle permissions, multidimensional file structures, multiuser input, network connections, parsing, and host various utilities. As with all mature environments, a DBMS has some level of scripting.

When you say stored procedure, most people assume you mean SQL statements stored by the server which users can call to be queried. These are usually not just basic SQL, but SQL with some additional scripting syntax. Examples are SQL Server's T-SQL, Oracle's PL/SQL, and IBM DB2's (and MySQL 5.0's) SQL:2003. Some DBMS's support multiple languages.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Store Procedure in Sql ..?

Oracle Stored procedures www.computing.net/answers/programming/oracle-stored-procedures/4879.html

Index hints across linked server www.computing.net/answers/programming/index-hints-across-linked-server/7340.html

Stored Procedure not working if OLE www.computing.net/answers/programming/stored-procedure-not-working-if-ole/10101.html