Click here to Skip to main content
15,905,607 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb script code Pin
DaveAuld15-Jul-10 12:38
professionalDaveAuld15-Jul-10 12:38 
AnswerRe: vb script code Pin
Smithers-Jones16-Jul-10 1:07
Smithers-Jones16-Jul-10 1:07 
QuestionRemove whitespace in front of String element of an Array (vba, excel macro) Pin
TabascoSauce15-Jul-10 6:02
TabascoSauce15-Jul-10 6:02 
AnswerRe: Remove whitespace in front of String element of an Array (vba, excel macro) [modified] Pin
DaveAuld15-Jul-10 6:07
professionalDaveAuld15-Jul-10 6:07 
AnswerRe: Remove whitespace in front of String element of an Array (vba, excel macro) Pin
DaveAuld15-Jul-10 12:25
professionalDaveAuld15-Jul-10 12:25 
GeneralRe: Remove whitespace in front of String element of an Array (vba, excel macro) Pin
Neville Nazerane20-Jul-10 3:00
Neville Nazerane20-Jul-10 3:00 
QuestionHow to Maintain Copy of SortDescriptionCollection After DataGrid Rebind Pin
D.Dubya15-Jul-10 3:36
D.Dubya15-Jul-10 3:36 
QuestionHow to execute SQL Query inside DataSet? Pin
Аslam Iqbal14-Jul-10 10:10
professionalАslam Iqbal14-Jul-10 10:10 
I want to execute SQL Query within a Dataset. I don't know how it should be done.
I just have some sample Query & sample data.
VB
'test.xml file Contains 3 columns:
        'ID, Name, Location
        'Sample Values:
        ''ID, Name, Location
        ''1,  abc,  loca
        ''2,  ijk,  locb
        ''3,  xyz,  locc
        ''4,  uvw,  locd
        Dim ds As New DataSet
        ds.ReadXml("test.xml")

        'Sql Query is: "Select Name fom ??? where ID=1"
        'Is this possible to to retrive the output of that Sql query from test.xml using DataSet? 
        'If DataSet does not support this type of operation then how can I execute that or any other query?


Here Is the test.xml File:
<?xml version="1.0" standalone="yes"?>
<DataSetSchema>
  <Tab1>
    <ID>1</ID>
    <Name>abc</Name>
    <Location>loca</Location>
  </Tab1>
  <Tab1>
    <ID>2</ID>
    <Name>ijk</Name>
    <Location>locb</Location>
  </Tab1>
  <Tab1>
    <ID>3</ID>
    <Name>xyz</Name>
    <Location>locc</Location>
  </Tab1>
  <Tab1>
    <ID>4</ID>
    <Name>uvw</Name>
    <Location>locd</Location>
  </Tab1>
</DataSetSchema>

AnswerRe: How to execute SQL Query inside DataSet? Pin
Wayne Gaylard14-Jul-10 20:57
professionalWayne Gaylard14-Jul-10 20:57 
GeneralRe: How to execute SQL Query inside DataSet? Pin
Аslam Iqbal14-Jul-10 21:53
professionalАslam Iqbal14-Jul-10 21:53 
AnswerRe: How to execute SQL Query inside DataSet? [modified] Pin
DaveAuld15-Jul-10 4:04
professionalDaveAuld15-Jul-10 4:04 
QuestionArchive or backup Pin
Ebube14-Jul-10 5:15
Ebube14-Jul-10 5:15 
AnswerRe: Archive or backup Pin
Luc Pattyn14-Jul-10 5:17
sitebuilderLuc Pattyn14-Jul-10 5:17 
GeneralRe: Archive or backup [modified] Pin
Ebube14-Jul-10 6:00
Ebube14-Jul-10 6:00 
GeneralRe: Archive or backup Pin
Luc Pattyn14-Jul-10 6:39
sitebuilderLuc Pattyn14-Jul-10 6:39 
AnswerRe: Archive or backup Pin
DaveAuld15-Jul-10 4:10
professionalDaveAuld15-Jul-10 4:10 
Questionhow to use winsock to exchange data in 2 diferent exe Pin
zhiyuan1613-Jul-10 18:39
zhiyuan1613-Jul-10 18:39 
AnswerRe: how to use winsock to exchange data in 2 diferent exe Pin
Eddy Vluggen14-Jul-10 3:07
professionalEddy Vluggen14-Jul-10 3:07 
AnswerRe: how to use winsock to exchange data in 2 diferent exe Pin
Аslam Iqbal14-Jul-10 9:01
professionalАslam Iqbal14-Jul-10 9:01 
Questioncolumntype checkbox does not chech Pin
Ebube13-Jul-10 5:42
Ebube13-Jul-10 5:42 
AnswerRe: columntype checkbox does not chech Pin
Scubapro14-Jul-10 0:55
Scubapro14-Jul-10 0:55 
GeneralRe: columntype checkbox does not chech Pin
Ebube14-Jul-10 4:43
Ebube14-Jul-10 4:43 
QuestionRTF IMAGE INSERTION Pin
djdrew12-Jul-10 5:35
djdrew12-Jul-10 5:35 
AnswerRe: RTF IMAGE INSERTION Pin
Dalek Dave13-Jul-10 4:14
professionalDalek Dave13-Jul-10 4:14 
AnswerRe: RTF IMAGE INSERTION Pin
The Man from U.N.C.L.E.13-Jul-10 6:54
The Man from U.N.C.L.E.13-Jul-10 6:54 

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.