Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2008
    Posts
    40

    Unanswered: Dynamic query VS Static Query

    Is there any performance draw back in Dynamic query with no parameter that is concatenated inside SP?

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >Is there any performance draw back in Dynamic query with no parameter that is concatenated inside SP?

    yes, it forces HARD parse every execution & does NOT scale
    should NOT be doing DDL as standard operation of application
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Mar 2008
    Posts
    40
    What is DDL?

    And is it OK to write parametrized dynamic query and pass the parameters in stored procedure?

  4. #4
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    Data Definition Language - Wikipedia, the free encyclopedia (DDL)
    vs.
    Data Manipulation Language - Wikipedia, the free encyclopedia (DML)

    >And is it OK to write parametrized dynamic query and pass the parameters in stored procedure?
    post example of what above means
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •