Solved

ASP.net SqlDataSource

Posted on 2012-03-26
3
272 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:murbro
3 Comments
 
LVL 53

Accepted Solution

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

Assisted Solution

by:Jerry Miller
Jerry Miller earned 250 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:murbro
ID: 37786457
thanks
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ck editor is taking too much time to be loaded in asp 1 17
encoding an href string 2 20
SQL Improvement  ( Speed) 14 26
sql how to count case when 4 14
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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