Solved

best way to write into database

Posted on 2011-02-19
3
254 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

803 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