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. checking whether today's date is public holiday

checking whether today's date is public holiday

Scheduled Pinned Locked Moved Database
sharepointhelp
5 Posts 3 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.
  • U Offline
    U Offline
    User 8664010
    wrote on last edited by
    #1

    alter procedure sp_pubhol as begin select Holiday_Name from Holiday where Holiday_On = CONVERT(date,GETDATE()) end when i execute sp_pubhol , i am facing the following issue... Invalid object name 'Holiday' pls suggest me what should i do

    D M 2 Replies Last reply
    0
    • U User 8664010

      alter procedure sp_pubhol as begin select Holiday_Name from Holiday where Holiday_On = CONVERT(date,GETDATE()) end when i execute sp_pubhol , i am facing the following issue... Invalid object name 'Holiday' pls suggest me what should i do

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2

      The error is that it can't find a table called "Holiday". You can specify the database name followed by the table. I think the syntax is YourDB.Holiday or YourDB..Holiday. Give it a shot. :thumbsup:

      1 Reply Last reply
      0
      • U User 8664010

        alter procedure sp_pubhol as begin select Holiday_Name from Holiday where Holiday_On = CONVERT(date,GETDATE()) end when i execute sp_pubhol , i am facing the following issue... Invalid object name 'Holiday' pls suggest me what should i do

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

        You really need to get a book on databases and SQL, learn the basics before attempting to build a solution. Forum messages and cut and paste is not the way to learn!

        Never underestimate the power of human stupidity RAH

        U 2 Replies Last reply
        0
        • M Mycroft Holmes

          You really need to get a book on databases and SQL, learn the basics before attempting to build a solution. Forum messages and cut and paste is not the way to learn!

          Never underestimate the power of human stupidity RAH

          U Offline
          U Offline
          User 8664010
          wrote on last edited by
          #4

          i created a table Holiday....even then it is showing error...my doubt is Holiday_On =

          CONVERT(date,GETDATE())

          can i do like that....

          1 Reply Last reply
          0
          • M Mycroft Holmes

            You really need to get a book on databases and SQL, learn the basics before attempting to build a solution. Forum messages and cut and paste is not the way to learn!

            Never underestimate the power of human stupidity RAH

            U Offline
            U Offline
            User 8664010
            wrote on last edited by
            #5

            hi, its working....

            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