Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Difference SQL and Dynamic sql

Author  Topic 

abuhassan

105 Posts

Posted - 2006-09-08 : 04:55:24
Hi

what is the difference between SQL and dynamic SQL?

Is there difference in performance, efficiency etc?

Are dynamic sql more complex to maintain etc?

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-09-08 : 05:09:06
While the SQL is cutie, the dynamic sql is the Pain-in-the-neck to code, to maintain, to understand and to execute !! Does that answer your question?

I think the more you will use it, the more you will hate it !

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

abuhassan

105 Posts

Posted - 2006-09-08 : 05:31:58
what about in terms of performance and effciency?
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-09-08 : 10:05:04
Are we talking about SQL in Stored Procedures?


In any case never use dynamic sql, except when you need to.



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-09-08 : 11:36:23
quote:
Originally posted by X002548

In any case never use dynamic sql, except when you need to.





nice quote!



-ec
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-09-09 : 08:17:10

http://www.sommarskog.se/dynamic_sql.html


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -