Groups | Blog | Home
all groups > sql server reporting services > may 2005 >

sql server reporting services : Dynamic SQL


Wayne Snyder
5/27/2005 12:00:00 AM
Dynamic SQL isn't so risky on its face... BUT if you allow people to enter
text which becomes part of the Dnamic SQL, you can get into trouble - SQL
Injection...

--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
(Please respond only to the newsgroup.)

I support the Professional Association for SQL Server ( PASS) and it's
community of SQL Professionals.
[quoted text, click to view]

sysdesigner
5/27/2005 8:42:05 AM
Hi all,

I am designing a system that will be exposing reports to the internet via a
link provided from within a .Net application. We want to use Dynamic SQL
because the end users building the reports wont be able to implement stored
procedures. Are there any security reasons not to do this?


Many thanks,
Alejandro Leguizamo (MVP)
5/29/2005 12:20:29 PM
Stay away fo Dynamic SQL. It's the source of the evil SQL Injection. If you
have to use it, then always use parameters of execution, and never string
concatenation.

--


Alejandro Leguizamo
MIcrosoft SQL Server MVP
www.microsoft.com/mvp
Colombia



[quoted text, click to view]

AddThis Social Bookmark Button