Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you use sql views in asp.net? 1

Status
Not open for further replies.

radiance

Programmer
Jan 4, 2003
164
US
hello.

another developer needs for me to use his views in my program. I have looked on microsoft's site and there is no clear explanation on using 'views' in place of sql queries.

please advise.

so, if I wanted to change the following:

Dim pullfilesbyDate As String = "select bookID, title, dateSubmitted from mytestTable where dateSubmitted between '" & firstdate & "' and '" & lastdate & "' order by dateSubmitted ASC"

the view is showTable

how would that be done? the view may also have several possible parameters too?
 
Accessing a view should be no different to accessing a table so just replace the table name with the view name.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
ok...but is there a way to select certain parameters from the view?
 
Again, it's the same format as if you were adding parameters when searching a table.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top