Solved

best way to write into database

Posted on 2011-02-19
3
259 Views
Last Modified: 2012-05-11

What is the best method to write data from a Web form into a table or database?
Currently I'm thinking of using stored procedure to write into and read from a table specially since there will be no way of SQL injection.

Is this a right approach? or there are better practical idea?

Thanks.
0
Comment
Question by:akohan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 200 total points
ID: 34934847
Stored procedure is the best practice as it allows for better maintenance and protects from sql injection attacks.
0
 
LVL 16

Assisted Solution

by:BurnieP
BurnieP earned 50 total points
ID: 34934866
Like Jacko said,  you cannot go wrong with Stored Procedure for it's effiency and security.

If you are familiar with Linq, it can also be a valid option.
0
 

Author Comment

by:akohan
ID: 34934945

Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question