I have a SQL query like the following:
SELECT Name FROM Customers
My result is as follows:
Name
----
Customer1
Customer2
Customer3
Customer4
I need to pass the customer names to 4 different variables using C# as follows:
string cus1 = Customer1;
string cus2 = Customer2;
string cus3 = Customer3;
string cus4 = Customer4;
Help will be appreciated.