Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is SQL Server Agent and do I need it? [closed]

I want to upgrade a 2005 db to 2008, using 2008 Sql Server Mgt Studio to do so, and getting the warning at the end. Questions:

  1. I no longer have the disk for SQL Server 2008; do I need that to install or start Agent? If I can't install Agent, will the upgrade to 2008 work?
  2. If Agent is likely installed but not started, where is it? I saw another SO post saying it was a Login option but I don't see it anywhere.

As an aside, my only real motivation to bother is that the datetime type has become a problem. What did people do when they needed a date earlier than the 18th century before date and datetime2 came along??

Warning from the: Copy Database Wizard

SQL Server Agent does not appear to be running on the destination server. If SQL Server Agent is not running on the destination server, Copy Database Wizard will not function properly. Do you want to continue?

like image 618
Berryl Avatar asked Oct 14 '11 14:10

Berryl


People also ask

Do I need SQL Server Agent running?

Microsoft SQL Server Agent must be running as a service in order to automate administrative tasks. For more information, see Configure SQL Server Agent. Object Explorer only displays the SQL Server Agent node if you have permission to use it.

What happens if SQL Server Agent is stopped?

Answer. The SQL Server Agent might keep stopping, but the SQL Server service remains operational. The only way to correct the issue is to rebuild the master database by rerunning the SQL Server Setup utility. If you require assistance on this process, you need to engage Microsoft support.

Why is SQL Server Agent needed?

SQL Server Agent is a Microsoft Windows service that runs scheduled administrative tasks that are called jobs. You can use SQL Server Agent to run T-SQL jobs to rebuild indexes, run corruption checks, and aggregate data in a SQL Server DB instance.

Where is the SQL Server Agent?

The SQL Server Agent node can be located in the root node when using Object Explorer. If you expand this node, you will also see other related items to SQL Server Agent.


2 Answers

try :

start-> run->services.msc

search for the sql server agent and see if it has started

like image 144
Royi Namir Avatar answered Oct 19 '22 22:10

Royi Namir


What did people do when they needed a date earlier than the 18th century before date and datetime2 came along??

That is an SQL Server limitation (and perhaps other DBMS). I would say that since C# (.NET) can handle a date like "01/01/0001" you can always convert your date into a long, save it to the db as a BIGINT and recreate/regenerate it after retrieval. For example, to convert today's date to a long, you can do:

var dt = DateTime.Now.ToBinary();

That is a hack, of course :)

The following line will convert the long back into a date:

var dt1 = DateTime.FromBinary(dt);
like image 41
John Gathogo Avatar answered Oct 20 '22 00:10

John Gathogo