|
-
Sep 24th, 2005, 05:50 AM
#1
Thread Starter
New Member
how to Fill dataset from a view instead of table
Plz tell me how to fill a dataset with a view which exist in sql server instead of table.
and one more thing is it possble to fetch values from a table if it is locked by oledbtransaction.
-
Sep 24th, 2005, 07:23 PM
#2
Re: how to Fill dataset from a view instead of table
You simply use the name of the view instead of the name of a table in your SQL statements.
-
Sep 25th, 2005, 02:34 AM
#3
Frenzied Member
Re: how to Fill dataset from a view instead of table
Not your question, but from experience I will not advice you to use a view as datasource, if the view will return large amounts of data. It can become really slow.
I once had to write an app that refresh olap cubes from views, and heck it was so slow, and everyone blamed my application. It turns out you need SQL Enterprise to index views for performance boost.
If you run into that problem too, rather use a stored procedure. At least sql server optimize it for you.
-
Sep 26th, 2005, 01:59 AM
#4
Thread Starter
New Member
Re: how to Fill dataset from a view instead of table
then how will i fetch value from a particular row as i used to get like
Dataset.Tables[0].Rows[0][0].ToString()
-
Sep 26th, 2005, 02:15 AM
#5
Re: how to Fill dataset from a view instead of table
Once you have retrieved the data everything is exactly the same as before.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|