[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP.net SqlDataSource

Posted on 2012-03-26
3
Medium Priority
?
284 Views
Last Modified: 2012-03-30
Hi

I am fairly new to using SqlDataSource on an ASP.net page
Someone I work with referred to pulling a "view" and then just changing the where
clause. Can anyone elaborate on this?

Thanks
0
Comment
Question by:Murray Brown
3 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 1000 total points
ID: 37765193
0
 
LVL 18

Assisted Solution

by:Jerry Miller
Jerry Miller earned 1000 total points
ID: 37769631
Views are used in some cases to restrict access for specific users. A view is essentially a stored Select statement that is created for the users.

http://msdn.microsoft.com/en-us/library/aa214068%28v=sql.80%29.aspx

Changing the where clause at run time can be considered a dynamic query. These must be done correctly or you open yourself up to SQL injection.

Like Dhaest stated, what are your goals?
0
 

Author Closing Comment

by:Murray Brown
ID: 37786457
thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

831 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