Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
noyellatmonkeys
Starting Member
15 Posts |
Posted - 2009-11-06 : 15:54:17
|
| i have an asp page that updates 1000's of records in a database. Im trying to improve the speed and have a question.1) is it fast and more effeciant to combine on my updates and then perform db execution (i.e. combinesqlstatement = "update table set field = 1 where field 2 = x; update table set field = 1 where field 2 = x2; update table set field = 1 where field 2 = x3"or perform one db execution per update. So there would be 1000's of individual DB executed updatesThanks for any advice |
|
|
rohitkumar
Constraint Violating Yak Guru
472 Posts |
Posted - 2009-11-06 : 16:01:53
|
| number [1] |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-11-07 : 07:29:07
|
If it is always the same table you perhaps can find a logic to do more updates in one statement? No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2009-11-07 : 09:12:00
|
| are you running an SP ? From your web page ?you probably will get timeouts on an asp page if you are running it directly |
 |
|
|
|
|
|