Results 1 to 3 of 3

Thread: Query and Procedures

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Answers
    2

    Query and Procedures

    Can any one explain me exactly what is the difference between query & procedure? when we get the same result of any question by proceeding query then why we are suggest to use procedure? and where we can give up query for procedure? explain with proper example plz


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Query and Procedures

    A procedure is a pre-compile dblock of code. So it is not recompiled at runtime .But a SQL query is parsed everytime before execution . SO performance wise PROCEDURE is faster than a query.


  3. #3
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Query and Procedures

    Quote Originally Posted by prachee_singh View Post
    Can any one explain me exactly what is the difference between query & procedure? when we get the same result of any question by proceeding query then why we are suggest to use procedure? and where we can give up query for procedure? explain with proper example plz
    sql query is need to be complied every time when it is executed.where as
    procedures are compiled only once when they are executed for the first time.
    procedure is faster than query


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact