UrbanPro

Learn .Net Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Why we are using store procedure?

Asked by Last Modified  

15 Answers

Learn .Net

Follow 0
Answer

Please enter your answer

Senior .NET, Azure and MEAN Trainer 15 years experienced

Stored Procedures are used to perform a task Advantages: Modularity and Reusability Stored procedures simplify database development programming
Comments

Trainer

Mainly we used them because they provide security feature like prevention from SQL injection , avoiding of data passing through url query string via parametrise query usage. Also it is quite efficient also as it will boost up your performance because SQL compiler compiles it just once and reuse again...
read more
Mainly we used them because they provide security feature like prevention from SQL injection , avoiding of data passing through url query string via parametrise query usage. Also it is quite efficient also as it will boost up your performance because SQL compiler compiles it just once and reuse again and again. read less
Comments

Computer Trainer

Store procedures are just a set of queries which can be used to run in one click. They are mainly used to carry out several operation under one command eg., If This Then That. This may raise another question in you, Then what is Trigger. Triggers are designed to do the task at a particular action like...
read more
Store procedures are just a set of queries which can be used to run in one click. They are mainly used to carry out several operation under one command eg., If This Then That. This may raise another question in you, Then what is Trigger. Triggers are designed to do the task at a particular action like Insert,Update or delete, we cannot use a insert trigger for update action and vice versa. Where as a Store procedures are not designed in such a way, we can use them at any place we want and can use any kind of query we lie to use and can execute them at any point of time depending on our requirement. read less
Comments

Computer Trainer

Store Procedures are used to run set of SQL scripts under one command call more like a function in programming language. They can be used at any portion of the program and can pass several number of parameters depending on the need.
Comments

Software Engineer and Trainer with 8 years of experience

Avoids SQL injection attack,Execution plan retentiion and reusability, reduces network traffic, code reusability and better maintainability, better security.
Comments

Tutor

