adspace
Answer Posted / Divya Verma
"Stored Procedures offer several advantages in SQL Server:
1. Improved Performance: Stored Procedures can execute pre-compiled execution plans, reducing parsing and compilation time during subsequent executions.
2. Reduced Network Traffic: By sending fewer individual queries over the network, stored procedures help reduce overall network traffic.
3. Code Reusability: Stored Procedures allow for code reuse, making it easier to maintain and deploy applications.
4. Enhanced Data Security: Stored Procedures can be used to enforce data access policies and restrict unauthorized access to sensitive data.
5. Error Handling: Stored Procedures provide a consistent error handling mechanism across multiple queries.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is self contained sub query?
How to convert numeric expression data types using the cast() function?
What are the source of constraints?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
What are the different subsets of sql?
Is it possible to have clustered index on separate drive from original table location?
Equi join and non equi join is possible with sql server?
When should you use an instead of trigger?
Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60
How can you append an identity column to a temporary table?
You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?
Why we use the openxml clause?
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
What is temporary table in sql server? Why we use temp table?
This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?