473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Start SQL Agent by T-SQL Command

As subject, I need to find a way to start sql agent by my own
sp.

Sorry, I didn't search on the net, but I'm releasing my app, and
monday it must run on the customer server.

--
Sincerely
Andrea Moro
Nov 20 '05 #1
7 6483
You can try issuing
xp_cmdshell 'net start sqlserveragent'

The returned recordset contains each line output by the startup process, you
can scan these to determine if errors occur, however, starting the agent a
second time throws an error message, but doesn't affect anything else.

The procedure also returns when the command is complete, so you should be
confident that agent is running when it comes back. You can specify the ",
nooutput" at the end of the line if you don't want the returned recordset,
but I would highly recommend it, just to check for errors.

Let us know if it helps.
"Andrea Moro" <mo**********@tiscalinet.it> wrote in message
news:ez**************@TK2MSFTNGP09.phx.gbl...
As subject, I need to find a way to start sql agent by my own
sp.

Sorry, I didn't search on the net, but I'm releasing my app, and
monday it must run on the customer server.

--
Sincerely
Andrea Moro

Nov 20 '05 #2
Hello,

"Andrea Moro" <mo**********@tiscalinet.it> schrieb:
Sorry, I didn't search on the net, but I'm releasing my app, and
monday it must run on the customer server.


LOL.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Herfried K. Wagner [MVP] wrote:
Hello,

"Andrea Moro" <mo**********@tiscalinet.it> schrieb:
Sorry, I didn't search on the net, but I'm releasing my app, and
monday it must run on the customer server.


LOL.


What't the LOL issue?

--
Saluti
Andrea Moro
Nov 20 '05 #4
Hello,

"Andrea Moro" <mo**********@tiscalinet.it> schrieb:
"Andrea Moro" <mo**********@tiscalinet.it> schrieb:
Sorry, I didn't search on the net, but I'm releasing my app, and
monday it must run on the customer server.


LOL.


What't the LOL issue?


No, it's not a solution. Have a Google Search on what "LOL" means.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #5
Herfried K. Wagner [MVP] wrote:
Hello,

"Andrea Moro" <mo**********@tiscalinet.it> schrieb:
"Andrea Moro" <mo**********@tiscalinet.it> schrieb:
Sorry, I didn't search on the net, but I'm releasing my app, and
monday it must run on the customer server.

LOL.


What't the LOL issue?


No, it's not a solution. Have a Google Search on what "LOL" means.

;-)


I know what mean LOL, but I don't understand why y are laughing ..
or what let you to laugh

--
Saluti
Andrea Moro
Nov 20 '05 #6
Cor
Andrea,

A lot of people are helping here beside there regulair job for free, but
maybe you did not know this?
And they expect to help people who are desperate and can not find things
after a long time searching.

Yes you are right it had to be COL, (Crying On Line).

Cor
Nov 20 '05 #7
Hello,

"Cor" <no*@non.com> schrieb:
Yes you are right it had to be COL, (Crying On Line).


ROFL.

EOT.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Fuzzyman | last post by:
I'm writing a function that will query the comp.lang.python newsgroup via google groups....... (I haven't got nntp access from work..) I'm using urllib (for the first time)..... and google don't...
0
by: Sridhar G | last post by:
Hi, I have implemented Snapshot replication on my database server. The publisher, distributor and the subscriber are in the same machine. There is a database 'X' that gets replicated every...
60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
4
by: Don Adams | last post by:
Does the Mozilla browser even support CSS? Very few of my stylesheet formats work in Mozilla. Is there a local stylesheet that is overriding my stylesheet? If so, is there an option to turn off...
1
by: Agent 007 | last post by:
I tried to install Visual Basic .NET 2003 on Windows XP home edition. The Pre Requires CD works fine, and then I clicked the option 2, which is to start the installation of the software, but...
4
by: Yiu | last post by:
upgent help i want to start IE explorer using C# i try many code such as below: ProcessStartInfo startInfo = new ProcessStartInfo("IEXPLORE.EXE"); Process.Start(startInfo); or Process...
1
by: Jon Spivey | last post by:
Hi, I'm using webrequest to scrape some urls, works fine, however one url seems to be throwing an error when it doesn't recognise the user agent. So I need to set the user agent to something...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post from dontnet.framework but I'm hoping this may see more activity here. I have written an application to access a web service. The application runs at multiple sites and...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post; I'm hoping this will get a response here... I have written an application to access a web service. The application runs at multiple sites and must cross a proxy server....
35
by: RobG | last post by:
Seems developers of mobile applications are pretty much devoted to UA sniffing: <URL: http://wurfl.sourceforge.net/vodafonerant/index.htm > -- Rob
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.