Hi,
How do I use Views :
using (SqlCommand cm = new SqlCommand())
{
cm.CommandText = "vw_List of Students";
cm.CommandType = CommandType.StoredProcedure; <-- doesn't work.
.......
}
I've tried the code out using a text sql statement, it works fine. So my
only issue now is the line above.
Thanks in advance
regards,
Andrew
Bernhard Sander - 26 Sep 2008 15:26 GMT
Hi Andrew,
> How do I use Views :
Exactly like a base table:
SELECT * FROM yourView
Regards
Bernhard Sander