473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can I Run SQL Statement for DataSet ?

Can I Run SQL Statement for DataSet ?
Mar 7 '06 #1
3 4461
Dragon,
That's a pretty "Bare" newsgroup post by any standards. The short answer is
"yes". Look up the DataAdapter and it's Fill method and the sample code will
show you.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dragon" wrote:
Can I Run SQL Statement for DataSet ?

Mar 7 '06 #2
Maybe I should make myself clear.
Suppose I have a DataSet, which have two Tables in it.?
Can I run SQL Statement , Select or insert, update base on theses two
DataTables ?

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> ¼¶¼g©ó¶l¥ó·s»D:EE********************************* *@microsoft.com...
Dragon,
That's a pretty "Bare" newsgroup post by any standards. The short answer
is
"yes". Look up the DataAdapter and it's Fill method and the sample code
will
show you.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dragon" wrote:
Can I Run SQL Statement for DataSet ?

Mar 7 '06 #3
Dragon,

No, you can not.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Dragon" <ta*****@hotmail.com> wrote in message
news:u9**************@TK2MSFTNGP11.phx.gbl...
Maybe I should make myself clear.
Suppose I have a DataSet, which have two Tables in it.?
Can I run SQL Statement , Select or insert, update base on theses two
DataTables ?

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com>
¼¶¼g©ó¶l¥ó·s»D:EE********************************* *@microsoft.com...
Dragon,
That's a pretty "Bare" newsgroup post by any standards. The short answer
is
"yes". Look up the DataAdapter and it's Fill method and the sample code
will
show you.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dragon" wrote:
Can I Run SQL Statement for DataSet ?


Mar 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Sunny | last post by:
Hi, I can not understend completely the lock statement. Actally what is locked: 1. the part of the code between {...} or 2. the object in lock() In the docs is written: for 1: The lock...
3
by: gh | last post by:
I have made the following stored procedure with the following select statement select * from user select * from order, orderdetail where order.id=orderdetail.id I know I can uses DataReader...
2
by: soulcode | last post by:
Hi Guys, Yesterday i was playing around with some code where I would read an xml file into a dataset... '*********************************** Dim ds as dataset ds.readxml("test.xml")...
1
by: Locke | last post by:
I know I'm doing something wrong, and it's something simple but I can't figure it out. I'm new at this and it's only a little more than a hobby so please bear with me. I'm writing a VB shell...
4
by: Cindy H | last post by:
Hi I'm using an access database and vb.net I have been using the following type of function to get data from one table. This is working great - Public Shared Function GetAllLotsForSale()...
2
by: travhale | last post by:
in a new project using .net 2005, c#. getting err message "Update requires a valid UpdateCommand when passed DataRow collection with modified rows." source RDBMS is oracle 8i. I add a new...
6
by: Kbalz | last post by:
Trying to run a simple query on my dataset the SQL statement looks like this: select * from person where id in (@p) When using more than one id in the "in statement", I get...
2
by: johnlarson | last post by:
I am trying to populate a datagrid from a select statement that contains variables. I can query the dbf file and get the whole file but when I try a select statement with variables from text box and...
6
by: cj | last post by:
I have a table with 3 fields (field1 is text, field2 and field3 are int) I want to write a sql command for VB that will return field1 and the sum of field2 and field3. For instance if the table...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.