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. Deallocating variable in SQL Server

Deallocating variable in SQL Server

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.
  • R Offline
    R Offline
    rachitdamani
    wrote on last edited by
    #1

    Hi All, I need to deallocate normal variable that has been declared in Stored Procedure in SQL Server. So how i could achieve this? Thanks in advance, Rachit Damani.

    C J N 3 Replies Last reply
    0
    • R rachitdamani

      Hi All, I need to deallocate normal variable that has been declared in Stored Procedure in SQL Server. So how i could achieve this? Thanks in advance, Rachit Damani.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      rachitdamani wrote:

      I need to deallocate normal variable that has been declared in Stored Procedure in SQL Server.

      I don't understand what you mean by this. Why would you want to deallocate a variable?


      Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

      1 Reply Last reply
      0
      • R rachitdamani

        Hi All, I need to deallocate normal variable that has been declared in Stored Procedure in SQL Server. So how i could achieve this? Thanks in advance, Rachit Damani.

        J Offline
        J Offline
        Jaiprakash M Bankolli
        wrote on last edited by
        #3

        Can you explain this little bit more, if you want to just reinitializes various variables used in SP then use set statement with variable...

        Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com http://jaiprakash.blog.com/

        1 Reply Last reply
        0
        • R rachitdamani

          Hi All, I need to deallocate normal variable that has been declared in Stored Procedure in SQL Server. So how i could achieve this? Thanks in advance, Rachit Damani.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          rachitdamani wrote:

          I need to deallocate normal variable that has been declared in Stored Procedure in SQL Server.

          Will be automatically deallocated when it is out of scope


          printf("Navaneeth!!") www.w3hearts.com

          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