Ask a Question related to ASP Database, Design and Development.
-
Mikael Hellström #1
job sql server donīt work
Hi, im running windows 2000 and sql server 2000
I have added a job to my database on a 5 minute run schedule.
The TSQL statement you can find below
DELETE FROM online
WHERE (DATEDIFF(n, tid, GETDATE()) > 25)
But it donīt fire at all. Any now why?
Regards Mikael
Mikael Hellström Guest
-
Testing Server for JSP doesn't work
I am configuring the test server to process JSP pages, but it doesn't work. I have configured IIS as my web server. Copied trio.mdb on test server,... -
#23947 [Com]: PHP will not work on this server
ID: 23947 Comment by: mk at mi8net dot com Reported By: smittyjr18 at yahoo dot com Status: Bogus Bug Type: ... -
CR doesn't work with SQL Server in ASP
Here is the code. I realize there is nowhere I can put the login information to connect to SQL Server. <%@ LANGUAGE="VBSCRIPT" %> <HTML> <HEAD>... -
Server.Transfer does not work?
Hi I am trying to transfer to a different .ASPX page using Server.Transfer. However, I get the following error: "Error executing child request... -
(SERVER=SHARED) connections work but (SERVER=DEDICATED) does not
All, Were running V8.1.7.4 of the database on HP-UX 11.11 I have a database setup to use MTS. The following MTS parameters are set in the... -
CJM #2
Re: job sql server donīt work
I would post the question in one of the .sqlserver.* groups..
CJM
"Mikael Hellström" <micke.hellstrom@telia.com> wrote in message
news:20okc.91244$dP1.280487@newsc.telia.net...> Hi, im running windows 2000 and sql server 2000
> I have added a job to my database on a 5 minute run schedule.
> The TSQL statement you can find below
>
> DELETE FROM online
> WHERE (DATEDIFF(n, tid, GETDATE()) > 25)
>
> But it donīt fire at all. Any now why?
>
> Regards Mikael
>
>
CJM Guest
-
Bob Barrows #3
Re: job sql server donīt work
Mikael Hellström wrote:
I agree that you should post more details (is the job enabled? does anything> Hi, im running windows 2000 and sql server 2000
> I have added a job to my database on a 5 minute run schedule.
> The TSQL statement you can find below
>
> DELETE FROM online
> WHERE (DATEDIFF(n, tid, GETDATE()) > 25)
>
> But it donīt fire at all. Any now why?
>
> Regards Mikael
show up in the View History dialog? This will tell us if the job ran but
failed. Are there any entries about the job in the SQL error log or the
Windows Event Viewer?) to a sqlserver group. But I do want to comment on
that WHERE clause:
By using a function with a column as an argument, you are forcing a scan to
be made. This would be much more efficient:
WHERE tid > DATEADD(n,-25,GETDATE())
Now, if there is an index on tid, the index can be used. Look up "sargable"
in Google for more information.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest



Reply With Quote

