|
|
|
sp_executesql
|
|||
|---|---|---|---|
|
#18+
ADO автоматически заворачивает UPDATE для SQL Server в exec sp_executesql например Код: plaintext 1. так как при использование exec sp_executesql не перетранслируется update, то часто происходит понижение быстродействия можно ли как нить избавиться от этой обертки ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.01.2007, 17:08 |
|
||
|
sp_executesql
|
|||
|---|---|---|---|
|
#18+
Откуда данные о снижении быстродействия? Если очень хочется - используйте свои процедуры для UPDATE. P.S. BOL: sp_executesql can be used instead of stored procedures to execute a Transact-SQL statement many times when the change in parameter values to the statement is the only variation. Because the Transact-SQL statement itself remains constant and only the parameter values change, the SQL Server query optimizer is likely to reuse the execution plan it generates for the first execution. Note: If object names in the statement string are not fully qualified, the execution plan is not reused. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.01.2007, 00:21 |
|
||
|
|

start [/forum/topic.php?fid=17&fpage=99&tid=1352970]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
31ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
21ms |
get tp. blocked users: |
1ms |
| others: | 185ms |
| total: | 265ms |

| 0 / 0 |
