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

Azure.NET, MEAN, GenAI and Devops 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

Devops Engineer and Trainer with 12 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

Is it possible of hacked a website into asp.net?
Yes. if developer not handle Cross-site scripting (XSS) .
Appin
Is developing a website in .net easy or in php?
In php developing an app is easy.
Nithish REDDY
What Is Asp ?
ASP.Net is a platform that is used to develope, Web, Desktop, Mobile and other kinds of applications. It supports many languages like C, C++, C#, F#, VB.Net etc. It all runs on a Integrated Development...
Sunita
whats the fees of mvc class?
Its 4500 for MVC Training. Classes will be held at my location .If interested can contact me
Jayashri
What is ASP.Net?
ASP.NET - Developing Active Server Pages using .NET. We can develop Web based applications using ASP.NET.
Geeta

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

Ask a Question

Related Lessons

Remote Learning Do's and Dont's
In the Present fast-paced world, people are facing challenges concerning keeping themselves always with the up to date technologies or industry changes. When it comes to the IT industry, it is becoming...
V

Read CSV data using ODBC Connection
Codes to read the CSV data using ODBC Connection- Input File: File's Encoding format should be ANSI as below class Student{ public string CollegeId { get; set; } public string AdmissionDate...

Angular-2 Developer Training Program Syllabus
Angular2 Developer Training Program Syllabus: Introduction to Angular2. Why Angular2. Angular2 Features: Components, Services and Typescript. Angular2 Components: Templates, Modules, Services...

Service-Level Agreement (SLA) Definition
A service-level agreement (SLA) is a contract between a service provider and its internal or external customers that documents what services the provider will furnish. SLAs originated with network service...
M

Mohammad Shafi

0 0
0

Why a function in C# requires "Return type"??
- Basically , a Method is a piece of code used for the re-usability purpose. - Method is of 2 types Function and Procedure - Function is a method which returns a value to the calling place Function...

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