?
Solved

ASP.net SqlDataSource

Posted on 2012-03-26
3
Medium Priority
?
278 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
[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 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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

764 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