|
|
|
Автозапуск SQLServerAgent под Win98 (Desktop) - как ?
|
|||
|---|---|---|---|
|
#18+
Как это можно сделать (подчеркиваю - из Windows 9x) ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.05.2002, 06:49 |
|
||
|
Автозапуск SQLServerAgent под Win98 (Desktop) - как ?
|
|||
|---|---|---|---|
|
#18+
Только из командной строки sqlagent -c [-v] Arguments-c Indicates that SQL Server Agent is running from the command prompt and is independent of the Windows NT Service Control Manager. When -c is used, SQL Server Agent cannot be controlled from either the Services application in Control Panel or SQL Server Service Manager. -v Indicates that SQL Server Agent runs in verbose mode and writes diagnostic information to the command-prompt window. The diagnostic information is the same as the information written to the SQL Server Agent error log. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.05.2002, 07:28 |
|
||
|
Автозапуск SQLServerAgent под Win98 (Desktop) - как ?
|
|||
|---|---|---|---|
|
#18+
Это я знаю, но все равно спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.05.2002, 10:04 |
|
||
|
Автозапуск SQLServerAgent под Win98 (Desktop) - как ?
|
|||
|---|---|---|---|
|
#18+
Если еще актуально, то данный скрипт создает процедурe, которая будет стартовать при запуске сервера и в свою очередь запускать SQLServerAgent \nuse master go if exists (select * from sysobjects where id = object_id(N'[dbo].[sp_autostart_sqlagent]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[sp_autostart_sqlagent] GO SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON GO create procedure dbo.sp_autostart_sqlagent as declare @retcode int declare @local int exec @retcode = sp_OACreate 'SQLDMO.SqlServer', @local OUT if @retcode<>0 return -1 EXEC @retcode = sp_OAMethod @local, 'Connect', NULL, '(local)' if @retcode<>0 return -1 declare @js int EXEC @retcode = sp_OAMethod @local,'JobServer' , @js OUT return -1 EXEC @retcode = sp_OAMethod @js,'Start' if @retcode<>0 return -1 return 0 GO SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON GO exec master..sp_procoption 'sp_autostart_sqlagent','startup',true go ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.05.2002, 15:01 |
|
||
|
|

start [/forum/topic.php?fid=46&fpage=3473&tid=1822641]: |
0ms |
get settings: |
8ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
58ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
28ms |
get tp. blocked users: |
1ms |
| others: | 242ms |
| total: | 360ms |

| 0 / 0 |
