|
|
|
Возможно ли в хп передать имя таблицы пробовал....
|
|||
|---|---|---|---|
|
#18+
CREATE PROCEDURE "My_sp...." @pr int, @intN nvarchar(5) AS Declare @tabName nvarchar(20) @tabName='ist6_'+@intN+ 'razd' IF (select Count(*) From @tabName Where prid= @pr)>0 RETURN 0 else Return 1 Ругается " must declare the variable "tabName" Вроде объявлена... може какие закорюки другие? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.11.2004, 16:19:54 |
|
||
|
Возможно ли в хп передать имя таблицы пробовал....
|
|||
|---|---|---|---|
|
#18+
BOL sp_executesql Executes a Transact-SQL statement or batch that can be reused many times, or that has been built dynamically. The Transact-SQL statement or batch can contain embedded parameters. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.11.2004, 17:08:25 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=45&tid=1670548]: |
0ms |
get settings: |
11ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
44ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
60ms |
get tp. blocked users: |
1ms |
| others: | 234ms |
| total: | 388ms |

| 0 / 0 |
