richard smith

richard smith

  • 1.4k
  • 285
  • 160.7k

C# To Hold SQL Results

Feb 18 2013 10:54 PM
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";

Answers (5)