Groups | Blog | Home
all groups > sql server msde > january 2005 >

sql server msde : Autostart MS Agent on Win98/Me


Allcomp
1/10/2005 1:49:58 PM
Hello,

does anyone know how I could autostart the MSAgent on Win98/Me with a
named instance.

I try with
scm.exe -Action 1 -Service SQLAgent$$" & str_InstanceName

where str_InstanceName is the name of the MSDE Instance.
The password is correct (I exported the crypted password from a computer
with Entreprise manager and the agent start with WinNT...
It can also start manually.
On Winnt, 2K and XP, all is fine, on Win98/Me, I receive the message
Service operation has been completed successfully but the agent did not
start. I can manually start the agent with the MSDE service manager, but
if my custommer forget it then he has no automatic backup of his database.



Thank you
Marc Allard
Jacco Schalkwijk
1/10/2005 4:02:58 PM
If you really rely on SQL Server Agent being started and you have not a lot
of control over the machine, start SQL Server Agent from within SQL Server:

-- Create a procedure to start SQL Server Agent
USE master
GO
CREATE PROC usp_start_sqlserveragent
AS
EXEC master..xp_cmdshell 'net start SQLServerAgent'
GO
-- Mark stored procedure to run on SQL Server start
EXEC sp_procoption 'usp_start_sqlserveragent', 'startup', 'true'

--
Jacco Schalkwijk
SQL Server MVP


[quoted text, click to view]

Gert E.R. Drapers
1/10/2005 8:14:32 PM
That will never work on Windows 9x based OS's since there is no concept of a
real service which gets started with NET START. Only Windows NT based OS's
(and OS/2) have NET START.

You can use SCM.EXE instead

GertD@SQLDev.Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2004 All rights reserved.

[quoted text, click to view]

Jacco Schalkwijk
1/11/2005 11:12:49 AM
Right. Seems Win9x is a bit too long ago for me. I better not answer any
more questions that involve Win 9x :)

--
Jacco Schalkwijk
SQL Server MVP


[quoted text, click to view]

Allcomp
1/12/2005 8:14:20 AM
Hello,

Thank you for your answers, but I already try to start the agent with
scm, but it doesn't start. If I start it manually with SQL Server
Service Manager, then it is working.
Is there something to do an automatic backup without the agent?

Thank you
Marc Allard
Allcomp


[quoted text, click to view]
AddThis Social Bookmark Button