Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



Stored Procedure Introduction


Home  > MSSQL  > Stored Procedure Introduction 
       
Stored procedure For Beginner. 

Allright I am actually a beginner to stored procedures. Never took time to learn them earlier, though have spend time correcting 
a few lines of SP as and when I needed to debug them. 

To Our Topic Now
-------------------------------

Stored procedures is an already written sql statement that is saved in the database ( Database in the SQL Server ). 

T-SQL or  Transact SQL is the programming language that interfaces between your application and MS SQL Server. When We use T-SQL programs
two methos are available for storing and executing the programs. 

1. U store programs ( SQL Commands or Scripts ) locally, inline TSQL where u send commands to SQL Server and u get back the resule. 
2. U can store the programs ( SQL Scripts )  in the server and call them from your application. The Store procedures run on the server and returns results. 


-> Ideally u write stored procedures when u find using the same query over and over again. 
-> You write a stored procedure, you can store all the business logic or query logic in the database. u can call these stored procedures from your application 
written in asp.net vb.net java or what every langue using simple commands. 


Advantage of stored procedures is that. if u have all the business logic in Stored procedure. If u plan to switch the application 
from java to asp.net . you donot have to worry about changing the code which is in the stored procedure. simply speaking 
if you have most of the business logic in stored procedure . you only have to worry about the UI part. 


index

create udl file to test sql connection to the sql server

Error: 18452 SQL Server 2005 "Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection."

How to copy a table with data to one db to another in sql 2005

How to insert multiple records to a table using a single Insert query

How to insert values to multiple tables using a single insert query statement

How to replace a part of a string of a field using query in MSSQL

ms sql Add field to table using Alter Table

ms sql server 2005 express edition

MSSQL What is the use of COALESCE() function

System.Data.SqlClient.SqlError The backup set holds a backup of a database other than the existing

What are the different login modes in sql server

where is sql server 2005 files stored

Windows 7 SQL Server 2008 Express R2 Error Unable to connect from remote machine desktop

sql server error exception system.data.sqlclient.sqlerror the media set has 2 media families but only 1 are provided

Restore a database to another database The backup set holds a backup of a database other than the existing

Stored Procedure Introduction

How to execute a stored procedure on the sql server query analzer

Create Stored Procedure Example For beginner

stored procedure variable orderby

Stored Procedcure to Update Table

Stored Procedure Input Variables

not getting sql server properties on clicking udl file opening as text

Generic Stored Procedure To Return Get Data From Table With Paging

Single Stored Procedure Insert Update Delete

Stored Perocedure ROWCOUNT

Invalid use of a side effecting operator EXECUTE STRING within a function

SQL Query MAX Value column

MSSQL Select GroupBy

SQL Occurrence of character in a string

TSQL Functions

t sql string manipulation STRING BETWEEN TWO STRINGS

TSQL CHECK IF NULL

Generic Stored Procedure Insert Update Delete

Cannot call methods on nvarchar max



  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam