c# - Creating parameterized SQL queries in XML file -
i have been asked fix sql injection issue reported static analysis tool. sql queries stored in xml file shown below.
<import> <command>select username id,username,(case password when 'global' 1 else 0 end) isglobal,(case password when 'external' 1 else 0 end) isexternal dba_users</command> <command attribute="roles">select granted_role roles dba_role_privs grantee='&username'</command> <command attribute="privs">select privilege privs dba_sys_privs grantee='&username'</command> </import> i have replace placeholders grantee='&username' , grantee='&username' query parameters, @paramname in sql server. c++ background , new sql , .net.
any guidelines me.
Comments
Post a Comment