
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
24.01.2007, 17:08
|
|||
|---|---|---|---|
sp_executesql |
|||
|
#18+
ADO автоматически заворачивает UPDATE для SQL Server в exec sp_executesql например Код: plaintext 1. так как при использование exec sp_executesql не перетранслируется update, то часто происходит понижение быстродействия можно ли как нить избавиться от этой обертки ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
31.01.2007, 00:21
|
|||
|---|---|---|---|
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. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=17&mobile=1&tid=1352970]: |
0ms |
get settings: |
11ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
80ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
49ms |
get tp. blocked users: |
1ms |
| others: | 237ms |
| total: | 422ms |

| 0 / 0 |
