job sql server donīt work

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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,...
    2. #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: ...
    3. 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>...
    4. 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...
    5. (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...
  3. #2

    Default 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

  4. #3

    Default Re: job sql server donīt work

    Mikael Hellström wrote:
    > 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
    I agree that you should post more details (is the job enabled? does anything
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139