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 do I manage C# code in ASP.NET?
The sample syntax of the C# in Asp.net is as given below. Replace = with angular brackets =1%@ Page Language="C#" %= =script= void button_click(object,event) =/script= =html= =head= =title==/title= =/head= =body= =form= =div==/div= =/for...
Madhavan
0 0
6
Which is better, PHP or ASP.NET?
My suggestation is if you are really concern about your future then go for ASP.NET rather then PHP. Let me explain why?? Firstly if you want to learn ASP.NET you have to learn c#.Now a days nearly 30-40%...
Jitesh
0 0
7

Hello Sir, I have little bit knowledge of C. Can I continue study Asp.net? Please advice..

Ya sure you can learn but need some knowledge on C++ as well but its not that difficult at all.
Mitu
0 0
8
What is the difference between asp.net and vb.net?
ASP.Net is known as a development platform for the web, which in turn is known to help create robust web applications. It is known to contain innumerous libraries which have a wide range of functionality....
Manshi

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

Ask a Question

Related Lessons

Export To Excel using StringBuilder in ASP.net MVC C#
public ActionResult Export() { StringBuilder sb = new StringBuilder(); //static file name, can be changes as per requirement string sFileName = "filename.xls"; //Bind...
M

Mohammad Shafi

1 0
1

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...

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...

Multi-core CPU utilization using Task Parallel Library in c#
Nowadays, we are using multiple core systems. We must write our .NET applications in such a way that we must utilise the complete computing power of the machine. The parallel task library(TPL) allows...

CLR [ Common Language Runtime ] and it's properties
CLR is one of the components of the .NET framework which provides an environment to execute the .NET code or the managed code. , CLR helps in converting the MSIL/CIL code into native code and running...

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