It is depending on usage of functionality You can decide to use or not by looking at these advantages and drawbacks: Advantages Maintainability Because scripts are in one location, updates and tracking of dependencies based on schema changes becomes easier Testing Can be...
read more
It is depending on usage of functionality You can decide to use or not by looking at these advantages and drawbacks: Advantages Maintainability Because scripts are in one location, updates and tracking of dependencies based on schema changes becomes easier Testing Can be tested independent of the application Isolation of Business Rules Having Stored Procedures in one location means that there's no confusion of having business rules spread over potentially disparate code files in the application Speed / Optimization Stored procedures are cached on the server Execution plans for the process are easily reviewable without having to run the application Utilization of Set-based Processing The power of SQL is its ability to quickly and efficiently perform set-based processing on large amounts of data; the coding equivalent is usually iterative looping, which is generally much slower Security Limit direct access to tables via defined roles in the database Provide an "interface" to the underlying data structure so that all implementation and even the data itself is shielded. Securing just the data and the code that accesses it is easier than applying that security within the application code itself Drawbacks Limited Coding Functionality Stored procedure code is not as robust as app code, particularly in the area of looping Portability Complex Stored Procedures that utilize complex, core functionality of the RDBMS used for their creation will not always port to upgraded versions of the same database. Testing Any data errors in handling Stored Procedures are not generated until runtime Location of Business Rules Since SP's are not as easily grouped/encapsulated together in single files, this also means that business rules are spread throughout different Stored Procedures. App code architecture helps to ensure that business rules are encapsulated in single objects. There is a general opinion that business rules / logic should not be housed in the data tier Utilization of Set-based Processing Too much overhead is incurred from maintaining Stored Procedures that are not complex enough. As a result, the general consensus is that simple SELECT statements should not be bound to Stored Procedures and instead implemented as inline SQL. Cost Depending on corporate structure and separation of concern for development, there is the potential that Stored Procedure development could potentially require a dedicated database developer. Some businesses will not allow developers access to the database at all, requiring instead a separate DBA. This will automatically incur added cost. Some companies believe (and sometimes it's true, but not always) that a DBA is more of a SQL expert than an application developer, and therefore will write better Stored Procedures. In that case, an extra developer in the form of a DBA is required. read less
Comments

Software Programming Trainer

You can able to avoid SQL injection using parameterised concept in .Net.Main purpose of using Store procedure is that,when you want to manipulate data with multiple tables and return as single table.For eg,you want to copy the details of one person to another person,which involves five tables,its better...
read more
You can able to avoid SQL injection using parameterised concept in .Net.Main purpose of using Store procedure is that,when you want to manipulate data with multiple tables and return as single table.For eg,you want to copy the details of one person to another person,which involves five tables,its better to do such things in Store procedure. Also,using Stored procedure,you can skip the compilation of the sql statements. read less
Comments

.NET Trainer And SQL Server Trainer

Stored Procedures provide various advantages over inline sql statements 1. SQL Injections :- Secure as compare to Inline SQL Query. 2. Increase Database Performance :- When a Stored procedure is executed its execution plan is stored in memory and next time stored procedure is called the execution...
read more
Stored Procedures provide various advantages over inline sql statements 1. SQL Injections :- Secure as compare to Inline SQL Query. 2. Increase Database Performance :- When a Stored procedure is executed its execution plan is stored in memory and next time stored procedure is called the execution plan from memory without recalculating every time 3. Reuse :- One stored procedure is used in many places 4. Enable Security Model :- Can apply additional security setting in the Stored Procedure. read less
Comments

Stored procedures manage, control and validate data. Large queries can be avoided. Reduces network traffic since they need not be recompiled. Even though the stored procedure itself may be a complex piece of code, we need not write it over and over again. Hence stored procedures increases reusability...
read more
Stored procedures manage, control and validate data. Large queries can be avoided. Reduces network traffic since they need not be recompiled. Even though the stored procedure itself may be a complex piece of code, we need not write it over and over again. Hence stored procedures increases reusability of code Permissions can be granted for stored procedures. Hence, increases security read less
Comments

IT Professional Trainer with 9 years of experience in IT Industry

Stored procedures is the added layer of security that can be placed on the database from the calling application.
Comments

View 13 more Answers

Related Questions

How to use .net mvc?
visual studio 2012 or after that version supports mvc application, but you should also need to understand razor view, html5, linq for working on mvc.
Jayant
What is data?
Data is distinct pieces of information. All software is divided into two categories: data and programs. Programs are collections of instructions for manipulating data.
Madan Lal
What are Singleton classes in C sharp?
It is a design pattern which will help you have only single instance of an object throughout the application lifetime.
Rakesh
training
I am one of the TOP Trainer of this site with 12+ years of experience with coaching , Author of 14 books , Team leader in company and mentoring on the .NET platform. You can reach me here: shyam.rajput @ gmail . com
Mir

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

A very brief introduction to .NET framework
.NET development has started in the year 2000 , a product of Microsoft. From the begining of .NET development till now, it has got many RAD facilities. Why .NET? developed for distributed computing...

C# (Sharp) Syllabus
C# (Sharp) Syllabus: C# (Sharp) Syllabus Lesson 01: Getting Started Lesson 02: Expressions, Types, and Variables Lesson 03: Control Statements - Selection Lesson 04: Control...

C# - COLLECTIONS
Collection classes are specialized classes for data storage and retrieval. These classes provide support for stacks, queues, lists, and hash tables. Most collection classes implement the same interfaces.Collection...

Asp.net MVC Application LifeCycle
Any web application has two main execution steps first understanding the request and depending on the type of the request sending out appropriate response. MVC life cycle also follow same principle. MVC...

Technology learning Tip
To learn any technology especially related programming you need to think logically and need good practice time. Never try to start from scratch or start reading a book related to to learn a subject. ...

Recommended Articles

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Looking for .Net Training ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for .Net Training Classes?

The best tutors for .Net Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn .Net Training with the Best Tutors

The best Tutors for .Net Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more