Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: making a white black smooth animation Pin
Christian Graus9-Jun-08 7:26
protectorChristian Graus9-Jun-08 7:26 
QuestionRe: making a white black smooth animation [modified] Pin
Sajjad Izadi9-Jun-08 7:49
Sajjad Izadi9-Jun-08 7:49 
AnswerRe: making a white black smooth animation Pin
Christian Graus9-Jun-08 13:25
protectorChristian Graus9-Jun-08 13:25 
QuestionChanging IIS Settings Pin
Yourbuddypal9-Jun-08 5:52
Yourbuddypal9-Jun-08 5:52 
AnswerRe: Changing IIS Settings Pin
Yourbuddypal9-Jun-08 8:33
Yourbuddypal9-Jun-08 8:33 
QuestionNamespace? Pin
#realJSOP9-Jun-08 5:27
professional#realJSOP9-Jun-08 5:27 
AnswerRe: Namespace? Pin
Judah Gabriel Himango9-Jun-08 5:37
sponsorJudah Gabriel Himango9-Jun-08 5:37 
GeneralRe: Namespace? Pin
#realJSOP9-Jun-08 5:53
professional#realJSOP9-Jun-08 5:53 
QuestionCVS update failed Pin
humayunlalzad9-Jun-08 4:17
humayunlalzad9-Jun-08 4:17 
AnswerRe: CVS update failed Pin
benjymous9-Jun-08 5:05
benjymous9-Jun-08 5:05 
AnswerRe: CVS update failed Pin
Ashfield9-Jun-08 21:42
Ashfield9-Jun-08 21:42 
QuestionXML Writer and the ampersand Pin
ranro20069-Jun-08 3:37
ranro20069-Jun-08 3:37 
AnswerRe: XML Writer and the ampersand Pin
leppie9-Jun-08 3:45
leppie9-Jun-08 3:45 
AnswerRe: XML Writer and the ampersand Pin
PIEBALDconsult9-Jun-08 5:46
mvePIEBALDconsult9-Jun-08 5:46 
QuestionHow to execute an SQL statement from a DataSet? Pin
bouli9-Jun-08 3:29
bouli9-Jun-08 3:29 
AnswerRe: How to execute an SQL statement from a DataSet? Pin
leppie9-Jun-08 3:32
leppie9-Jun-08 3:32 
AnswerRe: How to execute an SQL statement from a DataSet? Pin
Vimalsoft(Pty) Ltd9-Jun-08 4:02
professionalVimalsoft(Pty) Ltd9-Jun-08 4:02 
GeneralRe: How to execute an SQL statement from a DataSet? Pin
bouli9-Jun-08 4:40
bouli9-Jun-08 4:40 
GeneralRe: How to execute an SQL statement from a DataSet? Pin
Vimalsoft(Pty) Ltd9-Jun-08 5:02
professionalVimalsoft(Pty) Ltd9-Jun-08 5:02 
GeneralRe: How to execute an SQL statement from a DataSet? Pin
bouli9-Jun-08 5:17
bouli9-Jun-08 5:17 
GeneralRe: How to execute an SQL statement from a DataSet? Pin
Vimalsoft(Pty) Ltd9-Jun-08 20:50
professionalVimalsoft(Pty) Ltd9-Jun-08 20:50 
ok,

I was showing you, if the data is already in the dataset. then your Dataset will have a name and a datatable, then from the above code.
see , you will end up with a dataset object.
Dim strFileName As String = "MyFile.csv"
Dim strPath As String = "C:\"
Dim strCon As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + strPath + ";Extended
Properties='text;HDR=Yes;FMT=Delimited'"
Dim con As New OleDbConnection(strCon)
Dim cmdGetCsv As New OleDbCommand("SELECT * from " +
strFileName, con)
Dim csvAdapter As New OleDbDataAdapter(cmdGetCsv)
'Dim csvReader As OleDbDataReader
con.Open()

Dim dsCsv As DataSet = New DataSet

csvAdapter.Fill(dsCsv)


you can change your Select statement to your liking.

Hopr this Helps

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


QuestionConnecting to DB from a Web Service Pin
zaboboa9-Jun-08 2:21
zaboboa9-Jun-08 2:21 
AnswerRe: Connecting to DB from a Web Service Pin
Colin Angus Mackay9-Jun-08 2:28
Colin Angus Mackay9-Jun-08 2:28 
GeneralRe: Connecting to DB from a Web Service [modified] Pin
zaboboa9-Jun-08 2:35
zaboboa9-Jun-08 2:35 
AnswerRe: Connecting to DB from a Web Service Pin
Vimalsoft(Pty) Ltd9-Jun-08 4:07
professionalVimalsoft(Pty) Ltd9-Jun-08 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.