Skip to main content

Questions tagged [stored-procedures]

0 votes
1 answer
534 views

How can I trace back the original table of a column?

New to a software engeneer job and I am kinda blocked on the way to go with my new project To explain this in a scheme. I have a source of data in a custom app that is for most part of the time the ...
Dolotboy's user avatar
  • 111
1 vote
2 answers
93 views

How to write robust or alternative to TSQL data processing routines in SqlServer?

My company has a workflow that involves ingesting huge amounts of raw data from external sources into SqlServer and then interpreting and weaving that data into our own application tables. This ...
Joshua Frank's user avatar
12 votes
5 answers
7k views

What is the best practice about microservice architecture for consuming many stored procedures in the same database?

I have to build a micro service for my company, the backend is an Oracle database, but the micro service must consume five (5) stored procedures that already exist in the database (as shown in the ...
alexLambadas's user avatar
0 votes
1 answer
184 views

quality management on SQL stored procedures

I've always developed my own applications and use certain criteria to evaluate if the code is acceptable from a quality perspective. Now I've switched jobs and have to among other things maintain ...
denbrau's user avatar
3 votes
5 answers
8k views

How to do versioning for stored procedure?

Is there any way to create versioning for stored procedures? I have created an API which fetches data from a database using stored procedures. This API is being consumed from a mobile app. I released ...
Shanid's user avatar
  • 177
0 votes
1 answer
170 views

Testing Stored procedure correctness

Suppose you have 2 stored procedure, let's say a GetProducts and a GetProductDetails. Now, the GetProducts returns a list of products with a property that is "calculated" basing on additional ...
Bellons's user avatar
  • 85
1 vote
1 answer
297 views

Multiple stored procedures or 1 with parameter

I need some advice... I started working at a financial business world recently. Looks like the DB architect uses auto generate function to create stored procs. At the end, we have way too many procs ...
Kyaramiga's user avatar
8 votes
3 answers
8k views

DB Queries in code or use Stored Procedures

Some of my colleagues tells me that using stored procedures in the database adds to much business logic in the database, and that you should keep the data separate from logic. Other colleagues tells ...
Benny Skogberg's user avatar
-1 votes
1 answer
90 views

Single Stored Procedure Per Table Update or Per Column Update

Let's say i have a table (in a large enterprise application) that has about 10 columns. I am limiting any consumer access to the table to only be possible by calling stored procedures. When it comes ...
zessi's user avatar
  • 9
1 vote
2 answers
819 views

Optimal use of hibernate with mysql's stored procedures

I am working on a project (to use as a reference). The project uses mysql, hibernate and spring (REST) and is supposed to be a single microservice. I have come to find out that limiting user/consumer ...
zessi's user avatar
  • 9
3 votes
2 answers
5k views

DDD: should entity method use repository for stored procedures (not CRUD)?

Imagine you have a Vehicle entity in your domain model. Vehicle entity has Reserve method that put vehicle in "reserved" state and do another stuff. But Reserve method have to do some checking first ...
Philipp Bocharov's user avatar
1 vote
2 answers
2k views

Encrypt data in code or stored procedures?

I'm working on a Web App where the data is quite sensitive and is required to be encrypted before it is stored in the database. Now there are two ways through which I can achieve this: Encrypt data ...
Rida Iftikhar's user avatar
5 votes
3 answers
1k views

Stored procedures or ORM in web?

I am working in a Peruvian company that develops desktop accounting software(.net C#). We have many clients (companies) each customer can create several companies, in addition there is a new database ...
Andres Miguel Campos's user avatar
1 vote
2 answers
1k views

SQL-Style name of variables in a stored procedure

As seen in the main question. It is not a syntactic problem that I have, or some error in the code. I would like to know what is the correct way to name the parameters variables in a stored procedure....
lvvittor's user avatar
7 votes
1 answer
2k views

Determining the best way(s) of adding unit tests to a large project that makes good use of stored procedures

We work on a fairly large casino/gaming/wallet/lottery platform. It's a turn-key application that is currently in use by 4 clients, and soon to be much more. I've made some bullet points regarding the ...
Derreck Dean's user avatar

15 30 50 per page
1
2 3 4 5