|
|
|
Возможно ли в хп передать имя таблицы пробовал....
|
|||
|---|---|---|---|
|
#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?fid=45&msg=32769144&tid=1670548]: |
0ms |
get settings: |
6ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
58ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
31ms |
get tp. blocked users: |
1ms |
| others: | 194ms |
| total: | 314ms |

| 0 / 0 |
