Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Вопрос по sp_executesql
|
|||
|---|---|---|---|
|
#18+
Ребята, в чем глюк. exec sp_executesql N'insert into table_name (column) values(value)' Все нормально, а если так: declare @tblname varchar(15) set @tblname = 'table_name' exec sp_executesql N'insert into '+ @tblname +' (column) values(value)' или declare @sQuery varchar(255) set @sQuery = N'insert into tablse_name (column) values(value)' exec sp_executesql @sQuery ошибка. ??? С уважением, Саша. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.01.2002, 07:14 |
|
||
|
Вопрос по sp_executesql
|
|||
|---|---|---|---|
|
#18+
BOL - Transact-SQL Reference - System Stored Procedures - sp_executesql "sp_executesql [@stmt =] stmt[{,[@params =] N'@parameter_name data_type [,...n]' }{,[@param1 =] 'value1' [,...n] } ] Arguments [@stmt =] stmt Is a Unicode string containing a Transact-SQL statement or batch. stmt must be either a Unicode constant or a variable that can be implicitly converted to ntext. More complex Unicode expressions (such as concatenating two strings with the + operator) are not allowed. Character constants are not allowed. If a constant is specified, it must be prefixed with an N. For example, the Unicode constant N'sp_who' is legal, but the character constant 'sp_who' is not. The size of the string is limited only by available database server memory" Надо так declare @sQuery nvarchar(255) set @sQuery = N'insert into tablse_name (column) values(value)' exec sp_executesql @sQuery ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.01.2002, 07:36 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32021290&tid=1824216]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
61ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 259ms |
| total: | 405ms |

| 0 / 0 |
