Yes, it is totally inefficient in regards to the intertnal workings of the SQL Server - it is also harder to read and debug... for everytime you use a dynamic SQL I can 99.9% guarantee there is a far more efficient way using 'normal' t-sql
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 February 2005 10:45 To: SQL Subject: Re: How do you do an IF condition in where statement Is it really that bad or hard? ----- Original Message ----- From: "Robertson-Ravo, Neil (RX)" <[EMAIL PROTECTED]> To: "SQL" <[email protected]> Sent: Friday, February 25, 2005 2:01 AM Subject: RE: How do you do an IF condition in where statement > ARRRGH!!!! Stop using Dynamic SQL ;-)!!!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2181 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
