Solved

best way to write into database

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

821 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