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. Debugging a Stored Proc

Debugging a Stored Proc

Scheduled Pinned Locked Moved Database
databasehelpdebugging
3 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.
  • D Offline
    D Offline
    Dave S
    wrote on last edited by
    #1

    SQL 2000 has a method in the query analyzer to debug a stored procedure. (Use object browser, select the stored proc, then right click and select debug). This is really nifty, with the exception of passing dates to a datetime parameter. I cannot figure out the format for the date. String mm/dd/yy doesn't work, either with or without single quote. I am stuck, any help would be greatly appreciated. "It takes a minimum of redesign to turn a crucifix into a pogo stick"

    M J 2 Replies Last reply
    0
    • D Dave S

      SQL 2000 has a method in the query analyzer to debug a stored procedure. (Use object browser, select the stored proc, then right click and select debug). This is really nifty, with the exception of passing dates to a datetime parameter. I cannot figure out the format for the date. String mm/dd/yy doesn't work, either with or without single quote. I am stuck, any help would be greatly appreciated. "It takes a minimum of redesign to turn a crucifix into a pogo stick"

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      yyyy-mm-dd works, IIRC. If all else fails, try converting to a number:

      SELECT CAST( CAST( '2003-01-01' AS datetime ) AS int )

      1 Reply Last reply
      0
      • D Dave S

        SQL 2000 has a method in the query analyzer to debug a stored procedure. (Use object browser, select the stored proc, then right click and select debug). This is really nifty, with the exception of passing dates to a datetime parameter. I cannot figure out the format for the date. String mm/dd/yy doesn't work, either with or without single quote. I am stuck, any help would be greatly appreciated. "It takes a minimum of redesign to turn a crucifix into a pogo stick"

        J Offline
        J Offline
        Jorgen Sigvardsson
        wrote on last edited by
        #3

        Dave S wrote: String mm/dd/yy doesn't work, either with or without single quote. That depends totally on the configuration of the database. There's always the date functions and/or ISO format "yyyy-mm-dd" :) -- I am of The Clan of Xymox. I wear a pink kilt!

        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