In windows application what should prefer -
Stored procedure or Inline query (Means query written in application)
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Robbinson86 reputationPosted Oct 18, 2013, 1:44 AM EDT
I think this is duplicate thread
http://www.c-sharpcorner.com/Forums/Thread/235111/
yes stored procedure is better than inline query... SP has their own advantages like it prevent SQL injection, reduce n/w traffic ect...
hope this will help you.
Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 18, 2013, 1:47 AM EDT
Store procedure is help us to prevent SQL injection atteck.
please refer
http://docs.oracle.com/cd/F49540_01/DOC/java.815/a64686/01_intr3.htm
Ravi ShekharRank #673 · 3.6K reputationPosted Oct 19, 2013, 3:39 AM EDT
Ravi ShekharRank #673 · 3.6K reputationPosted Oct 19, 2013, 3:41 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 20, 2013, 9:40 PM EDT
I think yes SQl injection is alos possible with windows application...
Robbinson86 reputationPosted Oct 20, 2013, 9:52 PM EDT
Hi,
SQL injection is general issue not depending on any technology. in .NET technology use SqlParameter to prevent from Sql Injection instead of string concatations of parameters.
How sql injection possioble in Winform, please refer below blog.
http://www.c-sharpcorner.com/Blogs/11794/