Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Task to SQL Server 2005

Task to SQL Server 2005

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Manish_Kumar_Nayak
    wrote on last edited by
    #1

    I have 55000 of member records in the database, I have a procedure in Sql Server 2005 to calculate all members commission. I Execute this procedure on first date of every month. This is a MLM Project, Commission of every Member depends on Member Hierarchi, So in the way to calculate commission consider all members in the Hierarchi, it takes 24 hrs to generation commission. In this process I has to execture procedure for 24 hrs in my local machine. So, I need to assign task to server from client and disconnect from server. Is it posible ? pls suggest me a solution....

    M C S 3 Replies Last reply
    0
    • M Manish_Kumar_Nayak

      I have 55000 of member records in the database, I have a procedure in Sql Server 2005 to calculate all members commission. I Execute this procedure on first date of every month. This is a MLM Project, Commission of every Member depends on Member Hierarchi, So in the way to calculate commission consider all members in the Hierarchi, it takes 24 hrs to generation commission. In this process I has to execture procedure for 24 hrs in my local machine. So, I need to assign task to server from client and disconnect from server. Is it posible ? pls suggest me a solution....

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Manish_84 wrote:

      Is it posible ?

      Yes

      Manish_84 wrote:

      pls suggest me a solution....

      I would set it up as a job in SQL Server, scheduled to run every month. I would also look at the procedure, 55k members and runs for 24 hrs seems a lot excessive.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • M Manish_Kumar_Nayak

        I have 55000 of member records in the database, I have a procedure in Sql Server 2005 to calculate all members commission. I Execute this procedure on first date of every month. This is a MLM Project, Commission of every Member depends on Member Hierarchi, So in the way to calculate commission consider all members in the Hierarchi, it takes 24 hrs to generation commission. In this process I has to execture procedure for 24 hrs in my local machine. So, I need to assign task to server from client and disconnect from server. Is it posible ? pls suggest me a solution....

        C Offline
        C Offline
        Corporal Agarn
        wrote on last edited by
        #3

        This should not take 24 hours. Without seeing your code I would guess you need to rethink the steps to get the result. By the description it sounds like you are trying to do it all at once. First find commission rate for all to a temp table then apply commission rate for the output. Also as stated by others if not using SQL 2005 Express a job can be scheduled for the first of every month.

        1 Reply Last reply
        0
        • M Manish_Kumar_Nayak

          I have 55000 of member records in the database, I have a procedure in Sql Server 2005 to calculate all members commission. I Execute this procedure on first date of every month. This is a MLM Project, Commission of every Member depends on Member Hierarchi, So in the way to calculate commission consider all members in the Hierarchi, it takes 24 hrs to generation commission. In this process I has to execture procedure for 24 hrs in my local machine. So, I need to assign task to server from client and disconnect from server. Is it posible ? pls suggest me a solution....

          S Offline
          S Offline
          S Douglas
          wrote on last edited by
          #4

          Manish_84 wrote:

          24 hrs to generation commission

          :wtf: For that few of rows, there is no way it should take that long.


          Common sense is admitting there is cause and effect and that you can exert some control over what you understand.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups