Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored procedures vs dynamic SQL?? URGENT _

Status
Not open for further replies.

RDC

Programmer
Jan 6, 2001
55
US
Stored procedures vs dynamic SQL?? URGENT _

just need quick advantage.. PLEASE..
 
dynamic SQL needs to be parsed before execution each time whereas a stored procedure generates an execution plan which it reuses each subsequent execution improving its performance.

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

 
And dynamic sql needs user permissions on the objects

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
And dynamic SQL can result in run time errors as every possible sQL statemetn will not be tested. If you can do something without dynamic SQL, you should.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top