Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all.,

Is it possible to reduce the number of process or threads by creating transaction procedure for insert query in sql server
Posted
Comments
Nelek 19-May-14 4:01am    
I would say yes, it is possible. There are few things impossible. You only have to find the way to do it.

I would recommend you to use the "improve question" widget and add more information, so the specialist here can have a better sight of what you need. I recommend you to read following link too:What have you tried?[^]

Transactions have nothing to do with threads. Try explaining the problem with a little more detail, are you inserting bulk records, are there a lot of processes in the insert? Why do you want to reduce the threads, seems a very esoteric requirement.
 
Share this answer
 
Comments
Sachinsnagaraj 19-May-14 3:55am    
i dont have bulk insert but repeated insert this is causing some process to be redundant.,
which on long duration is reducing performance.
Mycroft Holmes 19-May-14 3:59am    
Then you need to look at the business requirement and then look at your processing flow to define where you can optomise it. Transactions are not the issue. Identify what makes the insert redundant and work on that.
SQL transaction has nothing to do with performance/resource issues. It used to combine together independent SQL queries to make them a single unit, that will enable to cancel the whole if error occurred in any of the different parts...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900