Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / FoxPro / SQL Queries / September 2008

Tip: Looking for answers? Try searching our database.

sqlcommand for Views

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 26 Sep 2008 14:40 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.