Observed that some SP’s / Jobs are processing late, how to
troubleshoot to improve performance?
Answer / neetu
U have to optimize SP for that
1. Use as much as possible WHERE clause filters. Where
Clause is the most important part for optimization
2. Select only those fields which really require.
3. Joins are expensive in terms of time. Make sure that use
all the keys that relate the two tables together and don't
join to unused tables, always try to join on indexed fields.
The join type is important as well (INNER, OUTER).
| Is This Answer Correct ? | 3 Yes | 0 No |
Difference between Triggers and Stored Procedure
23 Answers Claimat, HCL, Protech, Silgate,
Can Having clause be used without Group by clause?
6 Answers CarrizalSoft Technologies, CSC, CTS,
How do we return a record set from a Stored Procedure in SQl server 2000?
What are sql server procedures?
How many types of Joins in SQL Server 2005?
9 Answers CarrizalSoft Technologies, HCL,
How to create indexed view?
Normalization and denormalization
Your table has a large character field there are queries that use this field in their search clause what should you do?
select the 3rd maximum salary from sql server database if 4 (just an example In practically I may not know the exact situation) of the highest salaries are equal.
can i write function in stored procedure and stored procedure in function and nested procedure.Give one example for each question?
How can you insert values in multiple rows using one Insert statement?
0 Answers Flextronics, Thomson Reuters, Virtusa,
What is awe?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)