|
|
|
Вызов DTS пакета с помощью SP
|
|||
|---|---|---|---|
|
#18+
Здравствуйте дамы и господа! Можно ли с помощью хранимой процедуры вызвать DTS-пакет? Заранее благодарю. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.06.2002, 09:15:22 |
|
||
|
Вызов DTS пакета с помощью SP
|
|||
|---|---|---|---|
|
#18+
exec master..xp_cmdshell 'dtsrun /Sserver_name /Uuser_nName /Ppassword /Npackage_name ' ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.06.2002, 11:31:09 |
|
||
|
Вызов DTS пакета с помощью SP
|
|||
|---|---|---|---|
|
#18+
create proc sp_DTSWrapper ( @msg varchar (255) , @str varchar (255) = null output ) as set nocount on declare @pkg int , @rc int , @hr int , @source varchar (255) exec @rc = sp_OACreate 'DTS.Package' , @pkg output exec @rc = sp_OAMethod @pkg , 'LoadFromSQLServer' , null , , @ServerName = "(local)" --, @ServerUserName = "sa" --, @ServerPassword = "pwd" --, @Flags = 0 -- SQL Server authentication , @Flags = 256 -- NT authentication , @PackageName = "MyDTSPAckage" exec @rc = sp_OASetProperty @pkg , 'GlobalVariables ("MyGlobalVar1").Value' , @msg exec sp_OAMethod @pkg , 'Execute' exec @rc = sp_OAGetProperty @pkg , 'GlobalVariables ("MyGlobalVar2").Value' , @str out exec sp_OADestroy @pkg --Note that if you are not using SQL Sever authtication, you'll need to un-comment the --three lines in the call to LoadFromDQLServer and comment out the --Line for @flags = 256 go ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.06.2002, 18:22:53 |
|
||
|
|

start [/forum/search_topic.php?author=JinTonic&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
10ms |
get forum list: |
21ms |
get settings: |
11ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
73ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
44ms |
get tp. blocked users: |
1ms |
| others: | 708ms |
| total: | 911ms |

| 0 / 0 |
