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. stored procedure

stored procedure

Scheduled Pinned Locked Moved Database
csharpasp-netdatabasevisual-studioquestion
7 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.
  • Y Offline
    Y Offline
    yazan_zahi
    wrote on last edited by
    #1

    why we shouled using the stored procedure vs asp.net ?? yazan_shalabi

    M _ 2 Replies Last reply
    0
    • Y yazan_zahi

      why we shouled using the stored procedure vs asp.net ?? yazan_shalabi

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      yazan_zahi wrote:

      why we shouled using the stored procedure vs asp.net ??

      Um. Stored Procedures are used in databases. asp.net is a framework for writing web-applications. I think you need to phrase your question better.

      Michael CP Blog [^] Development Blog [^]

      Y 1 Reply Last reply
      0
      • Y yazan_zahi

        why we shouled using the stored procedure vs asp.net ?? yazan_shalabi

        _ Offline
        _ Offline
        _AK_
        wrote on last edited by
        #3

        And also don't repost..

        Best Regards, Apurva Kaushal

        1 Reply Last reply
        0
        • M Michael P Butler

          yazan_zahi wrote:

          why we shouled using the stored procedure vs asp.net ??

          Um. Stored Procedures are used in databases. asp.net is a framework for writing web-applications. I think you need to phrase your question better.

          Michael CP Blog [^] Development Blog [^]

          Y Offline
          Y Offline
          yazan_zahi
          wrote on last edited by
          #4

          we write the stored procedure in sqlserver2000 (update,insert,select)that better than write the statment it in asp.net code why ??? yazan_shalabi

          M _ 2 Replies Last reply
          0
          • Y yazan_zahi

            we write the stored procedure in sqlserver2000 (update,insert,select)that better than write the statment it in asp.net code why ??? yazan_shalabi

            M Offline
            M Offline
            Michael P Butler
            wrote on last edited by
            #5

            yazan_zahi wrote:

            we write the stored procedure in sqlserver2000 (update,insert,select)that better than write the statment it in asp.net code why ???

            Different developers will tell you something different. Personally, I always use stored procedures. It keeps the database separate from the application, which to my mind makes maintaining the websites easier. It also allows the DBA to optimize the database end without having to change and redeploy the application.

            Michael CP Blog [^] Development Blog [^]

            Y 1 Reply Last reply
            0
            • M Michael P Butler

              yazan_zahi wrote:

              we write the stored procedure in sqlserver2000 (update,insert,select)that better than write the statment it in asp.net code why ???

              Different developers will tell you something different. Personally, I always use stored procedures. It keeps the database separate from the application, which to my mind makes maintaining the websites easier. It also allows the DBA to optimize the database end without having to change and redeploy the application.

              Michael CP Blog [^] Development Blog [^]

              Y Offline
              Y Offline
              yazan_zahi
              wrote on last edited by
              #6

              add recored to the table ks_Media_item -if the same Item_no Value Found in the table Print msg"Record found"and exit the procedure -the columns (Updated_by,Updated_Date)will be null the tabel columns (Item_no,Decription,Added_Date, Added_By,Updated_by,Updated_Date) thank you;

              1 Reply Last reply
              0
              • Y yazan_zahi

                we write the stored procedure in sqlserver2000 (update,insert,select)that better than write the statment it in asp.net code why ??? yazan_shalabi

                _ Offline
                _ Offline
                _AK_
                wrote on last edited by
                #7

                And also stored procedure are pre comiled thing so not compiling it everytime you execute that unlike normal sql queries.

                Best Regards, Apurva Kaushal

                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