Count down from 0 to 5 seconds and repeat

Is the decompression of compressed and encrypted data without decryption also theoretically impossible?

Chopin: marche funèbre bar 15 impossible place

I completed a difficult task using a tool I developed before joining my employer. What is my obligation?

Movie where a boy is transported into the future by an alien spaceship

Will TSA allow me to carry a Continuous Positive Airway Pressure (CPAP) device?

Regarding eBGP Multipath

Old black and white movie: glowing black rocks slowly turn you into stone upon touch

Is it legal in the UK for politicians to lie to the public for political gain?

Is there any rule preventing me from starting multiple bardic performances in a single round?

What happens to foam insulation board after you pour concrete slab?

The ring of global sections of a regular scheme

My ESTA has been refused

Why were the Night's Watch required to be celibate?

If Boris Johnson were prosecuted and convicted of lying about Brexit, can that be used to cancel Brexit?

Do manufacturers try make their components as close to ideal ones as possible?

What are the words for people who cause trouble believing they know better?

Comma Code - Ch. 4 Automate the Boring Stuff

What happens if you do emergency landing on a US base in middle of the ocean?

What flavor of zksnark in tezos

Why don't B747s start takeoffs with full throttle?

Is it OK to bring delicacies from hometown as tokens of gratitude for an out-of-town interview?

Side by side histograms

PhD student with mental health issues and bad performance

Building a road to escape Earth's gravity by making a pyramid on Antartica



Count down from 0 to 5 seconds and repeat







.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?










share|improve this question







New contributor



svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    8 hours ago

















1















What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?










share|improve this question







New contributor



svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    8 hours ago













1












1








1








What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?










share|improve this question







New contributor



svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











What query can I use to trigger a count down from 0 to 5 seconds whenever executed? When I execute a query the output has to be 0 second to 5 second and once 5 seconds are done again it should go back to 0. When I execute again it should start from 0 to 5 seconds. Is it possible to achieve something like this using sql query?







sql-server






share|improve this question







New contributor



svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









svisveshsvisvesh

112




112




New contributor



svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




svisvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    8 hours ago

















  • Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

    – George.Palacios
    8 hours ago
















Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

– George.Palacios
8 hours ago





Can I just clarify, do you want to output a count after each second, or just simply wait for 5 seconds. You say the "output" has to be 0 to 5 seconds

– George.Palacios
8 hours ago










2 Answers
2






active

oldest

votes


















5














WaitFor should help you accomplish this.



In your case we can simply pass a DELAY time as below



WAITFOR DELAY '00:00:05';


This will simply wait for 5 seconds, then return to the caller.






share|improve this answer






























    3














    Have you looked into the waitfor delay command? See below example



    while 1=1
    begin
    --do something
    waitfor delay '00:00:05'
    end





    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "182"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );






      svisvesh is a new contributor. Be nice, and check out our Code of Conduct.









      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f239564%2fcount-down-from-0-to-5-seconds-and-repeat%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      WaitFor should help you accomplish this.



      In your case we can simply pass a DELAY time as below



      WAITFOR DELAY '00:00:05';


      This will simply wait for 5 seconds, then return to the caller.






      share|improve this answer



























        5














        WaitFor should help you accomplish this.



        In your case we can simply pass a DELAY time as below



        WAITFOR DELAY '00:00:05';


        This will simply wait for 5 seconds, then return to the caller.






        share|improve this answer

























          5












          5








          5







          WaitFor should help you accomplish this.



          In your case we can simply pass a DELAY time as below



          WAITFOR DELAY '00:00:05';


          This will simply wait for 5 seconds, then return to the caller.






          share|improve this answer













          WaitFor should help you accomplish this.



          In your case we can simply pass a DELAY time as below



          WAITFOR DELAY '00:00:05';


          This will simply wait for 5 seconds, then return to the caller.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 8 hours ago









          George.PalaciosGeorge.Palacios

          3,108827




          3,108827























              3














              Have you looked into the waitfor delay command? See below example



              while 1=1
              begin
              --do something
              waitfor delay '00:00:05'
              end





              share|improve this answer



























                3














                Have you looked into the waitfor delay command? See below example



                while 1=1
                begin
                --do something
                waitfor delay '00:00:05'
                end





                share|improve this answer

























                  3












                  3








                  3







                  Have you looked into the waitfor delay command? See below example



                  while 1=1
                  begin
                  --do something
                  waitfor delay '00:00:05'
                  end





                  share|improve this answer













                  Have you looked into the waitfor delay command? See below example



                  while 1=1
                  begin
                  --do something
                  waitfor delay '00:00:05'
                  end






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 8 hours ago









                  kevinnwhatkevinnwhat

                  62018




                  62018




















                      svisvesh is a new contributor. Be nice, and check out our Code of Conduct.









                      draft saved

                      draft discarded


















                      svisvesh is a new contributor. Be nice, and check out our Code of Conduct.












                      svisvesh is a new contributor. Be nice, and check out our Code of Conduct.











                      svisvesh is a new contributor. Be nice, and check out our Code of Conduct.














                      Thanks for contributing an answer to Database Administrators Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f239564%2fcount-down-from-0-to-5-seconds-and-repeat%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                      Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                      François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480