title: VB.NET: How can I use ExecuteSQLCommand and return my data in a datatable and access it?
body: <p>This is what I'm trying...</p>
  
  <pre><code>Dim myCommand as SqlCommand
  Dim myTable as New xsdObject.ObjectDataTable
  
  myCommand = DataAccess.GetSQLCommand( "MyStoredProc", _
                         CommandType.StoredProcedure, SourceServer.ConnectionLocal)
  
  myCommand.Connection.ChangeDatabase("MyDatabase")
  myCommand.Parameters.AddWithValue("@Parameter", DataValue)
  
  ExecuteSQLCommand(myCommand, myTable)
  
   'How to access my data ?
  </code></pre>