How via C# can I query a SQL table for carName and store all results in a C# string Array variable? So something like:
(I know this isn't actual syntax) -- just needing an example of how to perform this action
string[] carName = "Select carName from OnsiteCars";
Loading

VulpesRank #55 · 29.2K reputationPosted Feb 20, 2013, 12:43 AM EST
The error message suggests that there's a problem in this regard at present.
VulpesRank #55 · 29.2K reputationPosted Feb 19, 2013, 12:18 AM EST
richard smithRank #8,268 · 225 reputationPosted Feb 19, 2013, 4:04 PM EST
How would I modify it to hold 2 variables so carName and also carMake? Or would I need two individual select statements?
And I am getting a compile error of not all code paths return a value?
richard smithRank #8,268 · 225 reputationPosted Feb 20, 2013, 6:58 AM EST
VulpesRank #55 · 29.2K reputationPosted Feb 20, 2013, 8:57 AM EST