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. Web Development
  3. ASP.NET
  4. about the stored procedure

about the stored procedure

Scheduled Pinned Locked Moved ASP.NET
questiondatabase
7 Posts 5 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.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    i read somewhere two lines in the stored procedure. @companyname varchar(120), declare @companyname varchar(120), What is the differnce between them?

    Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

    N P S R 5 Replies Last reply
    0
    • S Sonia Gupta

      i read somewhere two lines in the stored procedure. @companyname varchar(120), declare @companyname varchar(120), What is the differnce between them?

      Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      In short, the first would be used to specify a parameter to the proc. The second would be to declare a variable to use with the proc


      only two letters away from being an asset

      1 Reply Last reply
      0
      • S Sonia Gupta

        i read somewhere two lines in the stored procedure. @companyname varchar(120), declare @companyname varchar(120), What is the differnce between them?

        Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

        P Offline
        P Offline
        Piyush Vardhan Singh
        wrote on last edited by
        #3

        (@companyname varchar(120),) its declare to takes parameter for storprocr (declare @companyname varchar(120),) not take parameter

        Piyush Vardhan Singh Programmer TAS NewDelhi India 9313077379

        1 Reply Last reply
        0
        • S Sonia Gupta

          i read somewhere two lines in the stored procedure. @companyname varchar(120), declare @companyname varchar(120), What is the differnce between them?

          Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

          S Offline
          S Offline
          sathesh pandian
          wrote on last edited by
          #4

          @companyname varchar(120) is the parameter which value will be sent by the user input. declare @companyname varchar(120) is the variable declared inside the procedure. if you are passing some arguments in the procedure, then you will never needed it to redeclare.

          All The Best Sathesh Pandian

          S 1 Reply Last reply
          0
          • S sathesh pandian

            @companyname varchar(120) is the parameter which value will be sent by the user input. declare @companyname varchar(120) is the variable declared inside the procedure. if you are passing some arguments in the procedure, then you will never needed it to redeclare.

            All The Best Sathesh Pandian

            S Offline
            S Offline
            Sonia Gupta
            wrote on last edited by
            #5

            thanks..:)

            Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

            1 Reply Last reply
            0
            • S Sonia Gupta

              i read somewhere two lines in the stored procedure. @companyname varchar(120), declare @companyname varchar(120), What is the differnce between them?

              Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

              R Offline
              R Offline
              Raghvendra Kumar Roy
              wrote on last edited by
              #6

              BY declare @companyname varchar(120) Variables are declared in the body of a batch or procedure with the DECLARE statement and are assigned values with either a SET or SELECT statement. While @companyname varchar(120) When we pass parameter in Procedure Then we stored them that parameter through Addparameter function.

              Raghvendra Kumar Roy

              1 Reply Last reply
              0
              • S Sonia Gupta

                i read somewhere two lines in the stored procedure. @companyname varchar(120), declare @companyname varchar(120), What is the differnce between them?

                Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....

                P Offline
                P Offline
                Piyush Vardhan Singh
                wrote on last edited by
                #7

                u have not given my answer yaar which i previews asked

                Piyush Vardhan Singh Programmer TAS NewDelhi India 9313077379

                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